X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=blobdiff_plain;f=lib%2Frm%2Fplugins%2Fdavical.rb;h=04d5fbf024dde17e47375afa486d4359c897c9dd;hp=86273cba6e5d2a31f0fb617b24a88f9088d523cc;hb=8064b7be68006d07889e2d24eb0bddc6063d3275;hpb=e3826d8926e11763837a591986d453e9ef5d9dec diff --git a/lib/rm/plugins/davical.rb b/lib/rm/plugins/davical.rb index 86273cb..04d5fbf 100644 --- a/lib/rm/plugins/davical.rb +++ b/lib/rm/plugins/davical.rb @@ -12,15 +12,12 @@ class DavicalRm include RmPlugin - def delete_domain(domain) - # DAViCal doesn't have a concept of domains. - end - - def delete_account(account) # Delete the given username. DAViCal uses foreign keys properly # and only supports postgres, so we let the ON DELETE CASCADE # trigger handle most of the work. + raise NonexistentAccountError.new(account) if not user_exists(account) + sql_queries = ['DELETE FROM usr WHERE username = $1'] begin @@ -45,4 +42,5 @@ class DavicalRm end + end