From 0b929e8b8521201ba2aff0480d152f1d44ee164b Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Thu, 15 Nov 2012 15:46:25 +0000 Subject: Added --test flag --- lib/custodian/parser.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib') diff --git a/lib/custodian/parser.rb b/lib/custodian/parser.rb index 29c69f6..6407621 100755 --- a/lib/custodian/parser.rb +++ b/lib/custodian/parser.rb @@ -424,6 +424,11 @@ class MonitorConfig end + # + # Just testing syntax? At this point we're done + # + next if ( ENV['TEST'] ) + # # We've now parsed the line. Either output the JSON to the console # or add to the queue. -- cgit v1.2.1