Exception: Albacore::CommandFailedError
- Inherits:
-
StandardError
- Object
- StandardError
- Albacore::CommandFailedError
- Defined in:
- lib/albacore/errors/command_failed_error.rb
Instance Attribute Summary collapse
-
#executable ⇒ Object
readonly
Returns the value of attribute executable.
-
#output ⇒ Object
readonly
Returns the value of attribute output.
Instance Method Summary collapse
-
#initialize(message, executable, output = nil) ⇒ CommandFailedError
constructor
A new instance of CommandFailedError.
- #message ⇒ Object
Constructor Details
#initialize(message, executable, output = nil) ⇒ CommandFailedError
Returns a new instance of CommandFailedError.
8 9 10 11 12 |
# File 'lib/albacore/errors/command_failed_error.rb', line 8 def initialize , executable, output = nil super() @executable = executable @output = output end |
Instance Attribute Details
#executable ⇒ Object (readonly)
Returns the value of attribute executable.
4 5 6 |
# File 'lib/albacore/errors/command_failed_error.rb', line 4 def executable @executable end |
#output ⇒ Object (readonly)
Returns the value of attribute output.
6 7 8 |
# File 'lib/albacore/errors/command_failed_error.rb', line 6 def output @output end |
Instance Method Details
#message ⇒ Object
14 15 16 17 18 19 |
# File 'lib/albacore/errors/command_failed_error.rb', line 14 def s = StringIO.new s.puts super s.puts output if output s.string end |