X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=blobdiff_plain;f=lib%2Fprune%2Fplugins%2Fdavical.rb;h=743356d039778d22322f22a8930f7f0672a0791d;hp=3c5ff0e3401a7087c6a56810f3958866323d92af;hb=df4e02ebf6a4e28a58abcb298a4442a245ad0b15;hpb=72696d3f6e95ef773af9727e9c3459b9038b0fc2 diff --git a/lib/prune/plugins/davical.rb b/lib/prune/plugins/davical.rb index 3c5ff0e..743356d 100644 --- a/lib/prune/plugins/davical.rb +++ b/lib/prune/plugins/davical.rb @@ -3,27 +3,11 @@ require 'pg' require 'prune/prune_plugin' require 'rm/plugins/davical' +# Handle the pruning of DAViCal users from its database. This class +# doesn't need to do anything; by inheriting from {DavicalRm}, we get +# its {DavicalRm#remove_user} method and that's all we need to prune. +# class DavicalPrune < DavicalRm - # - # DAViCal only supports Postgres, so even if we ever are - # database-agnostic, this plugin can't be. - # + # Needed for the magic includers run() method. include PrunePlugin - - - def get_leftover_domains(db_domains) - # DAViCal doesn't have a concept of domains. We could parse the - # usernames to see what domains are present, but the point is - # moot: all leftover users will be pruned anyway. - return [] - end - - - def get_leftover_users(db_users) - # Get a list of all users who have logged in to DAViCal. - davical_users = self.list_users() - return davical_users - db_users - end - - end