Sha256: 9d9ca6929e927b80c5e94d001b47a4f56db687c860f994dec4c922320eb038c6

Contents?: true

Size: 437 Bytes

Versions: 3

Compression:

Stored size: 437 Bytes

Contents

require_relative "base"

module Suspenders
  class AdvisoriesGenerator < Generators::Base
    def bundler_audit_gem
      gem "bundler-audit", ">= 0.7.0", require: false, group: %i[development test]
      Bundler.with_unbundled_env { run "bundle install" }
    end

    def rake_task
      copy_file "bundler_audit.rake", "lib/tasks/bundler_audit.rake"
      append_file "Rakefile", %(\ntask default: "bundle:audit"\n)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
suspenders-1.56.1 lib/suspenders/generators/advisories_generator.rb
suspenders-1.55.1 lib/suspenders/generators/advisories_generator.rb
suspenders-1.55.0 lib/suspenders/generators/advisories_generator.rb