Module: HooksWrapper
- Defined in:
- lib/puma/plugin/hooks_wrapper.rb
Instance Method Summary collapse
Instance Method Details
#booted(config) ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/puma/plugin/hooks_wrapper.rb', line 2 def booted(config, &) if new_hooks? config.after_booted(&) else config.on_booted(&) end end |
#restarted(config) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/puma/plugin/hooks_wrapper.rb', line 10 def restarted(config, &) if new_hooks? config.before_restart(&) else config.on_restart(&) end end |
#stopped(config) ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'lib/puma/plugin/hooks_wrapper.rb', line 18 def stopped(config, &) return unless stopped_hook? if new_hooks? config.after_stopped(&) else config.on_stopped(&) end end |