Class: RunStatus

Inherits:
Object
  • Object
show all
Defined in:
lib/sshotgun.rb

Overview

This class contains the returned information from commands such as run, runSudo, runLocal, runLocalSudo

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRunStatus

Returns a new instance of RunStatus.



61
62
63
64
65
# File 'lib/sshotgun.rb', line 61

def initialize
  @exitstatus = 0
  @stdoutstr = ""
  @stderrstr = ""
end

Instance Attribute Details

#exitstatusObject

The exit status of the command



53
54
55
# File 'lib/sshotgun.rb', line 53

def exitstatus
  @exitstatus
end

#stderrstrObject

The stderr stream data from the command stored in a string



59
60
61
# File 'lib/sshotgun.rb', line 59

def stderrstr
  @stderrstr
end

#stdoutstrObject

The stdout stream data from the command stored in a string



56
57
58
# File 'lib/sshotgun.rb', line 56

def stdoutstr
  @stdoutstr
end