Sha256: a4df071aa73cbcef70d67044cf04f2cfb376126208c0cea511febafdb5115da6

Contents?: true

Size: 740 Bytes

Versions: 2

Compression:

Stored size: 740 Bytes

Contents

#!/usr/bin/env ruby

$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../lib') unless $LOAD_PATH.include?(File.dirname(__FILE__) + '/../lib')

require 'trollop'
require "rjobs/jobs_file"
require "rjobs/job"
require "rjobs/job_handler"
require 'rjobs/cli_helper'
include  Rjobs::CliHelper   

p = Trollop::Parser.new do
  banner <<-EOS
Harvest all finished jobs described in the jobs file.

Usage:
       rjharvest [options] <filename>
where [options] are:
EOS
  
end

opts = Trollop::with_standard_exception_handling p do
  o = p.parse ARGV
  raise Trollop::HelpNeeded if ARGV.empty? # show help screen
end

jobs_file = ARGV[0]

jobs = get_jobs_info(jobs_file)
jobs.each do |job| 
  Rjobs::JobHandler.get_job_results(job)        
end        

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rjobs-0.2.0.alpha bin/rjharvest
rjobs-0.1.0.alpha bin/rjharvest