You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
351B

  1. #!/usr/bin/env ruby
  2. require 'yaml'
  3. $:.unshift 'lib'
  4. require 'sslcheck'
  5. Logging.logger.root.appenders = Logging.appenders.stdout
  6. Logging.logger.root.level = :error
  7. config = YAML.load_file 'hosts.yml'
  8. hosts = []
  9. config.each do |c|
  10. d, hs = c['description'], c['hostnames']
  11. hs.each { |host| hosts << [d, host] }
  12. end
  13. SSLCheck.analyze hosts, 'results'