Class: Aerosol::DeployCommand

Inherits:
AbstractCommand show all
Defined in:
lib/aerosol/cli.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



20
21
22
23
24
25
26
27
28
# File 'lib/aerosol/cli.rb', line 20

def execute
  super

  if Aerosol.deploy(deploy_name.to_sym)
    Rake::Task["aerosol:#{deploy_name}:all"].invoke
  elsif Aerosol.env(deploy_name.to_sym)
    Rake::Task["aerosol:env:#{deploy_name}"].invoke
  end
end