#!/usr/bin/env ruby
require 'rake'
require 'swineherd'
task :wukong_job do
script = WukongScript.new('/path/to/wukong_script')
script.options = {:some_option => "123", :another_option => "foobar"}
script.input << '/path/to/input'
script.output << '/path/to/output'
script.run
end
You can save this into a file called "Rakefile" and run it by saying:
rake wukong_job