class Dramaturg::Runner::Thor
Public Class Methods
new(script, config={})
click to toggle source
Calls superclass method
Dramaturg::Runner::Base::new
# File lib/dramaturg/runner/thor.rb, line 5 def initialize(script, config={}) super @thor_actions = config[:thor_actions] end
Public Instance Methods
_call(line,cmd)
click to toggle source
# File lib/dramaturg/runner/thor.rb, line 10 def _call(line,cmd) if cmd.capture_output output = @thor_actions.run(line, verbose: false, capture: true) cmd[:output] = output cmd.ok = !output.empty? else cmd.ok = @thor_actions.run(line, verbose:false) end end