module Trusty::Rake
Public Class Methods
handle_exceptions!()
click to toggle source
# File lib/trusty/rake.rb, line 18 def self.handle_exceptions! ::Rake.application.instance_eval do class << self # include this module include Rake end end end
included(base)
click to toggle source
# File lib/trusty/rake.rb, line 11 def self.included(base) base.class_eval do alias_method :display_error_message_without_email, :display_error_message alias_method :display_error_message, :display_error_message_with_email end end
Public Instance Methods
display_error_message_with_email(exception)
click to toggle source
# File lib/trusty/rake.rb, line 27 def display_error_message_with_email(exception) notify_exception(exception) display_error_message_without_email(exception) end