bin/mandy-map in trafficbroker-mandy-0.1.1 vs bin/mandy-map in trafficbroker-mandy-0.1.2
- old
+ new
@@ -3,9 +3,10 @@
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.default.run_map
+Mandy::Job.find_by_name(job_name).run_map