X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=lib%2Frm%2Frm_plugin.rb;h=95c595aa2afc94c881007c8984c7fb4b276aa521;hb=e7c89a22bd64fe2f1023b87728315b97cac715b8;hp=49c340f7988f1fc75d1243de6d437795be0ac365;hpb=483d14dc8228a81d12fb109d3ed6510e2d2b03c1;p=mailshears.git diff --git a/lib/rm/rm_plugin.rb b/lib/rm/rm_plugin.rb index 49c340f..95c595a 100644 --- a/lib/rm/rm_plugin.rb +++ b/lib/rm/rm_plugin.rb @@ -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