Class: Appsignal::Hooks::ShoryukenHook
- Inherits:
-
Hook
- Object
- Hook
- Appsignal::Hooks::ShoryukenHook
show all
- Defined in:
- lib/appsignal/hooks/shoryuken.rb
Instance Method Summary
collapse
Methods inherited from Hook
#installed?, register, #try_to_install
Instance Method Details
#dependencies_present? ⇒ Boolean
29
30
31
|
# File 'lib/appsignal/hooks/shoryuken.rb', line 29
def dependencies_present?
defined?(::Shoryuken)
end
|
#install ⇒ Object
33
34
35
36
37
38
39
|
# File 'lib/appsignal/hooks/shoryuken.rb', line 33
def install
::Shoryuken.configure_server do |config|
config.server_middleware do |chain|
chain.add Appsignal::Hooks::ShoryukenMiddleware
end
end
end
|