]>
gitweb.michael.orlitzky.com - mailshears.git/blob - lib/prune/prune_plugin.rb
5 # Plugins for the removal of leftover non-PostfixAdmin users,
6 # i.e. after an user has been removed from the PostfixAdmin
17 return PruneDummyRunner
20 def get_leftover_domains(db_domains
)
21 # Given a list of domains, determine which domains belonging to
22 # this plugin are not contained in the given list.
24 # WARNING! Array difference doesn't work for some reason.
25 return list_domains().select
{ |d
| !db_domains
.include?(d
) }
28 def get_leftover_users(db_users
)
29 # Given a list of users, determine which users belonging to
30 # this plugin are not contained in the given list.
32 # WARNING! Array difference doesn't work for some reason.
33 return list_users().select
{ |u
| !db_users
.include?(u
) }