Class: Bbq::Spawn::Executor

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/bbq/spawn.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) {|@process| ... } ⇒ Executor

Returns a new instance of Executor.

Yields:

  • (@process)


19
20
21
22
23
24
# File 'lib/bbq/spawn.rb', line 19

def initialize(*args)
  @strategy = :mute
  @process = ChildProcess.build(*args)
  yield @process if block_given?
  @process
end

Instance Attribute Details

#io_strategyObject

Returns the value of attribute io_strategy.



15
16
17
# File 'lib/bbq/spawn.rb', line 15

def io_strategy
  @io_strategy
end