Move domain removal into the plugins.
[mailshears.git] / lib / rm / plugins / dovecot_mailstore.rb
1 # Needed for rm_r.
2 require 'fileutils'
3
4 require 'common/dovecot_mailstore_plugin'
5 require 'rm/rm_plugin'
6
7 class DovecotMailstoreRm
8
9 include DovecotMailstorePlugin
10 include RmPlugin
11
12
13 def delete_domain(domain)
14 domain_path = self.get_domain_path(domain)
15 FileUtils.rm_r(domain_path)
16 end
17
18 def delete_account(account)
19 account_path = self.get_account_path(account)
20 FileUtils.rm_r(account_path)
21 end
22
23 end