class Bbq::Spawn::Orchestrator
Public Class Methods
new()
click to toggle source
# File lib/bbq/spawn.rb, line 94 def initialize @executors = [] end
Public Instance Methods
coordinate(executor, options = {})
click to toggle source
# File lib/bbq/spawn.rb, line 98 def coordinate(executor, options = {}) @executors << CoordinatedExecutor.new(executor, options) end
start()
click to toggle source
# File lib/bbq/spawn.rb, line 102 def start @executors.each(&:start) @executors.each(&:join) end
stop()
click to toggle source
# File lib/bbq/spawn.rb, line 107 def stop @executors.each(&:stop) end