Class: WIP::Runner::Shell::Handlers::System
- Defined in:
- lib/wip/runner/shell/handlers/system.rb
Instance Method Summary collapse
Methods inherited from Base
#content, #initialize, #output, #type
Constructor Details
This class inherits a constructor from WIP::Runner::Shell::Handlers::Base
Instance Method Details
#execute(io, env, &block) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/wip/runner/shell/handlers/system.rb', line 6 def execute(io, env, &block) IO.popen(env, executable, 'r') do |pipe| pipe.each(&block) end $? end |