class Acclimate::ConfirmationError

Attributes

options[R]

Public Class Methods

new( message, options={} ) click to toggle source
Calls superclass method
# File lib/acclimate/confirmation_error.rb, line 4
def initialize( message, options={} )
  @options = options
  super( message )
end

Public Instance Methods

exit_code() click to toggle source
# File lib/acclimate/confirmation_error.rb, line 9
def exit_code
  options[:exit_code] || 1
end
finish() click to toggle source
# File lib/acclimate/confirmation_error.rb, line 13
def finish
  return unless finish_proc
  finish_proc.call
end

Protected Instance Methods

finish_proc() click to toggle source
# File lib/acclimate/confirmation_error.rb, line 22
def finish_proc
  options[:finish_proc]
end