]> gitweb.michael.orlitzky.com - mailshears.git/blobdiff - lib/mv/mv_plugin.rb
Factor out plugin running into the Plugin module (along with the includers() handling).
[mailshears.git] / lib / mv / mv_plugin.rb
index 958f6d40f98d0fd3d3cfdb76d24000c6fcd7b844..4b616032b5cfc312c74e790d685bf70ff167f15b 100644 (file)
@@ -3,23 +3,13 @@ module MvPlugin
   # Plugins for moving (renaming) users.
   #
 
   # Plugins for moving (renaming) users.
   #
 
-  def MvPlugin.included(c)
-    # Callback, called whenever another class or module includes this
-    # one. The parameter given is the name of the class or module
-    # that included us.
-    @includers ||= []
-    @includers << c
-  end
-
-  def MvPlugin.includers
-    return @includers
-  end
+  extend Plugin::Run
 
 
-  def runner()
+  def self.runner()
     return MvRunner
   end
 
     return MvRunner
   end
 
-  def dummy_runner()
+  def self.dummy_runner()
     return MvDummyRunner
   end
 
     return MvDummyRunner
   end