Class: WIP::Runner::Shell::Handlers::System

Inherits:
Base
  • Object
show all
Defined in:
lib/wip/runner/shell/handlers/system.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize, #type

Constructor Details

This class inherits a constructor from WIP::Runner::Shell::Handlers::Base

Instance Method Details

#descriptionObject



6
7
8
9
# File 'lib/wip/runner/shell/handlers/system.rb', line 6

def description
  # @description ||= "```\n#{@content}\n```"
  @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