A Rails application lifecycle manager. Boothby provides CLI commands to standardize common development tasks across a team: setting up a fresh clone, updating after pulling new code, and seeding the database.
Named after Boothby, the groundskeeper of Starfleet Academy.
Archived. This gem is no longer maintained.
Add to your application's Gemfile:
gem 'boothby'Run once after cloning the repo:
$ boothby setup- Copies any
*.exampleconfig files that don't already have a real counterpart - Runs
bundle installandyarn install(ifpackage.jsonexists) - Runs
rails db:prepare db:test:prepare - Clears logs and tmp files
- Restarts the application server
Run after pulling new code:
$ boothby updateSame as setup but runs db:migrate instead of db:prepare.
Seeds the database using a structured db/seeds.yml config:
$ boothby seedSeeds are organized by environment. A :base set runs for all environments; additional sets run only for the matching Rails environment. Progress is shown via animated terminal spinners.
Auto-loads all YAML files from config/ and exposes them as methods with environment-aware access and dot notation:
Boothby::KeyRing.database # reads config/database.yml
Boothby::KeyRing.application # reads config/application.yml# config/initializers/boothby.rb
Boothby.configure do |config|
config.root = Rails.root
config.seeds_configuration = 'db/seeds.yml'
config.configuration_directory = 'config'
endCopyright (c) 2022 Christopher Hagmann. See MIT License for further details.