class Bundler::Audit::CLI
def update(path=Database.path)
def update(path=Database.path) unless Database.exists?(path) download(path) return end say("Updating ruby-advisory-db ...") unless options.quiet? database = Database.new(path) case database.update!(quiet: options.quiet?) when true say("Updated ruby-advisory-db", :green) unless options.quiet? when false say "Failed updating ruby-advisory-db!", :red exit 1 when nil unless Bundler.git_present? say "Git is not installed!", :red exit 1 end say "Skipping update", :yellow end stats(path) unless options.quiet? end