summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-23 10:06:18 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-23 10:06:18 +0000
commite295b5f2988e38b8ddc0163776a9d897a1fd114f (patch)
tree79fa6fcadb1f424413531c75bd1c2931452ee07e /bin
parent218832df3e9324529020900e2e29c9d08acb7f57 (diff)
Updated the API for the parser to split parse_file into parse_lines.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/custodian-enqueue6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/custodian-enqueue b/bin/custodian-enqueue
index 4dde365..ad8796f 100755
--- a/bin/custodian-enqueue
+++ b/bin/custodian-enqueue
@@ -144,7 +144,7 @@ if __FILE__ == $0 then
#
# Create the parser
#
- mon = Custodian::Parser.new( ENV['FILE'] )
+ mon = Custodian::Parser.new()
#
# Set the timeout
@@ -156,7 +156,9 @@ if __FILE__ == $0 then
#
# Run the parser - and get callbacks when a new job is added.
#
- mon.parse_file do |test|
+ mon.parse_file( ENV['FILE'] )
+
+ mon.jobs.each do |test|
if ( ENV['TEST'] )
# nop