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.4.1 lib/appsignal/hooks/webmachine.rb
appsignal-2.4.0 lib/appsignal/hooks/webmachine.rb
appsignal-2.4.0.alpha.1 lib/appsignal/hooks/webmachine.rb
appsignal-2.3.7 lib/appsignal/hooks/webmachine.rb
appsignal-2.3.6 lib/appsignal/hooks/webmachine.rb
appsignal-2.3.6.beta.1 lib/appsignal/hooks/webmachine.rb
appsignal-2.3.4 lib/appsignal/hooks/webmachine.rb
appsignal-2.3.3 lib/appsignal/hooks/webmachine.rb
appsignal-2.3.3.beta.1 lib/appsignal/hooks/webmachine.rb
appsignal-2.3.2 lib/appsignal/hooks/webmachine.rb
appsignal-2.3.1 lib/appsignal/hooks/webmachine.rb
appsignal-2.3.0 lib/appsignal/hooks/webmachine.rb
appsignal-2.3.0.beta.3 lib/appsignal/hooks/webmachine.rb
appsignal-2.3.0.beta.2 lib/appsignal/hooks/webmachine.rb
appsignal-2.3.0.beta.1 lib/appsignal/hooks/webmachine.rb
appsignal-2.2.1 lib/appsignal/hooks/webmachine.rb
appsignal-2.2.0 lib/appsignal/hooks/webmachine.rb
appsignal-2.2.0.beta.1 lib/appsignal/hooks/webmachine.rb