Class: WIP::Runner::Shell::Handlers::System
- Inherits:
-
Base
- Object
- Base
- WIP::Runner::Shell::Handlers::System
show all
- Defined in:
- lib/wip/runner/shell/handlers/system.rb
Instance Method Summary
collapse
Methods inherited from Base
#initialize, #type
Instance Method Details
#description ⇒ Object
6
7
8
9
|
# File 'lib/wip/runner/shell/handlers/system.rb', line 6
def description
@description ||= @content
end
|
#execute(io, env, &block) ⇒ Object
11
12
13
14
15
16
17
|
# File 'lib/wip/runner/shell/handlers/system.rb', line 11
def execute(io, env, &block)
IO.popen(env, executable, 'r') do |pipe|
pipe.each(&block)
end
$?
end
|