diff options
author | Steve Kemp <steve@steve.org.uk> | 2012-11-15 15:46:25 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2012-11-15 15:46:25 +0000 |
commit | 0b929e8b8521201ba2aff0480d152f1d44ee164b (patch) | |
tree | d26ddda2b543e691e4599602b1dae26ffcbb3296 /lib/custodian | |
parent | 54ece7e6585c0261c3a20db1112849fa3ea32dc3 (diff) |
Added --test flag
Diffstat (limited to 'lib/custodian')
-rwxr-xr-x | lib/custodian/parser.rb | 5 |
1 files changed, 5 insertions, 0 deletions
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 @@ -425,6 +425,11 @@ class MonitorConfig # + # 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. # |