Class: Appsignal::Hooks::WebmachineHook
- Inherits:
-
Hook
show all
- Defined in:
- lib/appsignal/hooks/webmachine.rb
Instance Method Summary
collapse
Methods inherited from Hook
#installed?, register, #try_to_install
Instance Method Details
#dependencies_present? ⇒ Boolean
6
7
8
|
# File 'lib/appsignal/hooks/webmachine.rb', line 6
def dependencies_present?
defined?(::Webmachine)
end
|
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
|