Sha256: de2649ea1f541bde348fad9b46b3bb80a9916dea5dc481bcaa85b68aa9a968de
Contents?: true
Size: 502 Bytes
Versions: 2
Compression:
Stored size: 502 Bytes
Contents
#!/usr/bin/env ruby require "fileutils" def absolute_path(path) path =~ /^\// ? path : File.join(Dir.pwd, path) end file = absolute_path(ARGV[0]) input = absolute_path(ARGV[1]) output_folder = FileUtils.mkdir_p(absolute_path(ARGV[2])) require file Mandy::Job.jobs.each_with_index do |job, i| out = File.join(output_folder, "#{i+1}-#{job.name.downcase.gsub(/\W/, '-')}") `cat #{input} | mandy-map #{file} "#{job.name}" | sort | mandy-reduce #{file} "#{job.name}" > #{out}` input = out end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
trafficbroker-mandy-0.1.2 | bin/mandy-local |
trafficbroker-mandy-0.1.3 | bin/mandy-local |