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 | 38da062adf7adc4092fc02b57bf22cb66dee41e5 (patch) | |
tree | d6a984aca919644f596798524f4a95a8baacc4d9 | |
parent | 607cbd4069a0b47c9a5be743ebc6a564bece21dc (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 |