Sha256: 0e01bfc53b83b550e0aabda9d8d0f27c08f16b87e61dfedfe966e1bac7f66a32

Contents?: true

Size: 626 Bytes

Versions: 24

Compression:

Stored size: 626 Bytes

Contents

module Appsignal
  class Hooks
    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

24 entries across 24 versions & 1 rubygems

Version Path
appsignal-1.4.0.alpha.1 lib/appsignal/hooks/webmachine.rb
appsignal-1.3.2 lib/appsignal/hooks/webmachine.rb
appsignal-1.3.1 lib/appsignal/hooks/webmachine.rb
appsignal-1.3.0 lib/appsignal/hooks/webmachine.rb