summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-24 15:00:01 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-24 15:00:01 +0000
commit9abebc01ed73bb51a14f47cefe5dcfd018141e5c (patch)
tree6430e1a88c9511a9186d222a04aadb16e0975701
parent5608b3f3d02b49f51cd8ce233ecfa41dad9bfa4e (diff)
Updated to document what it would do
-rw-r--r--lib/custodian/alerts/smtp.rb21
1 files changed, 20 insertions, 1 deletions
diff --git a/lib/custodian/alerts/smtp.rb b/lib/custodian/alerts/smtp.rb
index 21ef791..a9828f3 100644
--- a/lib/custodian/alerts/smtp.rb
+++ b/lib/custodian/alerts/smtp.rb
@@ -15,8 +15,10 @@ module Custodian
#
attr_reader :test
+
+
#
- # Constructor
+ # Constructor - save the test-object away.
#
def initialize( obj )
@test = obj
@@ -24,6 +26,23 @@ module Custodian
+
+ def raise
+ puts "Sould raise an alert via EMAIL"
+ puts "Subject: #{test.target} failed #{test.get_type}-test - #{test.error()}"
+ end
+
+
+
+
+ def clear
+ puts "Should clear an alert via EMAIL"
+ puts "Subject: #{test.target} passed #{test.get_type}-test"
+ end
+
+
+
+
register_alert_type "smtp"