Class: EcrDeploy::CLI

Inherits:
Object
  • Object
show all
Defined in:
lib/ecr_deploy/cli.rb

Class Method Summary collapse

Class Method Details

.run!(opts) ⇒ Object



2
3
4
5
6
7
8
9
10
# File 'lib/ecr_deploy/cli.rb', line 2

def self.run!(opts)
  config = EcrDeploy::Config.new(opts.config_file)
  task = EcrDeploy::Task.new(config, opts.environment_name)

  task.deploy!(opts.image_tag)
  task.wait_until_stable

  puts "Deploy finished."
end