1 unless defined?(Mongrel
)
2 abort
"PROBLEM: Mongrel is not available on your system (or not in your path)"
5 require 'rails/mongrel_server/commands'
7 GemPlugin
::Manager.instance
.load
"rails::mongrel" => GemPlugin
::INCLUDE, "rails" => GemPlugin
::EXCLUDE
9 case ARGV[0] ||= 'start'
10 when 'start', 'stop', 'restart'
11 ARGV[0] = "rails::mongrelserver::#{ARGV[0]}"
14 if not Mongrel
::Command::Registry.instance
.run
ARGV