Class: Bugsnag::Middleware::Rake
- Inherits:
-
Object
- Object
- Bugsnag::Middleware::Rake
- Defined in:
- lib/bugsnag/middleware/rake.rb
Instance Method Summary collapse
- #call(notification) ⇒ Object
-
#initialize(bugsnag) ⇒ Rake
constructor
A new instance of Rake.
Constructor Details
#initialize(bugsnag) ⇒ Rake
Returns a new instance of Rake.
3 4 5 |
# File 'lib/bugsnag/middleware/rake.rb', line 3 def initialize(bugsnag) @bugsnag = bugsnag end |
Instance Method Details
#call(notification) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/bugsnag/middleware/rake.rb', line 7 def call(notification) task = notification.request_data[:bugsnag_running_task] if task notification.add_tab(:rake_task, { :name => task.name, :description => task.full_comment, :arguments => task.arg_description }) notification.context ||= task.name end @bugsnag.call(notification) end |