instiki/vendor/rails/railties/lib/commands/servers/new_mongrel.rb
Jacques Distler 5292899c9a Rails 2.1 RC1
Updated Instiki to Rails 2.1 RC1 (aka 2.0.991).
2008-05-17 23:22:34 -05:00

17 lines
430 B
Ruby

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