Module: Pork::Sequential

Included in:
Executor
Defined in:
lib/pork/mode/sequential.rb

Instance Method Summary collapse

Instance Method Details

#sequential(stat = Stat.new, paths = nil) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/pork/mode/sequential.rb', line 6

def sequential stat=Stat.new, paths=nil
  if paths
    require 'pork/isolate'
    paths.inject(stat, &method(:isolate))
  else # maybe we could remove this mode if it's not faster and lighter
    sequential_with_env(stat)
  end
end