diff options
author | Steve Kemp <steve@steve.org.uk> | 2016-04-22 21:54:51 +0300 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2016-04-22 21:54:51 +0300 |
commit | a5ad0029b634a19d4d50e9f49c51903c2fa82208 (patch) | |
tree | 869a46ea45f511952f38dee10f9db76aab8e8a68 /lib/custodian/worker.rb | |
parent | 85a9a63eb5d8690fd7945bba901b10ef8c3326c9 (diff) |
More rubocop fixups.
These are again mostly based around whitespace-changes.
Diffstat (limited to 'lib/custodian/worker.rb')
-rw-r--r-- | lib/custodian/worker.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/custodian/worker.rb b/lib/custodian/worker.rb index 3c71838..cb26fb6 100644 --- a/lib/custodian/worker.rb +++ b/lib/custodian/worker.rb @@ -73,7 +73,7 @@ module Custodian @settings = settings # Connect to the queue - @queue = RedisQueueType.new() + @queue = RedisQueueType.new # Get the alerter-type(s) to instantiate @alerter = @settings.alerter @@ -93,7 +93,7 @@ module Custodian # Show a message on STDOUT if "--verbose" was specified. # def log_message(msg) - puts msg if ENV['VERBOSE'] + puts msg if ENV['VERBOSE'] end @@ -162,7 +162,7 @@ module Custodian # # We exit here if we receive a single success. # - while (count < (@retry_count + 1)) && (run == true) + while (count < (@retry_count + 1)) && (run == true) log_message("Running test - [#{count}/#{@retry_count}]") @@ -216,12 +216,12 @@ module Custodian # but no more than "@retry_count" times. # # - if (run == true) && (@retry_delay > 0) && (count < @retry_count) + if (run == true) && (@retry_delay > 0) && (count < @retry_count) # # If the test disabled itself then we don't need to delay # - unless( result == Custodian::TestResult::TEST_SKIPPED) + unless (result == Custodian::TestResult::TEST_SKIPPED) log_message("Delaying re-test by #{@retry_delay} seconds due to failure - : #{test.error}") sleep(@retry_delay) end @@ -248,8 +248,8 @@ module Custodian # Record that, if we have any alerters that are interested # in run-times. # - if (result == Custodian::TestResult::TEST_FAILED) || - (result == Custodian::TestResult::TEST_PASSED) + if (result == Custodian::TestResult::TEST_FAILED) || + (result == Custodian::TestResult::TEST_PASSED) do_duration(test, duration) end @@ -338,7 +338,7 @@ module Custodian # give the alerter a reference to the settings object. alert.set_settings(@settings) - alert.duration(duration) if alert.respond_to? 'duration' + alert.duration(duration) if alert.respond_to? 'duration' end end |