diff options
| author | Steve Kemp <steve@steve.org.uk> | 2015-03-04 12:07:58 +0000 | 
|---|---|---|
| committer | Steve Kemp <steve@steve.org.uk> | 2015-03-04 12:07:58 +0000 | 
| commit | 4bdd017ce316702d9d61f0b70a6674c99fcbb427 (patch) | |
| tree | 459df3785fd2558b21b6a488b6d2471a508baffa | |
| parent | 7e9399d3228e2a695d66ec1b8d7e47216a6a1bf7 (diff) | |
Updated comments and code-order.  No functional change.
| -rw-r--r-- | lib/custodian/worker.rb | 18 | 
1 files changed, 10 insertions, 8 deletions
| diff --git a/lib/custodian/worker.rb b/lib/custodian/worker.rb index c11ae71..df9e117 100644 --- a/lib/custodian/worker.rb +++ b/lib/custodian/worker.rb @@ -35,7 +35,9 @@ module Custodian      # -    # The name of the alerter to use. +    # The alerter which is being used. +    # +    # NOTE: There might be more than one, comma-separated.      #      attr_reader :alerter @@ -67,14 +69,14 @@ module Custodian      #      def initialize( settings ) +      # Save the settings +      @settings = settings +        # Connect to the queue -      @queue = QueueType.create( settings.queue_type() ) +      @queue = QueueType.create( @settings.queue_type() )        # Get the alerter-type(s) to instantiate -      @alerter = settings.alerter - -      # Save the settings -      @settings = settings +      @alerter = @settings.alerter        # How many times to repeat a failing test        @retry_count=@settings.retries() @@ -88,7 +90,7 @@ module Custodian      # -    # Show to the console if "--verbose" was specified. +    # Show a message on STDOUT if "--verbose" was specified.      #      def log_message( msg )        puts msg if ( ENV["VERBOSE" ] ) @@ -146,7 +148,7 @@ module Custodian        begin -        log_message( "Received job: #{test.to_s}" ) +        log_message( "Acquired job: #{test.to_s}" )          #          # The count of times this test has run, the result, and the start-time | 
