Sha256: 470bfe93de2cd13bd8890d5dadab574447022d6211603be8995a30db7e4ea89e

Contents?: true

Size: 394 Bytes

Versions: 110

Compression:

Stored size: 394 Bytes

Contents

# frozen_string_literal: true

module Appsignal
  class Hooks
    # @api private
    class ResqueHook < Appsignal::Hooks::Hook
      register :resque

      def dependencies_present?
        defined?(::Resque)
      end

      def install
        require "appsignal/integrations/resque"
        Resque::Job.send(:prepend, Appsignal::Integrations::ResqueIntegration)
      end
    end
  end
end

Version data entries

110 entries across 110 versions & 1 rubygems

Version Path
appsignal-3.3.2-java lib/appsignal/hooks/resque.rb
appsignal-3.3.2 lib/appsignal/hooks/resque.rb
appsignal-3.3.1-java lib/appsignal/hooks/resque.rb
appsignal-3.3.1 lib/appsignal/hooks/resque.rb
appsignal-3.3.0-java lib/appsignal/hooks/resque.rb
appsignal-3.3.0 lib/appsignal/hooks/resque.rb
appsignal-3.2.2-java lib/appsignal/hooks/resque.rb
appsignal-3.2.2 lib/appsignal/hooks/resque.rb
appsignal-3.2.1-java lib/appsignal/hooks/resque.rb
appsignal-3.2.1 lib/appsignal/hooks/resque.rb
appsignal-3.2.0-java lib/appsignal/hooks/resque.rb
appsignal-3.2.0 lib/appsignal/hooks/resque.rb
appsignal-3.1.6-java lib/appsignal/hooks/resque.rb
appsignal-3.1.6 lib/appsignal/hooks/resque.rb
appsignal-3.1.5-java lib/appsignal/hooks/resque.rb
appsignal-3.1.5 lib/appsignal/hooks/resque.rb
appsignal-3.1.4-java lib/appsignal/hooks/resque.rb
appsignal-3.1.4 lib/appsignal/hooks/resque.rb
appsignal-3.1.3-java lib/appsignal/hooks/resque.rb
appsignal-3.1.3 lib/appsignal/hooks/resque.rb