class EcsDeployer::CLI
Public Instance Methods
decrypt()
click to toggle source
# File lib/ecs_deployer/cli.rb, line 60 def decrypt cipher = EcsDeployer::Util::Cipher.new(@aws_options) puts "Decrypted value: #{cipher.decrypt(options[:value])}" end
encrypt()
click to toggle source
# File lib/ecs_deployer/cli.rb, line 53 def encrypt cipher = EcsDeployer::Util::Cipher.new(@aws_options) puts "Encrypted value: #{cipher.encrypt(options[:master_key], options[:value])}" end
invoke_command(command, *args)
click to toggle source
Calls superclass method
# File lib/ecs_deployer/cli.rb, line 19 def invoke_command(command, *args) prepare super end
prepare()
click to toggle source
# File lib/ecs_deployer/cli.rb, line 9 def prepare @aws_options = {} @aws_options[:profile] = options[:profile] if options[:profile] @aws_options[:region] = options[:region] if options[:region] @logger = Logger.new(STDOUT) nil end
task_register()
click to toggle source
# File lib/ecs_deployer/cli.rb, line 28 def task_register path = File.expand_path(options[:path], Dir.pwd) task_client = EcsDeployer::Task::Client.new(@aws_options) result = task_client.register(path, options[:replace_variables]) puts "Registered task: #{result.task_definition_arn}" end
update_service()
click to toggle source
# File lib/ecs_deployer/cli.rb, line 41 def update_service deploy_client = EcsDeployer::Client.new(options[:cluster], @logger, @aws_options) service_client = deploy_client.service service_client.wait_timeout = options[:wait_timeout] result = service_client.update(options[:service], nil, options[:wait]) puts "Service has been successfully updated: #{result.service_arn}" end