Class: Lemans::Environments::Base::ExecResult
- Inherits:
-
Data
- Object
- Data
- Lemans::Environments::Base::ExecResult
- Defined in:
- lib/lemans/environments/base.rb
Overview
Backends interleave a command's streams before we ever see them, so one output field is the honest shape.
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#duration_sec ⇒ Object
readonly
Returns the value of attribute duration_sec.
-
#exit_code ⇒ Object
readonly
Returns the value of attribute exit_code.
-
#output ⇒ Object
readonly
Returns the value of attribute output.
Instance Method Summary collapse
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command
10 11 12 |
# File 'lib/lemans/environments/base.rb', line 10 def command @command end |
#duration_sec ⇒ Object (readonly)
Returns the value of attribute duration_sec
10 11 12 |
# File 'lib/lemans/environments/base.rb', line 10 def duration_sec @duration_sec end |
#exit_code ⇒ Object (readonly)
Returns the value of attribute exit_code
10 11 12 |
# File 'lib/lemans/environments/base.rb', line 10 def exit_code @exit_code end |
#output ⇒ Object (readonly)
Returns the value of attribute output
10 11 12 |
# File 'lib/lemans/environments/base.rb', line 10 def output @output end |
Instance Method Details
#success? ⇒ Boolean
11 |
# File 'lib/lemans/environments/base.rb', line 11 def success? = exit_code.zero? |