Class: RmRunner

Inherits:
Object
  • Object
show all
Includes:
Runner
Defined in:
lib/rm/rm_runner.rb

Overview

Perform the removal of users/domains using RmPlugins.

Instance Method Summary collapse

Methods included from Runner

#add_description, #pointless?, #report

Instance Method Details

#run(cfg, plugin, *targets) ⇒ Object

Run plugin to remove the users/domains in targets. The method signature includes the unused cfg for consistency with the runners that do need a Configuration.

Parameters:

  • cfg (Configuration)

    unused.

  • plugin (Class)

    plugin class that will perform the removal.

  • targets (Array<User,Domain>)

    the users and domains to be removed.



20
21
22
23
24
# File 'lib/rm/rm_runner.rb', line 20

def run(cfg, plugin, *targets)
  targets.each do |target|
    remove_target(plugin, target)
  end
end