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 out so that, if you want to start a new project from it, everything should
work after you run bundle install.
Did you break ground on a project and realized, after-the-fact, that it makes sense to kickstat it with the booster pack?
No worries!
rsync -av --exclude 'README.md' --exclude '.git/' --exclude 'coverage/' --exclude 'releases/' /path/to/booster_pack/ ~/destination/pathNote: Make sure to keep a trailing slash on the /path/to/booster_pack/ to copy the contents of the booster pack.
Creating a new release is straightforward. The biggest concern is making sure to exclude unnecessary directories.
zip -r releases/RELEASE_NAME.zip . -x ".git/*" -x "coverage/*" -x "releases/*"