Class: ShellStrike::Ssh::CommandResult
- Inherits:
-
Object
- Object
- ShellStrike::Ssh::CommandResult
- Defined in:
- lib/shell_strike/ssh/command_result.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#exit_code ⇒ Object
readonly
Returns the value of attribute exit_code.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CommandResult
constructor
A new instance of CommandResult.
Constructor Details
#initialize(**args) ⇒ CommandResult
Returns a new instance of CommandResult.
4 5 6 7 8 |
# File 'lib/shell_strike/ssh/command_result.rb', line 4 def initialize(**args) args.each do |key, value| instance_variable_set("@#{key}".to_sym, value) end end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
2 3 4 |
# File 'lib/shell_strike/ssh/command_result.rb', line 2 def command @command end |
#exit_code ⇒ Object (readonly)
Returns the value of attribute exit_code.
2 3 4 |
# File 'lib/shell_strike/ssh/command_result.rb', line 2 def exit_code @exit_code end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
2 3 4 |
# File 'lib/shell_strike/ssh/command_result.rb', line 2 def stderr @stderr end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
2 3 4 |
# File 'lib/shell_strike/ssh/command_result.rb', line 2 def stdout @stdout end |