]> gitweb.michael.orlitzky.com - mailshears.git/blobdiff - lib/mv/mv_dummy_runner.rb
Overhaul everything to get consistent error reports.
[mailshears.git] / lib / mv / mv_dummy_runner.rb
index 0e3beeed4c73ad30545258e34a4ed79da29ab5ca..662abff73e89d1b176a97b4cea8d780415eec3bf 100644 (file)
@@ -1,12 +1,16 @@
+require 'common/runner'
+
 class MvDummyRunner
   include Runner
 
   def run(plugin, src, dst)
-    if src.include?('@') then
-      puts "Would move account: #{src} to #{dst}"
-    else
-      puts "Would move domain: #{src} to #{dst}"
+
+    if src.is_a?(Domain) or dst.is_a?(Domain) then
+      msg = 'only users can be moved'
+      raise NotImplementedError.new(msg)
     end
+
+    puts "Would move user #{src.to_s()} to #{dst.to_s()}."
   end
 
 end