Exception: Released::Piper::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/released/piper.rb

Instance Method Summary collapse

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

#messageObject



11
12
13
# File 'lib/released/piper.rb', line 11

def message
  "command exited with a nonzero status code #{@exit_code} (command: #{@command.join(' ')})"
end