Class: Indocker::SshSession::ExecResult
- Inherits:
-
Object
- Object
- Indocker::SshSession::ExecResult
- Defined in:
- lib/indocker/ssh_session.rb
Instance Attribute Summary collapse
-
#exit_code ⇒ Object
readonly
Returns the value of attribute exit_code.
-
#exit_signal ⇒ Object
readonly
Returns the value of attribute exit_signal.
-
#stderr_data ⇒ Object
readonly
Returns the value of attribute stderr_data.
-
#stdout_data ⇒ Object
readonly
Returns the value of attribute stdout_data.
Instance Method Summary collapse
-
#initialize(stdout_data, stderr_data, exit_code, exit_signal) ⇒ ExecResult
constructor
A new instance of ExecResult.
- #success? ⇒ Boolean
Constructor Details
#initialize(stdout_data, stderr_data, exit_code, exit_signal) ⇒ ExecResult
Returns a new instance of ExecResult.
9 10 11 12 13 14 |
# File 'lib/indocker/ssh_session.rb', line 9 def initialize(stdout_data, stderr_data, exit_code, exit_signal) @stdout_data = stdout_data @stderr_data = stderr_data @exit_code = exit_code @exit_signal = exit_signal end |
Instance Attribute Details
#exit_code ⇒ Object (readonly)
Returns the value of attribute exit_code.
7 8 9 |
# File 'lib/indocker/ssh_session.rb', line 7 def exit_code @exit_code end |
#exit_signal ⇒ Object (readonly)
Returns the value of attribute exit_signal.
7 8 9 |
# File 'lib/indocker/ssh_session.rb', line 7 def exit_signal @exit_signal end |
#stderr_data ⇒ Object (readonly)
Returns the value of attribute stderr_data.
7 8 9 |
# File 'lib/indocker/ssh_session.rb', line 7 def stderr_data @stderr_data end |
#stdout_data ⇒ Object (readonly)
Returns the value of attribute stdout_data.
7 8 9 |
# File 'lib/indocker/ssh_session.rb', line 7 def stdout_data @stdout_data end |
Instance Method Details
#success? ⇒ Boolean
17 18 19 |
# File 'lib/indocker/ssh_session.rb', line 17 def success? @exit_code == 0 end |