about summary refs log tree commit homepage
path: root/bin/mongrel_rails_service
diff options
context:
space:
mode:
Diffstat (limited to 'bin/mongrel_rails_service')
-rw-r--r--bin/mongrel_rails_service14
1 files changed, 8 insertions, 6 deletions
diff --git a/bin/mongrel_rails_service b/bin/mongrel_rails_service
index 50131ae..352219c 100644
--- a/bin/mongrel_rails_service
+++ b/bin/mongrel_rails_service
@@ -7,8 +7,6 @@
 ###############################################
 require 'rubygems'
 require 'mongrel'
-require 'mongrel/command'
-
 require 'win32/service'
 include Win32
 
@@ -32,7 +30,8 @@ module GenericCommand
   end
 end
 
-class InstallCommand < Mongrel::Command::Command
+class InstallCommand < Mongrel::Plugin "/commands"
+  include Mongrel::Command::Command
 
   # Default every option to nil so only the defined ones get passed to service
   # (which will override ServiceCommand defaults).
@@ -175,7 +174,8 @@ class InstallCommand < Mongrel::Command::Command
   end
 end
 
-class DeleteCommand < Mongrel::Command::Command
+class Delete < Mongrel::Plugin "/commands"
+  include Mongrel::Command::Command
   include GenericCommand
 
   def run
@@ -193,7 +193,8 @@ class DeleteCommand < Mongrel::Command::Command
   end
 end
 
-class StartCommand < Mongrel::Command::Command
+class Start < Mongrel::Plugin "/commands"
+  include Mongrel::Command::Command
   include GenericCommand
   
   def run
@@ -217,7 +218,8 @@ class StartCommand < Mongrel::Command::Command
   end
 end
 
-class StopCommand < Mongrel::Command::Command
+class Stop < Mongrel::Plugin "/commands"
+  include Mongrel::Command::Command
   include GenericCommand
   
   def run