diff options
author | Steve Kemp <steve@steve.org.uk> | 2015-03-09 13:21:36 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2015-03-09 13:21:36 +0000 |
commit | d07ac8ecbedb4831e5aa677b8878f0e8eb37e363 (patch) | |
tree | f7bc6a6fdd381ffa7d73f487d3f10f6e65a798e4 /lib/custodian/settings.rb | |
parent | 16b766cff0984494c7b81c1efc08e6386ae819f8 (diff) |
Whitespace fixups.
These were all identified and suggested by rubocop.
Diffstat (limited to 'lib/custodian/settings.rb')
-rw-r--r-- | lib/custodian/settings.rb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/custodian/settings.rb b/lib/custodian/settings.rb index 5635ef3..318ecdc 100644 --- a/lib/custodian/settings.rb +++ b/lib/custodian/settings.rb @@ -43,7 +43,7 @@ module Custodian # # The global configuration file. # - return unless(File.exist?(file)) + return unless File.exist?(file) # # Load and "parse" the key=value content. @@ -84,7 +84,7 @@ module Custodian # Retrieve an arbitrary key # def key(name) - _load unless(_loaded?) + _load unless _loaded? @settings[name] end @@ -93,7 +93,7 @@ module Custodian # The timeout period for each individual test. # def timeout - _load unless(_loaded?) + _load unless _loaded? if @settings['timeout'] @settings['timeout'].to_i @@ -109,7 +109,7 @@ module Custodian # before raising an alert. # def retries - _load unless(_loaded?) + _load unless _loaded? if @settings['retries'] @settings['retries'].to_i @@ -129,7 +129,7 @@ module Custodian # A delay of zero is permissable. # def retry_delay - _load unless(_loaded?) + _load unless _loaded? if @settings['retry_delay'] @settings['retry_delay'].to_i @@ -146,7 +146,7 @@ module Custodian # environmental variable 'QUEUE_ADDRESS'. # def queue_type - _load unless(_loaded?) + _load unless _loaded? @settings['queue_type'] || 'redis' end @@ -157,7 +157,7 @@ module Custodian # The filename for the logfile. # def log_file - _load unless(_loaded?) + _load unless _loaded? @settings['log_file'] || 'custodian-dequeue.log' end @@ -167,7 +167,7 @@ module Custodian # The alerter to use # def alerter - _load unless(_loaded?) + _load unless _loaded? @settings['alerter'] || 'file' end @@ -177,7 +177,7 @@ module Custodian # The alert-source we send. Only used when the notifier is set to mauve. # def alert_source - _load unless(_loaded?) + _load unless _loaded? @settings['alert_source'] || 'Custodian' end @@ -195,7 +195,7 @@ module Custodian # When the alerter is "redis" the target is the redis-server address. # def alerter_target(alert) - _load unless(_loaded?) + _load unless _loaded? # |