]>
gitweb.michael.orlitzky.com - mailshears.git/blob - lib/rm/rm_plugin.rb
49c340f7988f1fc75d1243de6d437795be0ac365
3 # Plugins for the removal of accounts.
6 def RmPlugin
.included(c
)
7 # Callback, called whenever another class or module includes this
8 # one. The parameter given is the name of the class or module
14 def RmPlugin
.includers
18 def delete_domain(domain
)
19 # Delete the given domain. Some plugins don't have a concept of
20 # domains, so just delete all users with a username that looks
21 # like it's in the given domain.
22 usernames
= list_domains_users([domain
])
24 raise NonexistentDomainError
.new(domain
) if usernames
.empty
?
31 def delete_account(account
)
32 # Delete the given account.
33 raise NotImplementedError