diff options
author | Steve Kemp <steve@steve.org.uk> | 2015-03-09 13:23:46 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2015-03-09 13:23:46 +0000 |
commit | d2f8a091b0b6c32207624e3cc5af81ffbca4aba6 (patch) | |
tree | b244cb665c36fa27ed79bd5860c7264ebeb90309 /lib | |
parent | 775e9c5bbe2d132668e453965023adbf25cf0fd4 (diff) |
Remove spaces inside blocks.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/custodian/alerts/redis-state.rb | 8 | ||||
-rw-r--r-- | lib/custodian/protocoltest/ssl.rb | 2 | ||||
-rw-r--r-- | lib/custodian/queue.rb | 2 | ||||
-rw-r--r-- | lib/custodian/worker.rb | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/lib/custodian/alerts/redis-state.rb b/lib/custodian/alerts/redis-state.rb index e486d9a..9c5903c 100644 --- a/lib/custodian/alerts/redis-state.rb +++ b/lib/custodian/alerts/redis-state.rb @@ -60,8 +60,8 @@ module Custodian tmp['target'] = @test.target tmp['result'] = 'RAISE' tmp['reason'] = @test.error - tmp['test' ] = @test.to_s - tmp['class' ] = @test.class + tmp['test'] = @test.to_s + tmp['class'] = @test.class @redis.lpush('recent-tests', tmp.to_json) @redis.ltrim('recent-tests', 0, 100) @@ -84,8 +84,8 @@ module Custodian tmp['target'] = @test.target tmp['result'] = 'OK' tmp['reason'] = '' - tmp['test' ] = @test.to_s - tmp['class' ] = @test.class + tmp['test'] = @test.to_s + tmp['class'] = @test.class @redis.lpush('recent-tests', tmp.to_json) @redis.ltrim('recent-tests', 0, 100) diff --git a/lib/custodian/protocoltest/ssl.rb b/lib/custodian/protocoltest/ssl.rb index 4c5343e..44c3910 100644 --- a/lib/custodian/protocoltest/ssl.rb +++ b/lib/custodian/protocoltest/ssl.rb @@ -200,7 +200,7 @@ class SSLCheck self.errors << verbose("Failed to fetch certificate for #{self.domain}") return nil else - return ![ verify_subject, verify_valid_from, verify_valid_to, verify_signature].any?{|r| false == r} + return ![verify_subject, verify_valid_from, verify_valid_to, verify_signature].any?{|r| false == r} end end diff --git a/lib/custodian/queue.rb b/lib/custodian/queue.rb index 51d3a3c..740cdbf 100644 --- a/lib/custodian/queue.rb +++ b/lib/custodian/queue.rb @@ -145,7 +145,7 @@ end # def initialize host = ENV['QUEUE_ADDRESS'] || '127.0.0.1' - @queue = Beanstalk::Pool.new(["#{host}:11300" ]) + @queue = Beanstalk::Pool.new(["#{host}:11300"]) end diff --git a/lib/custodian/worker.rb b/lib/custodian/worker.rb index 701110e..e9a7532 100644 --- a/lib/custodian/worker.rb +++ b/lib/custodian/worker.rb @@ -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 |