Sha256: fa0e79e24a08f914d5cdef2a0fef4232e5648789b069121d876d06f05808a104

Contents?: true

Size: 645 Bytes

Versions: 38

Compression:

Stored size: 645 Bytes

Contents

module Appsignal
  class Hooks
    # @api private
    class WebmachineHook < Appsignal::Hooks::Hook
      register :webmachine

      def dependencies_present?
        defined?(::Webmachine)
      end

      def install
        require "appsignal/integrations/webmachine"
        ::Webmachine::Decision::FSM.class_eval do
          include Appsignal::Integrations::WebmachinePlugin::FSM
          alias run_without_appsignal run
          alias run run_with_appsignal
          alias handle_exceptions_without_appsignal handle_exceptions
          alias handle_exceptions handle_exceptions_with_appsignal
        end
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

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