This is the default layout for the Booster Pack setup to enable autoloading and environment support for ruby apps.
When moving from "Hey, I have a couple cool scripts" and expanding them into a more robust library, a majority of what's provided should be able to dropped into said project's structure, and ease the migration to a more fully featured app.
There is a default test.yml
file in the .github/workflows
directory that will enable GitHub's CI
system, and can easily be altered.
Alongside a bin/setup
, there is a handy dandy bin/console
that will drop you into a Pry console
with the project loaded.
You're new friend will be require_relative '../booster_pack'
, instead of calling a litany of
requires.
If you need part of the Ruby standard library loaded, you will still need to require
it. If you
want it project-wide, you can add it to the bottom of the booster_pack.rb
file and you'll have it
wherever you need it.
This repo is laid how so that, if you want to start a new project from it, everything should
work after you run bundle install
.