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-2.0.6 lib/appsignal/hooks/webmachine.rb
appsignal-2.0.5 lib/appsignal/hooks/webmachine.rb
appsignal-2.0.5.beta.1 lib/appsignal/hooks/webmachine.rb
appsignal-2.1.0.alpha.3 lib/appsignal/hooks/webmachine.rb
appsignal-2.1.0.alpha.2 lib/appsignal/hooks/webmachine.rb
appsignal-2.1.0.alpha.1 lib/appsignal/hooks/webmachine.rb
appsignal-2.0.4 lib/appsignal/hooks/webmachine.rb
appsignal-2.0.3 lib/appsignal/hooks/webmachine.rb
appsignal-2.0.2 lib/appsignal/hooks/webmachine.rb
appsignal-2.0.1 lib/appsignal/hooks/webmachine.rb
appsignal-2.0.0 lib/appsignal/hooks/webmachine.rb
appsignal-2.0.0.beta.1 lib/appsignal/hooks/webmachine.rb
appsignal-1.4.0.beta.1 lib/appsignal/hooks/webmachine.rb
appsignal-1.3.6 lib/appsignal/hooks/webmachine.rb
appsignal-1.3.6.beta.1 lib/appsignal/hooks/webmachine.rb
appsignal-1.3.5 lib/appsignal/hooks/webmachine.rb
appsignal-1.3.5.beta.1 lib/appsignal/hooks/webmachine.rb
appsignal-1.3.4 lib/appsignal/hooks/webmachine.rb
appsignal-1.3.3 lib/appsignal/hooks/webmachine.rb
appsignal-1.4.0.alpha.2 lib/appsignal/hooks/webmachine.rb