yard

Public
installs yard
Icons/chart bar
Used 11 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/zl0sg1"
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 yard' "
end

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

  gem "yard"
  RUBY
end

do_bundle

run "bundle binstubs yard"

do_commit
Comments

Sign up or Login to leave a comment.