lib/lois/cli.rb in lois-0.1.6 vs lib/lois/cli.rb in lois-0.1.7
- old
+ new
@@ -29,14 +29,19 @@
desc: 'Github credentials to log PR Status.'
method_option :ci,
default: 'circleci',
aliases: '-c',
desc: 'CI to load env vars from.'
+ method_option :ignore,
+ desc: 'Ignore a specific CVE vulnerability'
def bundler_audit
puts 'Checking bundler-audit'
configure(options)
- output = `bundle-audit check --verbose --update`
+ ignore = " --ignore #{options[:ignore]}"
+ command = 'bundle-audit check --verbose --update'
+ command += ignore if options[:ignore]
+ output = `#{command}`
result = $CHILD_STATUS
File.write('lois/bundler-audit.log', output)
puts output
if result.success?