class Pork::Executor
Public Class Methods
[](index)
click to toggle source
# File lib/pork/executor.rb, line 7 def self.[] index Isolator[][index] end
execute(mode: Pork.execute_mode, stat: Pork.stat, suite: Suite, isolator: Isolator[suite], paths: isolator.all_paths)
click to toggle source
# File lib/pork/executor.rb, line 11 def self.execute mode: Pork.execute_mode, stat: Pork.stat, suite: Suite, isolator: Isolator[suite], paths: isolator.all_paths require "pork/mode/#{mode}" Pork.const_get(mode.capitalize).new(isolator).execute(stat, paths) end
new(new_isolator)
click to toggle source
Calls superclass method
# File lib/pork/executor.rb, line 20 def initialize new_isolator super(new_isolator) extensions = Pork.execute_extensions extend(*extensions.reverse) if extensions.any? end
Public Instance Methods
execute(stat=Stat.new, paths=isolator.all_paths)
click to toggle source
# File lib/pork/executor.rb, line 26 def execute stat=Stat.new, paths=isolator.all_paths raise NotImplementedError end