]> gitweb.michael.orlitzky.com - mailshears.git/blob - lib/rm/plugins/dovecot.rb
Rename PostfixadminDb, RoundcubeDb without the Db suffix.
[mailshears.git] / lib / rm / plugins / dovecot.rb
1 # Needed for rm_r.
2 require 'fileutils'
3
4 require 'common/dovecot_plugin'
5 require 'rm/rm_plugin'
6
7 class DovecotRm
8
9 include DovecotPlugin
10 include RmPlugin
11
12
13 def delete_domain(domain)
14 # Will raise an exception if the path doesn't exist.
15 domain_path = self.get_domain_path(domain)
16 FileUtils.rm_r(domain_path)
17 end
18
19 def delete_account(account)
20 # Will raise an exception if the path doesn't exist.
21 account_path = self.get_account_path(account)
22 FileUtils.rm_r(account_path)
23 end
24
25 end