]> gitweb.michael.orlitzky.com - mailshears.git/blob - lib/prune/plugins/agendav.rb
Implement user_exists() everywhere and use it to correct the console output.
[mailshears.git] / lib / prune / plugins / agendav.rb
1 require 'pg'
2
3 require 'common/agendav_plugin'
4 require 'prune/prune_plugin'
5 require 'rm/plugins/agendav'
6
7 class AgendavPrune < AgendavRm
8
9 include AgendavPlugin
10 include PrunePlugin
11
12 def get_leftover_domains(db_domains)
13 # AgenDAV doesn't have a concept of domains.
14 return []
15 end
16
17
18 def get_leftover_accounts(db_accounts)
19 # Get a list of all users who have logged in to AgenDAV.
20 ad_accounts = self.get_agendav_usernames()
21 return ad_accounts - db_accounts
22 end
23
24 end