class Puma::DSL

def on_restart(&block)

end
puts 'On restart...'
on_restart do
@example

This can be called multiple times to add code each time.

close log files, database connections, etc.
Code to run before doing a restart. This code should
def on_restart(&block)
  @options[:on_restart] ||= []
  @options[:on_restart] << block
end