Sha256: 96aaaf2963cddd6565fd9f7758a1d145093a96d804ed0e410f6336b3b0744eca

Contents?: true

Size: 545 Bytes

Versions: 1

Compression:

Stored size: 545 Bytes

Contents

require "rails/generators"

module Suspenders
  class SecurityGenerator < Rails::Generators::Base
    source_root File.expand_path(
      File.join("..", "..", "..", "templates"),
      File.dirname(__FILE__),
    )

    def add_checkers_gems
      gem 'brakeman', require: false, group: :development
      gem 'bundler-audit', '>= 0.5.0', require: false, group: :development
      Bundler.with_clean_env { run "bundle install" }
    end

    def create_binstubs
      Bundler.with_clean_env { run "bundle binstubs brakeman" }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
welaika-suspenders-2.29.0.alpha.2 lib/suspenders/generators/security_generator.rb