]> gitweb.michael.orlitzky.com - mailshears.git/blobdiff - lib/mv/mv_plugin.rb
Replace 'account' with 'user' everywhere.
[mailshears.git] / lib / mv / mv_plugin.rb
index 76fad8395cf6454666d3caf1b3ed3e7401dce0cb..40184422fbd8f9a5601fa3a57a92632163007d47 100644 (file)
@@ -1,15 +1,27 @@
 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
+  end
+
+  def MvPlugin.includers
+    return @includers
+  end
+
   def mv_domain(from, to)
     # Rename the given domain.
     raise NotImplementedError
   end
 
-  def mv_account(from, to)
-    # Rename the given account.
+  def mv_user(from, to)
+    # Rename the given user.
     raise NotImplementedError
   end