lib/ecs_deployer/cli.rb in ecs_deployer-1.0.1 vs lib/ecs_deployer/cli.rb in ecs_deployer-1.0.2

- old
+ new

@@ -22,13 +22,14 @@ end end desc 'task_register', 'Create new task definition' option :path, required: true + option :replace_variables, type: :hash, default: {} def task_register path = File.expand_path(options[:path], Dir.pwd) - result = @deployer.register_task(path) + result = @deployer.register_task(path, options[:replace_variables]) puts "Registered task: #{result}" end desc 'update_service', 'Update service difinition.' @@ -52,10 +53,10 @@ option :value, required: true def encrypt puts "Encrypted value: #{@deployer.encrypt(options[:master_key], options[:value])}" end - desc 'encrypt', 'Decrypt value of argument with KMS.' + desc 'decrypt', 'Decrypt value of argument with KMS.' option :value, required: true def decrypt puts "Decrypted value: #{@deployer.decrypt(options[:value])}" end end