Sha256: c07567dc417a77eb98aa9984175efe6b05b8492afc6df6db1e552de2ab3a308b
Contents?: true
Size: 414 Bytes
Versions: 1
Compression:
Stored size: 414 Bytes
Contents
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../lib/stalker' usage = "stalk <jobs.rb> [<priority>[,<priority>,..]]" file = ARGV.shift or abort usage priorities = (ARGV.shift || 'all').split(',') require file jobs = Stalker.jobs(priorities) puts "Working #{jobs.size} #{priorities.join(', ')} priority jobs: [ #{jobs.join(' ')} ]" trap('INT') do puts "\rExiting" exit end Stalker.work priorities
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stalker-0.1.0 | bin/stalk |