Class: Foreman::CLI

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

Instance Method Summary collapse

Instance Method Details

#checkObject



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, options)
  else
    engine.start(options)
  end
end