class Canari::CLI
Command-line interface.
Public Instance Methods
run(uri)
click to toggle source
# File lib/canari/cli.rb, line 27 def run(uri) EM.run do EM.connect(uri.host, 443, CertStream) do |stream| stream.url = uri.to_s stream.start_tls(sni_hostname: uri.host) end end end
start()
click to toggle source
# File lib/canari/cli.rb, line 18 def start Canari.load_config(options[:config]) DomainCache.preload(options[:domains]) run(URI.parse('wss://certstream.calidog.io')) loop do sleep 1 end end