summaryrefslogtreecommitdiff
path: root/lib/custodian/alerts/mauve.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-03-09 13:19:15 +0000
committerSteve Kemp <steve@steve.org.uk>2015-03-09 13:19:15 +0000
commita22b8e96ead33b0f97ed5243dbad7f7b6cd5135d (patch)
tree3fe30365cc9d793c752653a59614b52009ef9336 /lib/custodian/alerts/mauve.rb
parent7782df6020704f51ee2d6194d8d3b74f28a53401 (diff)
Prefer single-quotes when you don't need interpolation.
So "foo" is less good than 'foo'.
Diffstat (limited to 'lib/custodian/alerts/mauve.rb')
-rw-r--r--lib/custodian/alerts/mauve.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/custodian/alerts/mauve.rb b/lib/custodian/alerts/mauve.rb
index 92c38ee..4c20b08 100644
--- a/lib/custodian/alerts/mauve.rb
+++ b/lib/custodian/alerts/mauve.rb
@@ -49,7 +49,7 @@ module Custodian
require 'mauve/proto'
@loaded = true
rescue
- puts "ERROR Loading mauve libraries!"
+ puts 'ERROR Loading mauve libraries!'
@loaded = false
end
end
@@ -96,14 +96,14 @@ module Custodian
#
# Lookup the start of the day.
#
- day_start = @settings.key( "day_start" ).to_i || 10
- day_end = @settings.key( "day_end" ).to_i || 18
+ day_start = @settings.key( 'day_start' ).to_i || 10
+ day_end = @settings.key( 'day_end' ).to_i || 18
#
# In hour suppress
#
- working_suppress = @settings.key( "working_suppress" ).to_i || 4
- oncall_suppress = @settings.key( "oncall_suppress" ).to_i || 10
+ working_suppress = @settings.key( 'working_suppress' ).to_i || 4
+ oncall_suppress = @settings.key( 'oncall_suppress' ).to_i || 10
#
# If we're Monday-Friday, between the start & end time, then
@@ -307,7 +307,7 @@ module Custodian
#
# Did we get an error?
#
- return "" unless !resolved.nil?
+ return '' unless !resolved.nil?
#
@@ -330,7 +330,7 @@ module Custodian
end
- register_alert_type "mauve"
+ register_alert_type 'mauve'