Sha256: 0ad5dcde22d39a89f4b53c790d77703b5b48a5eadca35792b64fa23f12b321ee

Contents?: true

Size: 532 Bytes

Versions: 3

Compression:

Stored size: 532 Bytes

Contents

require 'rake/tasklib'

module Bundler
  module Audit
    class Task < Rake::TaskLib
      #
      # Initializes the task.
      #
      def initialize
        define
      end

      protected

      #
      # Defines the `bundle:audit` task.
      #
      def define
        namespace :bundle do
          desc 'Checks the Gemfile.lock for insecure dependencies'
          task :audit do
            require 'bundler/audit/cli'
            Bundler::Audit::CLI.start %w[check]
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bundler-audit-0.8.0 lib/bundler/audit/task.rb
bundler-audit-0.8.0.rc2 lib/bundler/audit/task.rb
bundler-audit-0.8.0.rc1 lib/bundler/audit/task.rb