brakeman

Public
installs brakeman
Icons/chart bar
Used 16 times
Created by
J Javier Lafora

Usage

Run this command in your Rails app directory in the terminal:

rails app:template LOCATION="https://railsbytes.com/script/zams73"
Template Source

Review the code before running this template on your machine.

def do_bundle
  Bundler.with_original_env { run "bundle install" }
end

def do_commit
  git :init
  git add: "."
  git commit: " -m 'Adds brakeman' "
end

say "\nInstalling brakeman..."
inject_into_file 'Gemfile', after: 'group :development do' do
  <<-RUBY

  gem "brakeman", require: false
  RUBY
end

do_bundle

run "bundle binstubs brakeman"

do_commit
Comments

Sign up or Login to leave a comment.