Class: X509Sleuth::Cli

Inherits:
Thor
  • Object
show all
Defined in:
lib/x509_sleuth/cli.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/x509_sleuth/cli.rb', line 6

def self.exit_on_failure?
  true
end

Instance Method Details

#scanObject



13
14
15
16
17
18
19
20
# File 'lib/x509_sleuth/cli.rb', line 13

def scan
  options[:target].each do |target|
    my_client.add_target(target)
  end
  my_client.run
  output = X509Sleuth::ScannerPresenter.new(my_client)
  puts output.to_s
end