]> gitweb.michael.orlitzky.com - mailshears.git/blobdiff - lib/mv/mv_plugin.rb
Add a bunch more crap and rewrite a bunch more crap. Now the 'rm' mode at least runs.
[mailshears.git] / lib / mv / mv_plugin.rb
index c5647f2c92a6ecee0915fa5ab96504c3f04e615e..2ccb9a388572acedcb3dbb67bc36120f06381347 100644 (file)
@@ -3,7 +3,19 @@ module MvPlugin
   # Plugins for moving (renaming) accounts.
   #
 
-  def mv_domain(from. to)
+  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
+
+  def mv_domain(from, to)
     # Rename the given domain.
     raise NotImplementedError
   end