Class: EcsDeployer::CLI
- Inherits:
-
Thor
- Object
- Thor
- EcsDeployer::CLI
- Defined in:
- lib/ecs_deployer/cli.rb
Instance Method Summary collapse
Instance Method Details
#decrypt ⇒ Object
60 61 62 63 |
# File 'lib/ecs_deployer/cli.rb', line 60 def decrypt cipher = EcsDeployer::Util::Cipher.new(@aws_options) puts "Decrypted value: #{cipher.decrypt([:value])}" end |
#encrypt ⇒ Object
53 54 55 56 |
# File 'lib/ecs_deployer/cli.rb', line 53 def encrypt cipher = EcsDeployer::Util::Cipher.new(@aws_options) puts "Encrypted value: #{cipher.encrypt([:master_key], [:value])}" end |
#task_register ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/ecs_deployer/cli.rb', line 28 def task_register path = File.([:path], Dir.pwd) task_client = EcsDeployer::Task::Client.new(@aws_options) result = task_client.register(path, [:replace_variables]) puts "Registered task: #{result.task_definition_arn}" end |
#update_service ⇒ Object
41 42 43 44 45 46 47 48 |
# File 'lib/ecs_deployer/cli.rb', line 41 def update_service deploy_client = EcsDeployer::Client.new([:cluster], @logger, @aws_options) service_client = deploy_client.service service_client.wait_timeout = [:wait_timeout] result = service_client.update([:service], nil, [:wait]) puts "Service has been successfully updated: #{result.service_arn}" end |