Sha256: 1eac90104d20d17181c6c0b615b35171da37f42012661e609269af9075a2597e

Contents?: true

Size: 548 Bytes

Versions: 350

Compression:

Stored size: 548 Bytes

Contents

# frozen_string_literal: true

module Appsignal
  class Hooks
    # @api private
    class DelayedJobHook < Appsignal::Hooks::Hook
      register :delayed_job

      def dependencies_present?
        defined?(::Delayed::Plugin)
      end

      def install
        # The DJ plugin is a subclass of Delayed::Plugin, so we can only
        # require this code if we're actually installing.
        require "appsignal/integrations/delayed_job_plugin"
        ::Delayed::Worker.plugins << Appsignal::Hooks::DelayedJobPlugin
      end
    end
  end
end

Version data entries

350 entries across 350 versions & 1 rubygems

Version Path
appsignal-2.9.18.beta.2-java lib/appsignal/hooks/delayed_job.rb
appsignal-2.9.18.beta.2 lib/appsignal/hooks/delayed_job.rb
appsignal-2.9.18.beta.1 lib/appsignal/hooks/delayed_job.rb
appsignal-2.9.18.beta.1-java lib/appsignal/hooks/delayed_job.rb
appsignal-2.9.17-java lib/appsignal/hooks/delayed_job.rb
appsignal-2.9.17 lib/appsignal/hooks/delayed_job.rb
appsignal-2.9.16-java lib/appsignal/hooks/delayed_job.rb
appsignal-2.9.16 lib/appsignal/hooks/delayed_job.rb
appsignal-2.9.15-java lib/appsignal/hooks/delayed_job.rb
appsignal-2.9.15 lib/appsignal/hooks/delayed_job.rb
appsignal-2.9.14-java lib/appsignal/hooks/delayed_job.rb
appsignal-2.9.14 lib/appsignal/hooks/delayed_job.rb
appsignal-2.9.13-java lib/appsignal/hooks/delayed_job.rb
appsignal-2.9.13 lib/appsignal/hooks/delayed_job.rb
appsignal-2.9.12-java lib/appsignal/hooks/delayed_job.rb
appsignal-2.9.12 lib/appsignal/hooks/delayed_job.rb
appsignal-2.9.12.beta.0-java lib/appsignal/hooks/delayed_job.rb
appsignal-2.9.12.beta.0 lib/appsignal/hooks/delayed_job.rb
appsignal-2.9.11 lib/appsignal/hooks/delayed_job.rb
appsignal-2.9.11-java lib/appsignal/hooks/delayed_job.rb