Sha256: 95d2442f7c59a22fc74ac36b0621eac5a51f78bc4309dd18df547ffbd2ab3d8d

Contents?: true

Size: 676 Bytes

Versions: 160

Compression:

Stored size: 676 Bytes

Contents

# frozen_string_literal: true

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

160 entries across 160 versions & 1 rubygems

Version Path
appsignal-2.11.10-java lib/appsignal/hooks/webmachine.rb
appsignal-2.11.10 lib/appsignal/hooks/webmachine.rb
appsignal-2.11.9-java lib/appsignal/hooks/webmachine.rb
appsignal-2.11.9 lib/appsignal/hooks/webmachine.rb
appsignal-2.11.8-java lib/appsignal/hooks/webmachine.rb
appsignal-2.11.8 lib/appsignal/hooks/webmachine.rb
appsignal-2.11.7 lib/appsignal/hooks/webmachine.rb
appsignal-2.11.7-java lib/appsignal/hooks/webmachine.rb
appsignal-2.11.6 lib/appsignal/hooks/webmachine.rb
appsignal-2.11.6-java lib/appsignal/hooks/webmachine.rb
appsignal-2.11.5-java lib/appsignal/hooks/webmachine.rb
appsignal-2.11.5 lib/appsignal/hooks/webmachine.rb
appsignal-2.11.4-java lib/appsignal/hooks/webmachine.rb
appsignal-2.11.4 lib/appsignal/hooks/webmachine.rb
appsignal-2.11.3-java lib/appsignal/hooks/webmachine.rb
appsignal-2.11.3 lib/appsignal/hooks/webmachine.rb
appsignal-2.11.2-java lib/appsignal/hooks/webmachine.rb
appsignal-2.11.2 lib/appsignal/hooks/webmachine.rb
appsignal-2.11.1-java lib/appsignal/hooks/webmachine.rb
appsignal-2.11.1 lib/appsignal/hooks/webmachine.rb