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-4.3.3-java lib/appsignal/hooks/unicorn.rb
appsignal-4.3.3 lib/appsignal/hooks/unicorn.rb
appsignal-4.3.2-java lib/appsignal/hooks/unicorn.rb
appsignal-4.3.2 lib/appsignal/hooks/unicorn.rb
appsignal-4.3.1-java lib/appsignal/hooks/unicorn.rb
appsignal-4.3.1 lib/appsignal/hooks/unicorn.rb
appsignal-4.3.0-java lib/appsignal/hooks/unicorn.rb
appsignal-4.3.0 lib/appsignal/hooks/unicorn.rb
appsignal-4.2.3-java lib/appsignal/hooks/unicorn.rb
appsignal-4.2.3 lib/appsignal/hooks/unicorn.rb
appsignal-4.2.2-java lib/appsignal/hooks/unicorn.rb
appsignal-4.2.2 lib/appsignal/hooks/unicorn.rb
appsignal-4.2.1-java lib/appsignal/hooks/unicorn.rb
appsignal-4.2.1 lib/appsignal/hooks/unicorn.rb
appsignal-4.2.0-java lib/appsignal/hooks/unicorn.rb
appsignal-4.2.0 lib/appsignal/hooks/unicorn.rb
appsignal-4.1.3-java lib/appsignal/hooks/unicorn.rb
appsignal-4.1.3 lib/appsignal/hooks/unicorn.rb
appsignal-4.1.2-java lib/appsignal/hooks/unicorn.rb
appsignal-4.1.2 lib/appsignal/hooks/unicorn.rb