Sha256: 4468a9de77f5e97aad33fce2133bfda740c863a5d27d71130b761afaa71d83e2

Contents?: true

Size: 487 Bytes

Versions: 33

Compression:

Stored size: 487 Bytes

Contents

module Bugsnag::Middleware
  class Rake
    def initialize(bugsnag)
      @bugsnag = bugsnag
    end

    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
  end
end

Version data entries

33 entries across 33 versions & 2 rubygems

Version Path
bugsnag-2.8.12 lib/bugsnag/middleware/rake.rb
bugsnag-2.8.11 lib/bugsnag/middleware/rake.rb
bugsnag-2.8.10 lib/bugsnag/middleware/rake.rb
bugsnag-2.8.9 lib/bugsnag/middleware/rake.rb
bugsnag-2.8.8 lib/bugsnag/middleware/rake.rb
bugsnag-2.8.7 lib/bugsnag/middleware/rake.rb
bugsnag-2.8.6 lib/bugsnag/middleware/rake.rb
bugsnag-2.8.5 lib/bugsnag/middleware/rake.rb
bugsnag-2.8.4 lib/bugsnag/middleware/rake.rb
bugsnag-2.8.3 lib/bugsnag/middleware/rake.rb
bugsnag-2.8.2 lib/bugsnag/middleware/rake.rb
bugsnag-2.8.1 lib/bugsnag/middleware/rake.rb
bugsnag-2.8.0 lib/bugsnag/middleware/rake.rb