Class: Bugsnag::Middleware::Rake
- Inherits:
-
Object
- Object
- Bugsnag::Middleware::Rake
- Defined in:
- lib/bugsnag/middleware/rake.rb
Instance Method Summary collapse
- #call(report) ⇒ 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(report) ⇒ 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(report) task = report.request_data[:bugsnag_running_task] if task report.add_tab(:rake_task, { :name => task.name, :description => task.full_comment, :arguments => task.arg_description }) report.context ||= task.name end @bugsnag.call(report) end |