Sha256: 073395c46201525ee5fac033dd67320ad8f1d0252cbbaccc5b3d7859c3f861a2
Contents?: true
Size: 1.11 KB
Versions: 2
Compression:
Stored size: 1.11 KB
Contents
module Polonium class MongrelSeleniumServerRunner < ServerRunner def start mongrel_configurator = configuration.create_mongrel_configurator initialize_server(mongrel_configurator) @thread_class.start do start_server(mongrel_configurator) end @started = true end protected def start_server(mongrel_configurator) mongrel_configurator.run mongrel_configurator.log "Mongrel running at #{configuration.internal_app_server_host}:#{configuration.internal_app_server_port}" mongrel_configurator.join end def initialize_server(config) configuration = self.configuration config.listener do |*args| mongrel = (args.first || self) mongrel.log "Starting Rails in environment #{defaults[:environment]} ..." mongrel.uri "/", :handler => mongrel.rails mongrel.log "Rails loaded." mongrel.log "Loading any Rails specific GemPlugins" mongrel.load_plugins configuration.app_server_initialization.call(mongrel) end end def stop_server end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
polonium-0.1.0 | lib/polonium/mongrel_selenium_server_runner.rb |
polonium-0.1.1 | lib/polonium/mongrel_selenium_server_runner.rb |