bin/mandy-map in trafficbroker-mandy-0.2 vs bin/mandy-map in trafficbroker-mandy-0.2.2

- old
+ new

@@ -1,9 +1,16 @@ #!/usr/bin/env ruby +require "rubygems" +require "mandy" if ARGV.size==0 - puts "USAGE: mandy-map my_script.rb 'Job Name'" + puts "USAGE: mandy-map my_script.rb 'Job Name' [payload]" exit +end + +if ARGV.size > 3 + payload = ARGV[3] + Mandy::Packer.unpack(payload) end def absolute_path(path) path =~ /^\// ? path : File.join(Dir.pwd, path) end