]>
gitweb.michael.orlitzky.com - mailshears.git/blob - lib/rm/rm_plugin.rb
e2f2cfe413278bba00a1f0a572451b32fd6936a7
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.
20 raise NotImplementedError
23 def delete_account(account
)
24 # Delete the given account.
25 raise NotImplementedError
28 def get_leftover_domains(db_domains
)
29 # Given a list of domains, determine which domains belonging to
30 # this plugin are not contained in the given list.
31 raise NotImplementedError
34 def get_leftover_accounts(db_accounts
)
35 # Given a list of accounts, determine which accounts belonging to
36 # this plugin are not contained in the given list.
37 raise NotImplementedError