Sha256: 22cea2ca05a4e04c021217cadbf2cace351a49896bdfca9b676fef728c012a1e

Contents?: true

Size: 302 Bytes

Versions: 1

Compression:

Stored size: 302 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

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

require file

Mandy::Job.find_by_name(job_name).run_reduce

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
trafficbroker-mandy-0.2.2 bin/mandy-reduce