]> gitweb.michael.orlitzky.com - mailshears.git/blob - lib/mailshears/rm_plugin.rb
Factor out common code that can be used to mv (rename) accounts.
[mailshears.git] / lib / mailshears / rm_plugin.rb
1 module RmPlugin
2 #
3 # Plugins for the removal of accounts.
4 #
5
6 def delete_domain(domain)
7 # Delete the given domain.
8 raise NotImplementedError
9 end
10
11 def delete_account(account)
12 # Delete the given account.
13 raise NotImplementedError
14 end
15
16 def get_leftover_domains(db_domains)
17 # Given a list of domains, determine which domains belonging to
18 # this plugin are not contained in the given list.
19 raise NotImplementedError
20 end
21
22 def get_leftover_accounts(db_accounts)
23 # Given a list of accounts, determine which accounts belonging to
24 # this plugin are not contained in the given list.
25 raise NotImplementedError
26 end
27 end