Method: Fate::ProcessManager#run
- Defined in:
- lib/fate/process_manager.rb
#run(command_strings = []) ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/fate/process_manager.rb', line 26 def run(command_strings=[]) if command_strings.empty? run(@service.commands.keys) else commands = @service.resolve(command_strings) # don't need to start processes that are already running noop = commands & running to_start = commands - noop to_stop = running - commands stop_group(to_stop) start_group(to_start) end end |