class X509Sleuth::Scanner
Attributes
clients[R]
concurrency[RW]
targets[R]
Public Class Methods
new(options = {})
click to toggle source
# File lib/x509_sleuth/scanner.rb, line 9 def initialize(options = {}) options = { concurrency: 5 }.merge(options) @concurrency = options[:concurrency] @targets = [] end
Public Instance Methods
add_target(target_string)
click to toggle source
# File lib/x509_sleuth/scanner.rb, line 18 def add_target(target_string) @targets << X509Sleuth::Scanner::Target.new(target_string) end
run()
click to toggle source
# File lib/x509_sleuth/scanner.rb, line 31 def run Parallel.each(clients, in_threads: concurrency) do |client| client.connect end end