Sha256: 0b9ad6cbcde691aaeebf4f02fb90c0ab1b9b0c5ecf5f0f0b1c268636ddc0ff9a

Contents?: true

Size: 626 Bytes

Versions: 5

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

5 entries across 5 versions & 1 rubygems

Version Path
appsignal-2.1.2 lib/appsignal/hooks/webmachine.rb
appsignal-2.1.1 lib/appsignal/hooks/webmachine.rb
appsignal-2.1.1.beta.1 lib/appsignal/hooks/webmachine.rb
appsignal-2.1.0 lib/appsignal/hooks/webmachine.rb
appsignal-2.1.0.beta.1 lib/appsignal/hooks/webmachine.rb