From 7bcc79af83d2fed965abcaf39c61bcaae811638a Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Wed, 14 Nov 2012 17:55:43 +0000 Subject: Updated comments. --- lib/custodian/parser.rb | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'lib/custodian') diff --git a/lib/custodian/parser.rb b/lib/custodian/parser.rb index d02ffb6..7ed7a51 100755 --- a/lib/custodian/parser.rb +++ b/lib/custodian/parser.rb @@ -16,15 +16,13 @@ require 'uri' # # This is a simple class which will parse a sentinel configuration file. # -# Unlike Sentinel it is not using a real parser, instead it peels off lines +# Unlike Sentinel it is not built using a real parser, instead it peels off lines # via a small number of very simple regular expressions - this should be flaky, # but in practice it manages to successfully parse each of the configuration # files that we currently maintain @ Bytemark. # -# TODO: -# -# 1. Explicitly abort and panic on malformed lines. -# +# If there are any lines which are not recognized the class will terminate +# with an error. # # Steve # -- @@ -69,10 +67,17 @@ class MonitorConfig end + # + # Get the current value of the timeout figure. + # def get_timeout() @timeout end + + # + # Set the timeout value. + # def set_timeout( new_val ) @timeout = new_val end -- cgit v1.2.1