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/settings.rb | |
parent | 85a9a63eb5d8690fd7945bba901b10ef8c3326c9 (diff) |
More rubocop fixups.
These are again mostly based around whitespace-changes.
Diffstat (limited to 'lib/custodian/settings.rb')
-rw-r--r-- | lib/custodian/settings.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/custodian/settings.rb b/lib/custodian/settings.rb index 181ced0..60e5a2e 100644 --- a/lib/custodian/settings.rb +++ b/lib/custodian/settings.rb @@ -55,8 +55,8 @@ module Custodian # Load and "parse" the key=value content. # File.open(file, 'r').each_line do |line| - next if line.nil? || line =~ /^#/ - if line =~ /^(.*)=(.*)$/ + next if line.nil? || line =~ /^#/ + if line =~ /^(.*)=(.*)$/ key = $1.dup val = $2.dup key.strip! @@ -101,7 +101,7 @@ module Custodian def timeout _load unless _loaded? - if @settings['timeout'] + if @settings['timeout'] @settings['timeout'].to_i else 30 @@ -117,7 +117,7 @@ module Custodian def retries _load unless _loaded? - if @settings['retries'] + if @settings['retries'] @settings['retries'].to_i else 5 @@ -137,7 +137,7 @@ module Custodian def retry_delay _load unless _loaded? - if @settings['retry_delay'] + if @settings['retry_delay'] @settings['retry_delay'].to_i else 0 @@ -208,7 +208,7 @@ module Custodian # Find the alerting method. # # if we have something setup then use it. - if @settings["#{alert}_target"] + if @settings["#{alert}_target"] return(@settings["#{alert}_target"]) end |