summaryrefslogtreecommitdiff
path: root/lib/custodian/alerts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/custodian/alerts')
-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"