solargraph

Public
installs solargraph
Icons/chart bar
Used 10 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/VWesNr"
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 solargraph' "
end

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

  gem "solargraph"
  RUBY
end

do_bundle

run "bundle binstubs solargraph"

do_commit
Comments

Sign up or Login to leave a comment.