From 2497ad1390f5a7081ff7d8e740a767cc31295705 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Wed, 15 May 2013 14:09:35 +0100 Subject: Updated comment so they match the functionality of the code. --- lib/custodian/alerts/file.rb | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'lib/custodian/alerts/file.rb') diff --git a/lib/custodian/alerts/file.rb b/lib/custodian/alerts/file.rb index 13e74cb..cc2a672 100644 --- a/lib/custodian/alerts/file.rb +++ b/lib/custodian/alerts/file.rb @@ -2,7 +2,9 @@ # -# The SMTP-alerter. +# The file-alerter. +# +# This alert just writes events to a flat-file. # module Custodian @@ -16,7 +18,6 @@ module Custodian attr_reader :test - # # Constructor - save the test-object away. # @@ -34,9 +35,14 @@ module Custodian end + # + # Record the duration of the given test. + # def duration( seconds ) - puts "XXX: #{seconds}" + write_message( "#{test.get_type}-test against #{test.target} took #{seconds}ms to complete" ) end + + # # Record a clear event for the given test. # -- cgit v1.2.1