Sha256: 84394ffc2e03ea326c83169f5c2ca53163c24128c9632114132a51121202d5c3

Contents?: true

Size: 560 Bytes

Versions: 31

Compression:

Stored size: 560 Bytes

Contents

#!/usr/bin/env ruby
environment = File.expand_path(File.join(File.dirname(__FILE__), '..', 'vendor', 'gems', 'environment.rb'))
require File.exist?(environment) ? environment : "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

31 entries across 31 versions & 1 rubygems

Version Path
mandy-0.4.92 bin/mandy-reduce
mandy-0.4.91 bin/mandy-reduce
mandy-0.4.90 bin/mandy-reduce
mandy-0.4.89 bin/mandy-reduce
mandy-0.4.88 bin/mandy-reduce
mandy-0.4.87 bin/mandy-reduce
mandy-0.4.86 bin/mandy-reduce
mandy-0.4.83 bin/mandy-reduce
mandy-0.4.10 bin/mandy-reduce
mandy-0.4.81 bin/mandy-reduce
mandy-0.4.8 bin/mandy-reduce
mandy-0.4.7 bin/mandy-reduce
mandy-0.4.6 bin/mandy-reduce
mandy-0.4.5 bin/mandy-reduce
mandy-0.4.4 bin/mandy-reduce
mandy-0.4.3 bin/mandy-reduce
mandy-0.4.2 bin/mandy-reduce
mandy-0.4.1 bin/mandy-reduce
mandy-0.4 bin/mandy-reduce
mandy-0.3.13 bin/mandy-reduce