X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=blobdiff_plain;f=lib%2Fmv%2Fmv_plugin.rb;h=958f6d40f98d0fd3d3cfdb76d24000c6fcd7b844;hp=76fad8395cf6454666d3caf1b3ed3e7401dce0cb;hb=6f2bc0181c6bb900e37d04ea722beec54486b87e;hpb=616d9c0f3260f4d8e9bf26140fa6032c3eabca8b diff --git a/lib/mv/mv_plugin.rb b/lib/mv/mv_plugin.rb index 76fad83..958f6d4 100644 --- a/lib/mv/mv_plugin.rb +++ b/lib/mv/mv_plugin.rb @@ -1,15 +1,35 @@ module MvPlugin # - # Plugins for moving (renaming) accounts. + # 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 + + def MvPlugin.includers + return @includers + end + + def runner() + return MvRunner + end + + def dummy_runner() + return MvDummyRunner + end + def mv_domain(from, to) # Rename the given domain. raise NotImplementedError end - def mv_account(from, to) - # Rename the given account. + def mv_user(from, to) + # Rename the given user. raise NotImplementedError end