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.
Add this line to your application's Gemfile:
gem 'bootlace', require: false
And then execute:
$ bundle
Or install it yourself as:
$ gem install bootlace
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
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
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request