]>
gitweb.michael.orlitzky.com - mailshears.git/blob - lib/rm/rm_plugin.rb
3 # Plugins for the removal of users.
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
26 def delete_domain(domain
)
27 # Delete the given domain. Some plugins don't have a concept of
28 # domains, so just delete all users with a username that looks
29 # like it's in the given domain.
30 usernames
= list_domains_users([domain
])
32 raise NonexistentDomainError
.new(domain
) if usernames
.empty
?
40 # Delete the given user.
41 raise NotImplementedError