Project

bootlace

0.0
No commit activity in last 3 years
No release in over 3 years
Simple gem for bootstrapping Ruby applications
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

 Project Readme

Bootlace

A simple gem for getting your development (or other) environments setup quickly! Efficiently bootstrap Ruby applications based upon the GitHub script/bootstrap model, but with a clean DSL on top.

Right now it's very lightweight, and the DSL is expected to change as we use it on more projects and find we need to revise how we're doing things.

Installation

Add this line to your application's Gemfile:

gem 'bootlace', require: false

And then execute:

$ bundle

Or install it yourself as:

$ gem install bootlace

Usage

Create a script/bootstrap file in your app that looks like so:

#!/bin/env ruby

require 'bootlace'

Bootlace.strap_up do |b|
  b.package mac: "redis", ubuntu: "redis-server"
  b.bundler
  b.rake 'db:create', environment: { RAILS_ENV: "test" }
end

Rails

Bootlace provides a simple, opinionated helper to help simplify the process of bootstrapping a typical Rails application.

The snippet below will:

  • Run bundler if needed
  • Create the db
  • Load the schema
  • Seed the db
  • Prepare the test database
#!/bin/env ruby

require 'bootlace'

Bootlace.strap_up do |b|
  b.rails
end

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request