X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=blobdiff_plain;f=lib%2Fmv%2Fmv_plugin.rb;h=089e6c772bc7d9ddec80db26359449aae08b2c73;hp=40184422fbd8f9a5601fa3a57a92632163007d47;hb=a66e4a7e39518629981fa134456dc2ae6c461faf;hpb=72696d3f6e95ef773af9727e9c3459b9038b0fc2 diff --git a/lib/mv/mv_plugin.rb b/lib/mv/mv_plugin.rb index 4018442..089e6c7 100644 --- a/lib/mv/mv_plugin.rb +++ b/lib/mv/mv_plugin.rb @@ -3,24 +3,17 @@ module MvPlugin # Plugins for moving (renaming) users. # - def MvPlugin.included(c) - # Callback, called whenever another class or module includes this - # one. The parameter given is the name of the class or module - # that included us. - @includers ||= [] - @includers << c - end + extend Plugin::Run - def MvPlugin.includers - return @includers + def self.runner() + return MvRunner end - def mv_domain(from, to) - # Rename the given domain. - raise NotImplementedError + def self.dummy_runner() + return MvDummyRunner end - def mv_user(from, to) + def mv_user(src, dst) # Rename the given user. raise NotImplementedError end