cad493d9f85c95ae8a3c79bee121e59c508a8efb
[mailshears.git] / lib / rm / rm_plugin.rb
1 module RmPlugin
2 #
3 # Plugins for the removal of accounts.
4 #
5
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
9 # that included us.
10 @includers ||= []
11 @includers << c
12 end
13
14 def RmPlugin.includers
15 return @includers
16 end
17
18 def delete_domain(domain)
19 # Delete the given domain.
20 raise NotImplementedError
21 end
22
23 def delete_account(account)
24 # Delete the given account.
25 raise NotImplementedError
26 end
27
28 def get_domain_usernames(domain)
29 # Get a list of usernames for a given domain,
30 # needed to delete accounts before removing
31 # a domain.
32 raise NotImplementedError
33 end
34
35 end