X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=blobdiff_plain;f=lib%2Fmv%2Fmv_plugin.rb;h=2ccb9a388572acedcb3dbb67bc36120f06381347;hp=c5647f2c92a6ecee0915fa5ab96504c3f04e615e;hb=e3826d8926e11763837a591986d453e9ef5d9dec;hpb=ec3c9099a29f40d95f055ea0f7fb25a99d913de3 diff --git a/lib/mv/mv_plugin.rb b/lib/mv/mv_plugin.rb index c5647f2..2ccb9a3 100644 --- a/lib/mv/mv_plugin.rb +++ b/lib/mv/mv_plugin.rb @@ -3,7 +3,19 @@ module MvPlugin # Plugins for moving (renaming) accounts. # - def mv_domain(from. to) + 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 mv_domain(from, to) # Rename the given domain. raise NotImplementedError end