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