Sha256: 7a4ad07e2aa11af29078f406355c910754bbb315e6008c85d00ec72feb637616

Contents?: true

Size: 599 Bytes

Versions: 10

Compression:

Stored size: 599 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 'Updates the ruby-advisory-db then runs bundle-audit'
          task :audit do
            require 'bundler/audit/cli'
            %w(update check).each do |command|
              Bundler::Audit::CLI.start [command]
            end
          end
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
bundler-audit-0.7.0.1 lib/bundler/audit/task.rb
bundler-audit-0.7.0 lib/bundler/audit/task.rb
bundler-audit-ng-0.6.2 lib/bundler/audit/task.rb
bundler-audit-ng-0.6.1 lib/bundler/audit/task.rb
bundler-budit-0.6.3 lib/bundler/audit/task.rb
bundler-budit-0.6.2 lib/bundler/audit/task.rb
bundler-budit-0.6.1 lib/bundler/audit/task.rb
bundler-audit-0.6.1 lib/bundler/audit/task.rb
bundler-audit-0.6.0 lib/bundler/audit/task.rb
bundler-audit-0.5.0 lib/bundler/audit/task.rb