Sha256: 392be83927bcc92a32920b0523c5ee3286951c6e9300bc82a4fa4147918e64ba

Contents?: true

Size: 548 Bytes

Versions: 150

Compression:

Stored size: 548 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.prepend Appsignal::Integrations::UnicornIntegration::Server
        ::Unicorn::Worker.prepend Appsignal::Integrations::UnicornIntegration::Worker
      end
    end
  end
end

Version data entries

150 entries across 150 versions & 1 rubygems

Version Path
appsignal-3.12.3-java lib/appsignal/hooks/unicorn.rb
appsignal-3.12.3 lib/appsignal/hooks/unicorn.rb
appsignal-3.12.2-java lib/appsignal/hooks/unicorn.rb
appsignal-3.12.2 lib/appsignal/hooks/unicorn.rb
appsignal-3.12.1-java lib/appsignal/hooks/unicorn.rb
appsignal-3.12.1 lib/appsignal/hooks/unicorn.rb
appsignal-3.12.0-java lib/appsignal/hooks/unicorn.rb
appsignal-3.12.0 lib/appsignal/hooks/unicorn.rb
appsignal-3.11.0-java lib/appsignal/hooks/unicorn.rb
appsignal-3.11.0 lib/appsignal/hooks/unicorn.rb
appsignal-3.10.0-java lib/appsignal/hooks/unicorn.rb
appsignal-3.10.0 lib/appsignal/hooks/unicorn.rb
appsignal-3.9.3-java lib/appsignal/hooks/unicorn.rb
appsignal-3.9.3 lib/appsignal/hooks/unicorn.rb
appsignal-3.9.2-java lib/appsignal/hooks/unicorn.rb
appsignal-3.9.2 lib/appsignal/hooks/unicorn.rb
appsignal-3.9.1-java lib/appsignal/hooks/unicorn.rb
appsignal-3.9.1 lib/appsignal/hooks/unicorn.rb
appsignal-3.9.0-java lib/appsignal/hooks/unicorn.rb
appsignal-3.9.0 lib/appsignal/hooks/unicorn.rb