Class: Integration::BundleAudit
- Defined in:
- lib/integrations/bundle_audit.rb
Instance Method Summary collapse
Methods inherited from Base
#initialize, #pronto_enabled?, #pronto_name, #run_with_config_handling_exit
Constructor Details
This class inherits a constructor from Integration::Base
Instance Method Details
#run_with(config) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/integrations/bundle_audit.rb', line 6 def run_with(config) args = ['check'] ignored_cves = config.fetch('ignored_cve', []) if !ignored_cves.empty? args += ["--ignore"] ignored_cves.each do |ignored_cve| args << ignored_cve end end Keepclean.logger.debug "Updating CVE database" Bundler::Audit::CLI.start(['update', '--quiet']) Keepclean.logger.debug "Running with args: #{args.inspect}" Bundler::Audit::CLI.start(args) true end |