def configure
if RUBY_PLATFORM =~ /mswin/
options [
['-h', '--host ADDR', "Host to bind to for server", :@host, "0.0.0.0"],
['-p', '--port NUMBER', "Port to bind to", :@port, "3001"],
['-u', '--uri URI', "Where to put your config tool", :@uri, "/config"],
['-R', '--mongrel PATH', "Path to mongrel_rails_service", :@mongrel_script, "c:\\ruby\\bin\\mongrel_rails_service"]
]
else
options [
['-c', '--chdir PATH', "Change to dir before starting (will be expanded)", :@cwd, Dir.pwd],
['-P', '--pid FILE', "Where to write the PID", :@pid_file, "log/mongrel.pid"],
['-h', '--host ADDR', "Host to bind to for server", :@host, "0.0.0.0"],
['-p', '--port NUMBER', "Port to bind to", :@port, "3001"],
['-u', '--uri URI', "Where to put your config tool", :@uri, "/config"]
]
end
end