]> 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 2ccb9a388572acedcb3dbb67bc36120f06381347..4b616032b5cfc312c74e790d685bf70ff167f15b 100644 (file)
@@ -1,18 +1,16 @@
 module MvPlugin
   #
 module MvPlugin
   #
-  # Plugins for moving (renaming) accounts.
+  # 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
+  extend Plugin::Run
+
+  def self.runner()
+    return MvRunner
   end
 
   end
 
-  def MvPlugin.includers
-    return @includers
+  def self.dummy_runner()
+    return MvDummyRunner
   end
 
   def mv_domain(from, to)
   end
 
   def mv_domain(from, to)
@@ -20,8 +18,8 @@ module MvPlugin
     raise NotImplementedError
   end
 
     raise NotImplementedError
   end
 
-  def mv_account(from, to)
-    # Rename the given account.
+  def mv_user(from, to)
+    # Rename the given user.
     raise NotImplementedError
   end
 
     raise NotImplementedError
   end