Method: Puma::DSL#on_stopped

Defined in:
lib/puma/dsl.rb

#on_stoppedObject

Code to run after puma is stopped (works for both: single and clustered)

Examples:

after_stopped do
  puts 'After stopping...'
end


848
849
850
851
852
# File 'lib/puma/dsl.rb', line 848

def after_stopped(&block)
  Puma.deprecate_method_change :on_stopped, __callee__, __method__

  @config.events.after_stopped(&block)
end