Exception: Released::Piper::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Released::Piper::Error
- Defined in:
- lib/released/piper.rb
Instance Method Summary collapse
-
#initialize(command, exit_code) ⇒ Error
constructor
A new instance of Error.
- #message ⇒ Object
Constructor Details
#initialize(command, exit_code) ⇒ Error
Returns a new instance of Error.
6 7 8 9 |
# File 'lib/released/piper.rb', line 6 def initialize(command, exit_code) @command = command @exit_code = exit_code end |
Instance Method Details
#message ⇒ Object
11 12 13 |
# File 'lib/released/piper.rb', line 11 def "command exited with a nonzero status code #{@exit_code} (command: #{@command.join(' ')})" end |