Class: Takeoff::CLI

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

Instance Method Summary collapse

Instance Method Details

#launch(plan = nil) ⇒ Object



22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/takeoff/cli.rb', line 22

def launch(plan = nil)
  setup

  plan ||= ENV["RACK_ENV"] || ENV["RAILS_ENV"]
  plan = Takeoff[plan]

  options[:skip].each do |name| 
    plan.stages.delete(name) 
  end if options[:skip]

  plan.launch
end