diff options
| author | Steve Kemp <steve@steve.org.uk> | 2012-11-23 10:06:18 +0000 | 
|---|---|---|
| committer | Steve Kemp <steve@steve.org.uk> | 2012-11-23 10:06:18 +0000 | 
| commit | 2dc4cb7c5b83d1cd2caefa0479d28611a5259f27 (patch) | |
| tree | 79fa6fcadb1f424413531c75bd1c2931452ee07e /bin | |
| parent | 576f4bc952b537a253e7e6003238fbeb41bc2d42 (diff) | |
  Updated the API for the parser to split parse_file into parse_lines.
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/custodian-enqueue | 6 | 
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 | 
