IT61/it61-rails

View on GitHub
lib/tasks/bundler_audit.rake

Summary

Maintainability
Test Coverage
if Rails.env.development? || Rails.env.test?
  require "bundler/audit/cli"

  namespace :bundler do
    desc "Updates the ruby-advisory-db and runs audit"
    task :audit do
      %w[update check].each do |command|
        Bundler::Audit::CLI.start [ command ]
      end
    end
  end
end