Sha256: ba7983c2a1e46b151544ecc344d4c731d78039ace4239d6c9361b3df7b4927a2

Contents?: true

Size: 497 Bytes

Versions: 1

Compression:

Stored size: 497 Bytes

Contents

#!/usr/bin/env ruby
# Suggested execution is mixing find / xargs with the parallel (P) parameters:
# find test/fixture/ -type f | xargs -P 5  -n 10 ./bin/czindexer
# will fire 5 czindexer each with 10 files to process...
require 'code_zauker'
ARGV.each do | l |
  if Dir.exists?(l)
    puts "Processing via find+xargs"
    system("find #{l}  -type f | xargs -P 5  -n 10 #{$0}")
  else
    puts "Meganoids indexing #{l}"
    fs=CodeZauker::FileScanner.new()
    fs.load(l,noReload=false)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
code_zauker-0.0.1 bin/czindexer