Class: Foreman::CLI
- Inherits:
-
Thor
- Object
- Thor
- Foreman::CLI
- Defined in:
- lib/foreman/cli.rb
Instance Method Summary collapse
Instance Method Details
#check ⇒ Object
30 31 32 33 34 |
# File 'lib/foreman/cli.rb', line 30 def check processes = engine.processes_in_order.map { |p| p.first } error "no processes defined" unless processes.length > 0 display "valid procfile detected (#{processes.join(', ')})" end |
#start(process = nil) ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'lib/foreman/cli.rb', line 18 def start(process=nil) check_procfile! if process engine.execute(process, ) else engine.start() end end |