summaryrefslogtreecommitdiff
path: root/lib/custodian/settings.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-03-09 13:09:46 +0000
committerSteve Kemp <steve@steve.org.uk>2015-03-09 13:09:46 +0000
commit891b720013f06f092f6be82adad95e5551c696b6 (patch)
treebffba558147d68d951f403caa2b6396e4faf5f29 /lib/custodian/settings.rb
parent3a96cc957dbd97c6ffeaea42f738e7c35b4acbc7 (diff)
Do not use parentheses for method calls with no arguments.
This is neater. Flagged by rubocop
Diffstat (limited to 'lib/custodian/settings.rb')
-rw-r--r--lib/custodian/settings.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/custodian/settings.rb b/lib/custodian/settings.rb
index 8bcf71c..e0d2d27 100644
--- a/lib/custodian/settings.rb
+++ b/lib/custodian/settings.rb
@@ -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? )
#