]> gitweb.michael.orlitzky.com - mailshears.git/blobdiff - lib/rm/rm_plugin.rb
Move the Runner selection into the plugin.
[mailshears.git] / lib / rm / rm_plugin.rb
index 49c340f7988f1fc75d1243de6d437795be0ac365..95c595aa2afc94c881007c8984c7fb4b276aa521 100644 (file)
@@ -1,6 +1,6 @@
 module RmPlugin
   #
-  # Plugins for the removal of accounts.
+  # Plugins for the removal of users.
   #
 
   def RmPlugin.included(c)
@@ -15,6 +15,14 @@ module RmPlugin
     return @includers
   end
 
+  def runner()
+    return RmRunner
+  end
+
+  def dummy_runner()
+    return RmDummyRunner
+  end
+
   def delete_domain(domain)
     # Delete the given domain. Some plugins don't have a concept of
     # domains, so just delete all users with a username that looks
@@ -24,12 +32,12 @@ module RmPlugin
     raise NonexistentDomainError.new(domain) if usernames.empty?
 
     usernames.each do |u|
-      delete_account(u)
+      delete_user(u)
     end
   end
 
-  def delete_account(account)
-    # Delete the given account.
+  def delete_user(user)
+    # Delete the given user.
     raise NotImplementedError
   end