Sha256: 5a59067acc73b0fff527a3a5ec407ba475f608c342c7300cacff99ab77be0aaf

Contents?: true

Size: 390 Bytes

Versions: 37

Compression:

Stored size: 390 Bytes

Contents

require "bugsnag"

namespace :bugsnag do
  desc "Send a test exception to Bugsnag."
  task :test_exception => :load do
    begin
      raise RuntimeError.new("Bugsnag test exception")
    rescue => e
      Bugsnag.notify(e) do |report|
        report.context = "rake#test_exception"
      end
    end
  end
end

task :load do
  begin
    Rake::Task["environment"].invoke
  rescue
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
bugsnag-6.22.1 lib/bugsnag/tasks/bugsnag.rake
bugsnag-6.21.0 lib/bugsnag/tasks/bugsnag.rake
bugsnag-6.20.0 lib/bugsnag/tasks/bugsnag.rake
bugsnag-6.19.0 lib/bugsnag/tasks/bugsnag.rake
bugsnag-6.18.0 lib/bugsnag/tasks/bugsnag.rake
bugsnag-6.17.0 lib/bugsnag/tasks/bugsnag.rake
bugsnag-6.16.0 lib/bugsnag/tasks/bugsnag.rake
bugsnag-6.15.0 lib/bugsnag/tasks/bugsnag.rake
bugsnag-6.14.0 lib/bugsnag/tasks/bugsnag.rake
bugsnag-6.13.1 lib/bugsnag/tasks/bugsnag.rake
bugsnag-6.13.0 lib/bugsnag/tasks/bugsnag.rake
bugsnag-6.12.2 lib/bugsnag/tasks/bugsnag.rake
bugsnag-6.12.1 lib/bugsnag/tasks/bugsnag.rake
bugsnag-6.12.0 lib/bugsnag/tasks/bugsnag.rake
bugsnag-6.11.1 lib/bugsnag/tasks/bugsnag.rake
bugsnag-6.11.0 lib/bugsnag/tasks/bugsnag.rake
bugsnag-6.10.0 lib/bugsnag/tasks/bugsnag.rake
bugsnag-6.9.0 lib/bugsnag/tasks/bugsnag.rake
bugsnag-6.8.0 lib/bugsnag/tasks/bugsnag.rake
bugsnag-6.7.3 lib/bugsnag/tasks/bugsnag.rake