summaryrefslogtreecommitdiff
path: root/lib/custodian
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-03-09 13:23:46 +0000
committerSteve Kemp <steve@steve.org.uk>2015-03-09 13:23:46 +0000
commitd9f8cf24628ad0021c84c0aabcacae868597bfa6 (patch)
treebf424095f9ebf1770b9ec38a5961b779d0cd4f99 /lib/custodian
parent4fc373ef8e3db10651f9215f78f4dea29c1474ee (diff)
Remove spaces inside blocks.
Diffstat (limited to 'lib/custodian')
-rw-r--r--lib/custodian/alerts/redis-state.rb8
-rw-r--r--lib/custodian/protocoltest/ssl.rb2
-rw-r--r--lib/custodian/queue.rb2
-rw-r--r--lib/custodian/worker.rb2
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