Class: RunStatus
- Inherits:
-
Object
- Object
- RunStatus
- Defined in:
- lib/sshotgun.rb
Overview
This class contains the returned information from commands such as run, runSudo, runLocal, runLocalSudo
Instance Attribute Summary collapse
-
#exitstatus ⇒ Object
The exit status of the command.
-
#stderrstr ⇒ Object
The stderr stream data from the command stored in a string.
-
#stdoutstr ⇒ Object
The stdout stream data from the command stored in a string.
Instance Method Summary collapse
-
#initialize ⇒ RunStatus
constructor
A new instance of RunStatus.
Constructor Details
#initialize ⇒ RunStatus
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
#exitstatus ⇒ Object
The exit status of the command
53 54 55 |
# File 'lib/sshotgun.rb', line 53 def exitstatus @exitstatus end |
#stderrstr ⇒ Object
The stderr stream data from the command stored in a string
59 60 61 |
# File 'lib/sshotgun.rb', line 59 def stderrstr @stderrstr end |
#stdoutstr ⇒ Object
The stdout stream data from the command stored in a string
56 57 58 |
# File 'lib/sshotgun.rb', line 56 def stdoutstr @stdoutstr end |