Class: Foreman::CLI
- Inherits:
-
Thor
- Object
- Thor
- Foreman::CLI
- Defined in:
- lib/foreman/cli.rb
Instance Method Summary collapse
Instance Method Details
#export(format, location = nil) ⇒ Object
35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/foreman/cli.rb', line 35 def export(format, location=nil) check_procfile! formatter = case format when "upstart" then Foreman::Export::Upstart when "inittab" then Foreman::Export::Inittab else error "Unknown export format: #{format}." end formatter.new(engine).export(location, ) rescue Foreman::Export::Exception => ex error ex. end |
#start(process = nil) ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/foreman/cli.rb', line 16 def start(process=nil) check_procfile! if process engine.execute(process, ) else engine.start() end end |