Module: ExceptionNotifier::RakePatch
- Defined in:
- lib/exception_notifier/rake/rake_patch.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/exception_notifier/rake/rake_patch.rb', line 5 def self.included(klass) klass.class_eval do alias_method :display_error_message_without_notifications, :display_error_message alias_method :display_error_message, :display_error_message_with_notifications end end |
Instance Method Details
#display_error_message_with_notifications(ex) ⇒ Object
12 13 14 15 16 |
# File 'lib/exception_notifier/rake/rake_patch.rb', line 12 def (ex) (ex) ExceptionNotifier::Rake.maybe_deliver_notification(ex, :rake_command_line => reconstruct_command_line) end |
#reconstruct_command_line ⇒ Object
18 19 20 |
# File 'lib/exception_notifier/rake/rake_patch.rb', line 18 def reconstruct_command_line "rake #{ARGV.join(' ')}" end |