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