diff options
author | Steve Kemp <steve@steve.org.uk> | 2012-11-24 15:00:01 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2012-11-24 15:00:01 +0000 |
commit | fb561959975de98e641708cab8809db6fec02f17 (patch) | |
tree | 6430e1a88c9511a9186d222a04aadb16e0975701 /lib | |
parent | 68e4dba17a51d073ac84f46199edc11aeccf2c71 (diff) |
Updated to document what it would do
Diffstat (limited to 'lib')
-rw-r--r-- | lib/custodian/alerts/smtp.rb | 21 |
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" |