Class: Appsignal::Hooks::WebmachineHook
- Defined in:
- lib/appsignal/hooks/webmachine.rb
Instance Method Summary collapse
Methods inherited from Hook
#initialize, #installed?, register, #try_to_install
Constructor Details
This class inherits a constructor from Appsignal::Hooks::Hook
Instance Method Details
#dependencies_present? ⇒ Boolean
6 7 8 |
# File 'lib/appsignal/hooks/webmachine.rb', line 6 def dependencies_present? defined?(::Webmachine) end |
#install ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/appsignal/hooks/webmachine.rb', line 10 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 |