https://github.com/andyw8/setup-rails
Used 55 times
A
Andy Waite
Usage
Run this command in your Rails app directory in the terminal:
rails app:template LOCATION="https://www.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"