class Pronto::BundlerAudit::Auditor

Pronto::BundlerAudit::Auditor:

  1. Updates the local ruby security database, and then

  2. Runs {::Pronto::BundlerAudit::Scanner#call}.

Public Class Methods

call(*args) click to toggle source
# File lib/pronto/bundler_audit/auditor.rb, line 11
def self.call(*args)
  new(*args).call
end

Public Instance Methods

call() click to toggle source

@return (see: run_scanner)

# File lib/pronto/bundler_audit/auditor.rb, line 16
def call
  update_ruby_advisory_db
  run_scanner
end

Private Instance Methods

run_scanner() click to toggle source

@return [Array<>] if no issues were found @return [Array<Pronto::BundlerAudit::Results::BaseResult>] if unpatched

gem sources or if advisories were found
# File lib/pronto/bundler_audit/auditor.rb, line 30
def run_scanner
  Pronto::BundlerAudit::Scanner.call
end
update_ruby_advisory_db() click to toggle source
# File lib/pronto/bundler_audit/auditor.rb, line 23
def update_ruby_advisory_db
  ::Bundler::Audit::Database.update!(quiet: true)
end