From 4bdd017ce316702d9d61f0b70a6674c99fcbb427 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Wed, 4 Mar 2015 12:07:58 +0000 Subject: Updated comments and code-order. No functional change. --- lib/custodian/worker.rb | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'lib/custodian') 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 -- cgit v1.2.1