]> gitweb.michael.orlitzky.com - mailshears.git/blob - lib/mv/mv_plugin.rb
958f6d40f98d0fd3d3cfdb76d24000c6fcd7b844
[mailshears.git] / lib / mv / mv_plugin.rb
1 module MvPlugin
2 #
3 # Plugins for moving (renaming) users.
4 #
5
6 def MvPlugin.included(c)
7 # Callback, called whenever another class or module includes this
8 # one. The parameter given is the name of the class or module
9 # that included us.
10 @includers ||= []
11 @includers << c
12 end
13
14 def MvPlugin.includers
15 return @includers
16 end
17
18 def runner()
19 return MvRunner
20 end
21
22 def dummy_runner()
23 return MvDummyRunner
24 end
25
26 def mv_domain(from, to)
27 # Rename the given domain.
28 raise NotImplementedError
29 end
30
31 def mv_user(from, to)
32 # Rename the given user.
33 raise NotImplementedError
34 end
35
36 end