X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/58499290eb987cf8905e1a631bbf00b8ff0e6457..e756dbae7f3715561de5688e6503b60fdfe0327d:/vendor/gems/rots-0.2.1/bin/rots diff --git a/vendor/gems/rots-0.2.1/bin/rots b/vendor/gems/rots-0.2.1/bin/rots index 37dc1feef..27178d89d 100755 --- a/vendor/gems/rots-0.2.1/bin/rots +++ b/vendor/gems/rots-0.2.1/bin/rots @@ -5,6 +5,7 @@ $:.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require "rubygems" require "optparse" require "rack" +require "yaml" require "rots" server_options = { @@ -90,5 +91,9 @@ puts "\x1B[32mRunning OpenID Test server on port 1123\x1B[0m" if server_options[ begin Rack::Handler::Mongrel.run server, :Port => server_options[:port] rescue LoadError - Rack::Handler::WEBrick.run server, :Port => server_options[:port] + if server_options[:verbose] + Rack::Handler::WEBrick.run server, :Port => server_options[:port] + else + Rack::Handler::WEBrick.run server, :Port => server_options[:port], :AccessLog => [], :Logger => WEBrick::Log::new("/dev/null", 7) + end end