Class: OpsWalrus::Invocation::Result
- Inherits:
-
Object
- Object
- OpsWalrus::Invocation::Result
- Defined in:
- lib/opswalrus/ops_file_script_dsl.rb
Instance Attribute Summary collapse
-
#exit_status ⇒ Object
Returns the value of attribute exit_status.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #failure? ⇒ Boolean
-
#initialize(value, exit_status = 0) ⇒ Result
constructor
A new instance of Result.
- #success? ⇒ Boolean
Constructor Details
#initialize(value, exit_status = 0) ⇒ Result
Returns a new instance of Result.
20 21 22 23 |
# File 'lib/opswalrus/ops_file_script_dsl.rb', line 20 def initialize(value, exit_status = 0) @value = value @exit_status = exit_status end |
Instance Attribute Details
#exit_status ⇒ Object
Returns the value of attribute exit_status.
19 20 21 |
# File 'lib/opswalrus/ops_file_script_dsl.rb', line 19 def exit_status @exit_status end |
#value ⇒ Object
Returns the value of attribute value.
18 19 20 |
# File 'lib/opswalrus/ops_file_script_dsl.rb', line 18 def value @value end |
Instance Method Details
#failure? ⇒ Boolean
27 28 29 |
# File 'lib/opswalrus/ops_file_script_dsl.rb', line 27 def failure? !success? end |
#success? ⇒ Boolean
24 25 26 |
# File 'lib/opswalrus/ops_file_script_dsl.rb', line 24 def success? !failure? end |