Exception: Cute::Bash::StatusError
- Defined in:
- lib/cute/bash.rb
Instance Attribute Summary collapse
-
#output ⇒ Object
readonly
Returns the value of attribute output.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(cmd, status, output) ⇒ StatusError
constructor
A new instance of StatusError.
Constructor Details
#initialize(cmd, status, output) ⇒ StatusError
Returns a new instance of StatusError.
20 21 22 23 24 25 |
# File 'lib/cute/bash.rb', line 20 def initialize(cmd, status, output) super("'#{cmd}' returned with status = #{status}") @status = status @cmd = cmd @output = output end |
Instance Attribute Details
#output ⇒ Object (readonly)
Returns the value of attribute output.
18 19 20 |
# File 'lib/cute/bash.rb', line 18 def output @output end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
17 18 19 |
# File 'lib/cute/bash.rb', line 17 def status @status end |