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