]>
gitweb.michael.orlitzky.com - mailshears.git/blob - lib/prune/prune_plugin.rb
7 # Plugins for the removal of leftover non-PostfixAdmin accounts,
8 # i.e. after an account has been removed from the PostfixAdmin
12 def PrunePlugin
.included(c
)
13 # Callback, called whenever another class or module includes this
14 # one. The parameter given is the name of the class or module
20 def PrunePlugin
.includers
24 def get_leftover_domains(db_domains
)
25 # Given a list of domains, determine which domains belonging to
26 # this plugin are not contained in the given list.
27 raise NotImplementedError
30 def get_leftover_accounts(db_accounts
)
31 # Given a list of accounts, determine which accounts belonging to
32 # this plugin are not contained in the given list.
33 raise NotImplementedError