]>
gitweb.michael.orlitzky.com - mailshears.git/blob - lib/prune/plugins/davical.rb
3 require 'prune/prune_plugin'
4 require 'rm/plugins/davical'
6 class DavicalPrune
< DavicalRm
8 # DAViCal only supports Postgres, so even if we ever are
9 # database-agnostic, this plugin can't be.
14 def get_leftover_domains(db_domains
)
15 # DAViCal doesn't have a concept of domains. We could parse the
16 # usernames to see what domains are present, but the point is
17 # moot: all leftover accounts will be pruned anyway.
22 def get_leftover_accounts(db_accounts
)
23 # Get a list of all users who have logged in to DAViCal.
24 davical_accounts
= self.list_users()
25 return davical_accounts
- db_accounts