]> gitweb.michael.orlitzky.com - mailshears.git/blobdiff - lib/common/agendav_plugin.rb
Implement user_exists() everywhere and use it to correct the console output.
[mailshears.git] / lib / common / agendav_plugin.rb
index fad869f95235964884d58635a465d670cde7b455..88de0d79ded0ca11897f1fbf4a60bf0162db2d92 100644 (file)
@@ -20,7 +20,7 @@ module AgendavPlugin
 
   def describe_domain(domain)
     # AgenDAV doesn't have a concept of domains.
-    return 'N/A'
+    return domain
   end
 
 
@@ -35,12 +35,8 @@ module AgendavPlugin
 
   protected;
 
-  def user_exists(account)
-    ad_users = get_agendav_usernames()
-    return ad_users.include?(account)
-  end
 
-  def get_agendav_usernames()
+  def list_users()
     usernames = []
 
     # Just assume PostgreSQL for now.