9bdd13f5f47fb2dc1b71e7c012545c47c08e7e4a
[mailshears.git] / lib / rm / rm_dummy_runner.rb
1 require 'common/runner'
2
3 class RmDummyRunner
4 include Runner
5
6 def run(plugin, *targets)
7 targets.each do |target|
8 if target.include?('@') then
9 puts "Would remove account: #{target}"
10 # TODO: remove from postfixadmin as well.
11 else
12 usernames = plugin.get_domain_usernames(target)
13 usernames.each { |u| run(plugin, u) }
14
15 puts "Would remove domain: #{target}"
16 # TODO: remove from postfixadmin as well.
17 end
18 end
19
20 end
21
22 end