X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=blobdiff_plain;f=lib%2Fprune%2Fplugins%2Fagendav.rb;h=f0f018381b7d0719a7eba1759b1a05fa6a11952a;hp=15787734517c2345a19eb24e1e1a24e78bb657c0;hb=df4e02ebf6a4e28a58abcb298a4442a245ad0b15;hpb=e3826d8926e11763837a591986d453e9ef5d9dec diff --git a/lib/prune/plugins/agendav.rb b/lib/prune/plugins/agendav.rb index 1578773..f0f0183 100644 --- a/lib/prune/plugins/agendav.rb +++ b/lib/prune/plugins/agendav.rb @@ -1,24 +1,13 @@ require 'pg' -require 'common/agendav_plugin' require 'prune/prune_plugin' require 'rm/plugins/agendav' +# Handle the pruning of Agendav users from its database. This class +# doesn't need to do anything; by inheriting from {AgendavRm}, we get +# its {AgendavRm#remove_user} method and that's all we need to prune. +# class AgendavPrune < AgendavRm - - include AgendavPlugin + # Needed for the magic includers run() method. include PrunePlugin - - def get_leftover_domains(db_domains) - # AgenDAV doesn't have a concept of domains. - return [] - end - - - def get_leftover_accounts(db_accounts) - # Get a list of all users who have logged in to AgenDAV. - ad_accounts = self.get_agendav_usernames() - return ad_accounts - db_accounts - end - end