Sha256: 420a30b9540ed1eca667484688fc9792c6caed03fa49aeb42f295b5de2b65736

Contents?: true

Size: 564 Bytes

Versions: 110

Compression:

Stored size: 564 Bytes

Contents

# frozen_string_literal: true

module Appsignal
  class Hooks
    # @api private
    class UnicornHook < Appsignal::Hooks::Hook
      register :unicorn

      def dependencies_present?
        defined?(::Unicorn::HttpServer) &&
          defined?(::Unicorn::Worker)
      end

      def install
        require "appsignal/integrations/unicorn"
        ::Unicorn::HttpServer.send(:prepend, Appsignal::Integrations::UnicornIntegration::Server)
        ::Unicorn::Worker.send(:prepend, Appsignal::Integrations::UnicornIntegration::Worker)
      end
    end
  end
end

Version data entries

110 entries across 110 versions & 1 rubygems

Version Path
appsignal-3.0.21.alpha.1-java lib/appsignal/hooks/unicorn.rb
appsignal-3.0.21.alpha.1 lib/appsignal/hooks/unicorn.rb
appsignal-3.0.20-java lib/appsignal/hooks/unicorn.rb
appsignal-3.0.20 lib/appsignal/hooks/unicorn.rb
appsignal-3.0.19-java lib/appsignal/hooks/unicorn.rb
appsignal-3.0.19 lib/appsignal/hooks/unicorn.rb
appsignal-3.0.18-java lib/appsignal/hooks/unicorn.rb
appsignal-3.0.18 lib/appsignal/hooks/unicorn.rb
appsignal-3.0.17-java lib/appsignal/hooks/unicorn.rb
appsignal-3.0.17 lib/appsignal/hooks/unicorn.rb
appsignal-3.0.16-java lib/appsignal/hooks/unicorn.rb
appsignal-3.0.16 lib/appsignal/hooks/unicorn.rb
appsignal-3.0.15-java lib/appsignal/hooks/unicorn.rb
appsignal-3.0.15 lib/appsignal/hooks/unicorn.rb
appsignal-3.0.14-java lib/appsignal/hooks/unicorn.rb
appsignal-3.0.14 lib/appsignal/hooks/unicorn.rb
appsignal-3.0.13-java lib/appsignal/hooks/unicorn.rb
appsignal-3.0.13 lib/appsignal/hooks/unicorn.rb
appsignal-3.0.12-java lib/appsignal/hooks/unicorn.rb
appsignal-3.0.12 lib/appsignal/hooks/unicorn.rb