]>
gitweb.michael.orlitzky.com - mailshears.git/blob - lib/rm/plugins/dovecot.rb
4 require 'common/dovecot_plugin'
13 def delete_domain(domain
)
14 domain_path
= self.get_domain_path(domain
)
16 if not File
.directory
?(domain_path
)
17 raise NonexistentDomainError
.new(domain
.to_s())
20 FileUtils
.rm_r(domain_path
)
24 user_path
= self.get_user_path(user
)
26 if not File
.directory
?(user_path
)
27 raise NonexistentUserError
.new(user
.to_s())
30 FileUtils
.rm_r(user_path
)