Method: Foreman::Engine#register
- Defined in:
- lib/foreman/engine.rb
#register(name, command, options = {}) ⇒ Object
Register a process to be run by this Engine
148 149 150 151 152 153 154 |
# File 'lib/foreman/engine.rb', line 148 def register(name, command, ={}) [:env] ||= env [:cwd] ||= File.dirname(command.split(" ").first) process = Foreman::Process.new(command, ) @names[process] = name @processes << process end |