Sha256: a4af7fe65bcdab39639519355184f2232cc14f4ffeaa3036258c140f6e6dca09

Contents?: true

Size: 1020 Bytes

Versions: 57

Compression:

Stored size: 1020 Bytes

Contents

begin
  require 'hoptoad_notifier'
rescue LoadError
  raise "Can't find 'hoptoad_notifier' gem. Please add it to your Gemfile or install it."
end

require 'resque/failure/thoughtbot'

module Resque
  module Failure
    # A Failure backend that sends exceptions raised by jobs to Hoptoad.
    #
    # To use it, put this code in an initializer, Rake task, or wherever:
    #
    #   require 'resque/failure/hoptoad'
    #
    #   Resque::Failure::Multiple.classes = [Resque::Failure::Redis, Resque::Failure::Hoptoad]
    #   Resque::Failure.backend = Resque::Failure::Multiple
    #
    # Once you've configured resque to use the Hoptoad failure backend,
    # you'll want to setup an initializer to configure the Hoptoad.
    #
    # HoptoadNotifier.configure do |config|
    #   config.api_key = 'your_key_here'
    # end
    # For more information see https://github.com/thoughtbot/hoptoad_notifier
    class Hoptoad < Base
      include Resque::Failure::Thoughtbot

      @klass = ::HoptoadNotifier
    end
  end
end

Version data entries

57 entries across 57 versions & 5 rubygems

Version Path
classiccms-0.5.17 vendor/bundle/gems/resque-1.20.0/lib/resque/failure/hoptoad.rb
classiccms-0.5.16 vendor/bundle/gems/resque-1.20.0/lib/resque/failure/hoptoad.rb
classiccms-0.5.15 vendor/bundle/gems/resque-1.20.0/lib/resque/failure/hoptoad.rb
classiccms-0.5.14 vendor/bundle/gems/resque-1.20.0/lib/resque/failure/hoptoad.rb
classiccms-0.5.13 vendor/bundle/gems/resque-1.20.0/lib/resque/failure/hoptoad.rb
classiccms-0.5.12 vendor/bundle/gems/resque-1.20.0/lib/resque/failure/hoptoad.rb
classiccms-0.5.11 vendor/bundle/gems/resque-1.20.0/lib/resque/failure/hoptoad.rb
classiccms-0.5.10 vendor/bundle/gems/resque-1.20.0/lib/resque/failure/hoptoad.rb
classiccms-0.5.9 vendor/bundle/gems/resque-1.20.0/lib/resque/failure/hoptoad.rb
resque-1.22.0 lib/resque/failure/hoptoad.rb
classiccms-0.5.8 vendor/bundle/gems/resque-1.20.0/lib/resque/failure/hoptoad.rb
classiccms-0.5.7 vendor/bundle/gems/resque-1.20.0/lib/resque/failure/hoptoad.rb
classiccms-0.5.6 vendor/bundle/gems/resque-1.20.0/lib/resque/failure/hoptoad.rb
classiccms-0.5.5 vendor/bundle/gems/resque-1.20.0/lib/resque/failure/hoptoad.rb
classiccms-0.5.2 vendor/bundle/gems/resque-1.20.0/lib/resque/failure/hoptoad.rb
classiccms-0.5.1 vendor/bundle/gems/resque-1.20.0/lib/resque/failure/hoptoad.rb
classiccms-0.5.0 vendor/bundle/gems/resque-1.20.0/lib/resque/failure/hoptoad.rb
classiccms-0.4.2 vendor/bundle/gems/resque-1.20.0/lib/resque/failure/hoptoad.rb
classiccms-0.4.1 vendor/bundle/gems/resque-1.20.0/lib/resque/failure/hoptoad.rb
classiccms-0.4.0 vendor/bundle/gems/resque-1.20.0/lib/resque/failure/hoptoad.rb