X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=blobdiff_plain;f=lib%2Fcommon%2Fagendav_plugin.rb;h=ae9b11c0b05d89874ebdc6dedbc2e85af36c6b89;hp=a29f3ae84a7df1d712badacfc53bc3d3f245b345;hb=bf7d0402eda27d9487ca9402156818545fdda286;hpb=365d681f1ef45bd3f5f2c9dded07108bdd75a1ff diff --git a/lib/common/agendav_plugin.rb b/lib/common/agendav_plugin.rb index a29f3ae..ae9b11c 100644 --- a/lib/common/agendav_plugin.rb +++ b/lib/common/agendav_plugin.rb @@ -23,19 +23,20 @@ module AgendavPlugin end - def describe_account(account) - if self.user_exists(account) - return "Username: #{account}" + def describe_user(user) + if self.user_exists(user) + return "Username: #{user}" else return 'User not found' end end - protected; - - def list_users() + # + # Produce a list of AgenDAV users. This is public because it's + # useful in testing. + # usernames = [] # Just assume PostgreSQL for now.