Sha256: d8f62e0da89d3316c3d88dbf3896e0b17ac6f7507220a5ff95c68fc810f9806f

Contents?: true

Size: 411 Bytes

Versions: 35

Compression:

Stored size: 411 Bytes

Contents

#!/usr/bin/env ruby
require "rubygems"
require "mandy"

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 > 2
  payload = ARGV[2]
  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

35 entries across 35 versions & 2 rubygems

Version Path
mandy-0.4.996 bin/mandy-reduce
mandy-0.4.995 bin/mandy-reduce
mandy-0.4.994 bin/mandy-reduce
mandy-0.4.993 bin/mandy-reduce
mandy-0.4.992 bin/mandy-reduce
mandy-0.4.991 bin/mandy-reduce
mandy-0.4.99 bin/mandy-reduce
mandy-0.4.98 bin/mandy-reduce
mandy-0.4.97 bin/mandy-reduce
mandy-0.4.96 bin/mandy-reduce
mandy-0.4.95 bin/mandy-reduce
mandy-0.4.94 bin/mandy-reduce
mandy-0.4.93 bin/mandy-reduce
mandy-0.2.15 bin/mandy-reduce
mandy-0.2.14 bin/mandy-reduce