Sha256: 4359f919a4a3346b1c3fc3a2a73ca097813475dbf53e9ea51cb2b3968bd37999

Contents?: true

Size: 376 Bytes

Versions: 4

Compression:

Stored size: 376 Bytes

Contents

#!/usr/bin/env ruby

if ARGV.size==0
  puts "USAGE: mandy-reduce my_script.rb 'Job Name' [payload]"
  exit
end

def absolute_path(path)
  path =~ /^\// ? path : File.join(Dir.pwd, path)
end

if ARGV.size > 3
  payload = ARGV[3]
  Mandy::Packer.unpack(payload)
end

file   = absolute_path(ARGV[0])
job_name = ARGV[1]

require file

Mandy::Job.find_by_name(job_name).run_reduce

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
trafficbroker-mandy-0.2.3 bin/mandy-reduce
trafficbroker-mandy-0.2.4.2 bin/mandy-reduce
trafficbroker-mandy-0.2.4.3 bin/mandy-reduce
trafficbroker-mandy-0.2.4 bin/mandy-reduce