]> gitweb.michael.orlitzky.com - mailshears.git/blobdiff - lib/prune/plugins/agendav.rb
Document everything with YARD and fix some bugs along the way.
[mailshears.git] / lib / prune / plugins / agendav.rb
index 43b5c99e883cf4287438297308b43769345806aa..f0f018381b7d0719a7eba1759b1a05fa6a11952a 100644 (file)
@@ -3,22 +3,11 @@ require 'pg'
 require 'prune/prune_plugin'
 require 'rm/plugins/agendav'
 
 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
 class AgendavPrune < AgendavRm
-
+  # Needed for the magic includers <tt>run()</tt> method.
   include PrunePlugin
   include PrunePlugin
-
-  def get_leftover_domains(db_domains)
-    # AgenDAV 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 AgenDAV.
-    ad_users = self.list_users()
-    return ad_users - db_users
-  end
-
 end
 end