Method: Mongrel::Configurator#run
- Defined in:
- lib/mongrel/configurator.rb
#run ⇒ Object
Works like a meta run method which goes through all the configured listeners. Use the Configurator.join method to prevent Ruby from exiting until each one is done.
280 281 282 283 284 285 286 |
# File 'lib/mongrel/configurator.rb', line 280 def run @listeners.each {|name,s| s.run } $mongrel_sleeper_thread = Thread.new { loop { sleep 1 } } end |