From 5ec040038a6e51fe9eb94e1eca0e750adbc367d4 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Wed, 4 Mar 2015 16:58:29 +0000 Subject: Allow SSL-check to be disabled, via "no_ssl_check" --- lib/custodian/protocoltest/ssl.rb | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/custodian/protocoltest/ssl.rb b/lib/custodian/protocoltest/ssl.rb index a604f80..ab57dff 100644 --- a/lib/custodian/protocoltest/ssl.rb +++ b/lib/custodian/protocoltest/ssl.rb @@ -387,10 +387,21 @@ module Custodian # def run_test + # + # If the line disables us then return early + # + if ( @line =~ /no_ssl_check/ ) + return true + end + + + # + # Get the current hour. + # hour = Time.now.hour # - # If outside 10AM-5PM we don't alert. + # If outside 10AM-5PM we don't run the test. # if ( hour < 10 || hour > 17 ) puts( "Outside office hours - Not running SSL-Verification of #{@host}" ) -- cgit v1.2.1