class Webrat::Selenium::ApplicationServers::Rails
Public Instance Methods
fail()
click to toggle source
# File lib/webrat/selenium/application_servers/rails.rb, line 18 def fail $stderr.puts $stderr.puts $stderr.puts "==> Failed to boot the Rails application server... exiting!" $stderr.puts $stderr.puts "Verify you can start a Rails server on port #{Webrat.configuration.application_port} with the following command:" $stderr.puts $stderr.puts " #{start_command}" exit end
pid_file()
click to toggle source
# File lib/webrat/selenium/application_servers/rails.rb, line 29 def pid_file prepare_pid_file("#{::Rails.root}/tmp/pids", "mongrel_selenium.pid") end
start()
click to toggle source
# File lib/webrat/selenium/application_servers/rails.rb, line 8 def start system start_command end
start_command()
click to toggle source
# File lib/webrat/selenium/application_servers/rails.rb, line 33 def start_command "mongrel_rails start -d --chdir='#{::Rails.root}' --port=#{Webrat.configuration.application_port} --environment=#{Webrat.configuration.application_environment} --pid #{pid_file} &" end
stop()
click to toggle source
# File lib/webrat/selenium/application_servers/rails.rb, line 12 def stop silence_stream(STDOUT) do system stop_command end end
stop_command()
click to toggle source
# File lib/webrat/selenium/application_servers/rails.rb, line 37 def stop_command "mongrel_rails stop -c #{::Rails.root} --pid #{pid_file}" end