Exception: Puter::RunError
- Inherits:
-
Exception
- Object
- Exception
- Puter::RunError
- Defined in:
- lib/puter/puterfile.rb
Instance Attribute Summary collapse
-
#cmd ⇒ Object
Returns the value of attribute cmd.
-
#exit_signal ⇒ Object
Returns the value of attribute exit_signal.
-
#exit_status ⇒ Object
Returns the value of attribute exit_status.
-
#result ⇒ Object
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(message, result) ⇒ RunError
constructor
A new instance of RunError.
Constructor Details
#initialize(message, result) ⇒ RunError
Returns a new instance of RunError.
13 14 15 16 17 18 19 |
# File 'lib/puter/puterfile.rb', line 13 def initialize(, result) super() @result = result @cmd = result[:cmd] @exit_status = result[:exit_status] @exit_signal = result[:exit_signal] end |
Instance Attribute Details
#cmd ⇒ Object
Returns the value of attribute cmd.
9 10 11 |
# File 'lib/puter/puterfile.rb', line 9 def cmd @cmd end |
#exit_signal ⇒ Object
Returns the value of attribute exit_signal.
11 12 13 |
# File 'lib/puter/puterfile.rb', line 11 def exit_signal @exit_signal end |
#exit_status ⇒ Object
Returns the value of attribute exit_status.
10 11 12 |
# File 'lib/puter/puterfile.rb', line 10 def exit_status @exit_status end |
#result ⇒ Object
Returns the value of attribute result.
8 9 10 |
# File 'lib/puter/puterfile.rb', line 8 def result @result end |