From 9abebc01ed73bb51a14f47cefe5dcfd018141e5c Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Sat, 24 Nov 2012 15:00:01 +0000 Subject: Updated to document what it would do --- lib/custodian/alerts/smtp.rb | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'lib/custodian/alerts') 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" -- cgit v1.2.1