]> gitweb.michael.orlitzky.com - mailshears.git/blobdiff - lib/mv/mv_plugin.rb
In the middle of refactoring the binary to accept three modes of execution. Does...
[mailshears.git] / lib / mv / mv_plugin.rb
index 76fad8395cf6454666d3caf1b3ed3e7401dce0cb..2ccb9a388572acedcb3dbb67bc36120f06381347 100644 (file)
@@ -3,6 +3,18 @@ module MvPlugin
   # Plugins for moving (renaming) accounts.
   #
 
+  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