# File lib/mongrel_cluster/init.rb, line 17 def read_options @options = { "environment" => ENV['RAILS_ENV'] || "development", "port" => 3000, "pid_file" => "tmp/pids/mongrel.pid", "log_file" => "log/mongrel.log", "servers" => 2 } conf = YAML.load_file(@config_file) @options.merge! conf if conf process_pid_file @options["pid_file"] process_log_file @options["log_file"] start_port = end_port = @only start_port ||= @options["port"].to_i end_port ||= start_port + @options["servers"] - 1 @ports = (start_port..end_port).to_a end