Class: EacRubyUtils::Envs::Command::ExecuteResult
- Inherits:
-
Object
- Object
- EacRubyUtils::Envs::Command::ExecuteResult
- Defined in:
- lib/eac_ruby_utils/envs/command.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#r ⇒ Object
readonly
Returns the value of attribute r.
Instance Method Summary collapse
-
#initialize(r, options) ⇒ ExecuteResult
constructor
A new instance of ExecuteResult.
- #result ⇒ Object
- #success? ⇒ Boolean
Constructor Details
#initialize(r, options) ⇒ ExecuteResult
Returns a new instance of ExecuteResult.
85 86 87 88 |
# File 'lib/eac_ruby_utils/envs/command.rb', line 85 def initialize(r, ) @r = r = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
83 84 85 |
# File 'lib/eac_ruby_utils/envs/command.rb', line 83 def end |
#r ⇒ Object (readonly)
Returns the value of attribute r.
83 84 85 |
# File 'lib/eac_ruby_utils/envs/command.rb', line 83 def r @r end |
Instance Method Details
#result ⇒ Object
90 91 92 93 94 |
# File 'lib/eac_ruby_utils/envs/command.rb', line 90 def result return exit_code_zero_result if exit_code_zero? return expected_error_result if expected_error? raise 'Failed!' end |
#success? ⇒ Boolean
96 97 98 |
# File 'lib/eac_ruby_utils/envs/command.rb', line 96 def success? exit_code_zero? || expected_error? end |