class Dk::Local::CmdSpy
Attributes
cmd_opts[R]
Public Class Methods
new(cmd_str, opts = nil)
click to toggle source
Calls superclass method
Dk::Local::BaseCmd::new
# File lib/dk/local.rb, line 83 def initialize(cmd_str, opts = nil) require 'scmd/command_spy' super(Scmd::CommandSpy, cmd_str, opts) @cmd_opts = opts end
Public Instance Methods
exitstatus=(value)
click to toggle source
# File lib/dk/local.rb, line 101 def exitstatus=(value); @scmd.exitstatus = value; end
run_called?()
click to toggle source
# File lib/dk/local.rb, line 107 def run_called?; @scmd.run_called?; end
run_calls()
click to toggle source
# File lib/dk/local.rb, line 106 def run_calls; @scmd.run_calls; end
run_input()
click to toggle source
# File lib/dk/local.rb, line 94 def run_input return nil unless self.run_called? self.run_calls.first.input end
ssh?()
click to toggle source
# File lib/dk/local.rb, line 109 def ssh?; false; end
start_called?()
click to toggle source
# File lib/dk/local.rb, line 104 def start_called?; @scmd.start_called?; end
start_calls()
click to toggle source
# File lib/dk/local.rb, line 103 def start_calls; @scmd.start_calls; end
start_input()
click to toggle source
# File lib/dk/local.rb, line 89 def start_input return nil unless self.start_called? self.start_calls.first.input end
stderr=(value)
click to toggle source
# File lib/dk/local.rb, line 100 def stderr=(value); @scmd.stderr = value; end
stdout=(value)
click to toggle source
# File lib/dk/local.rb, line 99 def stdout=(value); @scmd.stdout = value; end