class Puma::DSL
def on_booted(&block)
puts 'After booting...'
on_booted do
@example
Code to run after puma is booted (works for both: single and clustered)
def on_booted(&block) @config.options[:events].on_booted(&block) end
def on_booted(&block) @config.options[:events].on_booted(&block) end