]> gitweb.michael.orlitzky.com - mailshears.git/blobdiff - lib/rm/rm_plugin.rb
Add a bunch more crap and rewrite a bunch more crap. Now the 'rm' mode at least runs.
[mailshears.git] / lib / rm / rm_plugin.rb
index 0c155a18f9441521d1ee3a6c9445927c19bd022a..f8cdd175be5587c0f98e032727a10bcf003a363a 100644 (file)
@@ -3,6 +3,18 @@ module RmPlugin
   # Plugins for the removal of accounts.
   #
 
+  def RmPlugin.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 RmPlugin.includers
+    return @includers
+  end
+
   def delete_domain(domain)
     # Delete the given domain.
     raise NotImplementedError
@@ -13,15 +25,4 @@ module RmPlugin
     raise NotImplementedError
   end
 
-  def get_leftover_domains(db_domains)
-    # Given a list of domains, determine which domains belonging to
-    # this plugin are not contained in the given list.
-    raise NotImplementedError
-  end
-
-  def get_leftover_accounts(db_accounts)
-    # Given a list of accounts, determine which accounts belonging to
-    # this plugin are not contained in the given list.
-    raise NotImplementedError
-  end
 end