setup-rails

Public
https://github.com/andyw8/setup-rails
Icons/chart bar
Used 57 times
Created by
A Andy Waite

Usage

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

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

Review the code before running this template on your machine.

require 'net/http'
uri = URI("https://raw.githubusercontent.com/andyw8/setup-rails/main/README.md")
contents = Net::HTTP.get(uri)
BEGIN_MARKER = "<!-- begin example -->\n```yaml\n"
END_MARKER = "```\n<!-- end example -->"
yaml = contents.match(%r{#{BEGIN_MARKER}(.*)#{END_MARKER}}m)[1]
file ".github/workflows/verify.yml", yaml

run "bundle lock --add-platform x86_64-linux"
Comments

Sign up or Login to leave a comment.