Module: RuntimeerrorNotifier::RakeHandler
- Defined in:
- lib/runtimeerror_notifier/rake_handler.rb
Class Method Summary collapse
Instance Method Summary collapse
- #command_line_info ⇒ Object
- #display_errors_with_runtimeerror(excp) ⇒ Object
- #environment_info ⇒ Object
Class Method Details
.included(base) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/runtimeerror_notifier/rake_handler.rb', line 5 def self.included(base) base.class_eval do alias_method :display_errors_without_runtimeerror, :display_error_message alias_method :display_error_message, :display_errors_with_runtimeerror end end |
Instance Method Details
#command_line_info ⇒ Object
21 22 23 |
# File 'lib/runtimeerror_notifier/rake_handler.rb', line 21 def command_line_info ARGV.join(' ') end |
#display_errors_with_runtimeerror(excp) ⇒ Object
12 13 14 15 |
# File 'lib/runtimeerror_notifier/rake_handler.rb', line 12 def display_errors_with_runtimeerror(excp) RuntimeerrorNotifier::Notifier.notification(environment_info, excp) display_errors_without_runtimeerror(excp) end |
#environment_info ⇒ Object
17 18 19 |
# File 'lib/runtimeerror_notifier/rake_handler.rb', line 17 def environment_info { component: 'rake', action: command_line_info, rake_env: ENV} end |