summaryrefslogtreecommitdiff
path: root/lib/custodian/alerts/smtp.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-03-09 13:19:47 +0000
committerSteve Kemp <steve@steve.org.uk>2015-03-09 13:19:47 +0000
commit54b21cf54c51dfe40784a8096f84c7a80b015bd4 (patch)
tree4763692624732650daf1a9e02c91576d3f7ee8d0 /lib/custodian/alerts/smtp.rb
parenta22b8e96ead33b0f97ed5243dbad7f7b6cd5135d (diff)
Removed spaces inside parenthesis.
Diffstat (limited to 'lib/custodian/alerts/smtp.rb')
-rw-r--r--lib/custodian/alerts/smtp.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/custodian/alerts/smtp.rb b/lib/custodian/alerts/smtp.rb
index 38ef29e..e6cfef0 100644
--- a/lib/custodian/alerts/smtp.rb
+++ b/lib/custodian/alerts/smtp.rb
@@ -20,7 +20,7 @@ module Custodian
#
# Constructor - save the test-object away.
#
- def initialize( obj )
+ def initialize(obj)
@test = obj
end
@@ -33,7 +33,7 @@ module Custodian
subject = "#{test.target} alert #{test.get_type}-test - #{test.error}"
body = "The alert has raised, with the following details:\n#{test.error}\nRegards\n"
- _send_mail( @target, subject, body )
+ _send_mail(@target, subject, body)
end
@@ -45,7 +45,7 @@ module Custodian
subject = "#{test.target} cleared #{test.get_type}-test"
body = "The alert has cleared\nRegards\n"
- _send_mail( @target, subject, body )
+ _send_mail(@target, subject, body)
end
@@ -53,7 +53,7 @@ module Custodian
#
# Send an email
#
- def _send_mail( to, subject, body )
+ def _send_mail(to, subject, body)
msg = <<END_OF_MESSAGE
From: #{to}
To: #{to}
@@ -63,7 +63,7 @@ Subject: #{subject}
END_OF_MESSAGE
Net::SMTP.start('127.0.0.1') do |smtp|
- smtp.send_message( msg, to, to)
+ smtp.send_message(msg, to, to)
end
end