From cdf9f62534fb7ff31df84d3e55766c62f4c6b6a7 Mon Sep 17 00:00:00 2001 From: aeris Date: Sat, 15 Apr 2017 18:14:03 +0200 Subject: [PATCH] Fix check_https --- bin/check_https.rb | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/bin/check_https.rb b/bin/check_https.rb index 6df6d09..16125b5 100755 --- a/bin/check_https.rb +++ b/bin/check_https.rb @@ -3,13 +3,4 @@ $:.unshift File.expand_path File.join File.dirname(__FILE__), '../lib' require 'rubygems' require 'bundler/setup' require 'cryptcheck' - -name = ARGV[0] || 'index' -file = ::File.join 'output', "#{name}.yml" -if ::File.exist? file - ::CryptCheck::Logger.level = ENV['LOG'] || :none - ::CryptCheck::Tls::Https.analyze_file file, "output/#{name}.html" -else - ::CryptCheck::Logger.level = ENV['LOG'] || :info - ::CryptCheck::Tls::Https.analyze ARGV[0], (ARGV[1] || 443) -end +::CryptCheck::Tls::Https::Host.new ARGV[0], ARGV.fetch(1, 443)