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