Skip to content

Default layout to enable autoloading and environment support for ruby apps.

Notifications You must be signed in to change notification settings

trueheart78/booster_pack

Repository files navigation

Booster Pack Layout 🚀

This is the default layout for the Booster Pack setup to enable autoloading and environment support for ruby apps.

Taylor Swift - Strong

Goal 🏁

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.

Bonus 🎁

There is a default test.yml file in the .github/workflows directory that will enable GitHub's CI system, and can easily be altered.

But Wait, There's More... 💻

Alongside a bin/setup, there is a handy dandy bin/console that will drop you into a Pry console with the project loaded.

Reminder 💡

You're new friend will be require_relative '../booster_pack', instead of calling a litany of requires.

What About Libraries Like JSON? 📚

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.

Starting Fresh 🌱

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.

Copying Into A Repo

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/path

Note: Make sure to keep a trailing slash on the /path/to/booster_pack/ to copy the contents of the booster pack.

Creating A Release

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/*"

About

Default layout to enable autoloading and environment support for ruby apps.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published