From 2dc4cb7c5b83d1cd2caefa0479d28611a5259f27 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Fri, 23 Nov 2012 10:06:18 +0000 Subject: Updated the API for the parser to split parse_file into parse_lines. --- bin/custodian-enqueue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bin') 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 -- cgit v1.2.1