#!/usr/bin/env ruby 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.find_by_name(job_name).run_map