Sha256: 4c19864483f9d31dabb2b012269a705dc27f98a63ae27d4652734108cea5a677

Contents?: true

Size: 517 Bytes

Versions: 38

Compression:

Stored size: 517 Bytes

Contents

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

38 entries across 38 versions & 1 rubygems

Version Path
appsignal-2.5.3-java lib/appsignal/hooks/delayed_job.rb
appsignal-2.5.3 lib/appsignal/hooks/delayed_job.rb
appsignal-2.5.3.alpha.2 lib/appsignal/hooks/delayed_job.rb
appsignal-2.5.3.alpha.2-java lib/appsignal/hooks/delayed_job.rb
appsignal-2.5.3.alpha.1 lib/appsignal/hooks/delayed_job.rb
appsignal-2.5.3.alpha.1-java lib/appsignal/hooks/delayed_job.rb
appsignal-2.5.2-java lib/appsignal/hooks/delayed_job.rb
appsignal-2.5.2 lib/appsignal/hooks/delayed_job.rb
appsignal-2.5.1-java lib/appsignal/hooks/delayed_job.rb
appsignal-2.5.1 lib/appsignal/hooks/delayed_job.rb
appsignal-2.5.1.beta.1-java lib/appsignal/hooks/delayed_job.rb
appsignal-2.5.1.beta.1 lib/appsignal/hooks/delayed_job.rb
appsignal-2.5.0-java lib/appsignal/hooks/delayed_job.rb
appsignal-2.5.0 lib/appsignal/hooks/delayed_job.rb
appsignal-2.5.0.beta.1-java lib/appsignal/hooks/delayed_job.rb
appsignal-2.5.0.beta.1 lib/appsignal/hooks/delayed_job.rb
appsignal-2.5.0.alpha.1-java lib/appsignal/hooks/delayed_job.rb
appsignal-2.5.0.alpha.1 lib/appsignal/hooks/delayed_job.rb
appsignal-2.4.3 lib/appsignal/hooks/delayed_job.rb
appsignal-2.4.2 lib/appsignal/hooks/delayed_job.rb