class Dramaturg::Runner::Shell

Public Class Methods

new(script, config={}) click to toggle source
Calls superclass method Dramaturg::Runner::Base::new
# File lib/dramaturg/runner/shell.rb, line 5
def initialize(script, config={})
  super
end

Public Instance Methods

_call(line,cmd) click to toggle source
# File lib/dramaturg/runner/shell.rb, line 9
def _call(line,cmd)
  if cmd.capture_output
    output = `#{line}`
    cmd[:output] = output
    cmd.ok = !output.empty?
  else
    cmd.ok = system(line)
  end
end