From bbaf6bb51edf0402faad07191cc042d5297ed2fc Mon Sep 17 00:00:00 2001 From: zedshaw Date: Mon, 6 Mar 2006 05:31:39 +0000 Subject: Implements the new gem based plugins as a separate projects/gem_plugin. Sets up new rake tasks to support testing gems easier (won't work on win32 yet). Uses the plugin system in mongrel_rails (win32 coming soon). git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@83 19e92222-5c0b-0410-8929-a290d50e31e9 --- bin/mongrel_rails | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'bin') diff --git a/bin/mongrel_rails b/bin/mongrel_rails index 1cb339b..294a41c 100644 --- a/bin/mongrel_rails +++ b/bin/mongrel_rails @@ -3,7 +3,8 @@ require 'mongrel/rails' require 'yaml' -class Start < Mongrel::Plugin "/commands" + +class Start < GemPlugin::Plugin "/commands" include Mongrel::Command::Base def configure @@ -111,7 +112,7 @@ class Start < Mongrel::Plugin "/commands" end # hook up any rails specific plugins - Mongrel::PluginManager.instance.load + GemPlugin::Manager.instance.load "mongrel" => GemPlugin::INCLUDE begin STDERR.puts "Server ready." @@ -146,7 +147,7 @@ def send_signal(signal, pid_file) end -class Stop < Mongrel::Plugin "/commands" +class Stop < GemPlugin::Plugin "/commands" include Mongrel::Command::Base def configure @@ -181,7 +182,7 @@ end -class Restart < Mongrel::Plugin "/commands" +class Restart < GemPlugin::Plugin "/commands" include Mongrel::Command::Base def configure @@ -214,5 +215,6 @@ class Restart < Mongrel::Plugin "/commands" end end -Mongrel::PluginManager.instance.load ["rails"] +GemPlugin::Manager.instance.load "mongrel" => GemPlugin::INCLUDE, "rails" => GemPlugin::EXCLUDE + Mongrel::Command::Registry.instance.run ARGV -- cgit v1.2.3-24-ge0c7