lib/pork/mode/shuffled.rb in pork-1.5.0 vs lib/pork/mode/shuffled.rb in pork-2.0.0
- old
+ new
@@ -1,11 +1,11 @@
+require 'pork/executor'
+
module Pork
- module Shuffled
- def shuffled stat=Stat.new, paths=all_paths
+ class Shuffled < Executor
+ def execute stat=Stat.new, paths=isolator.all_paths
stat.prepare(paths)
- paths.shuffle.inject(stat, &method(:isolate))
+ paths.shuffle.inject(stat, &isolator.method(:isolate))
end
end
-
- Executor.extend(Shuffled)
end