Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A simple gem for getting your development (or other) environments setup quickly!

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 bootlace.gemspec
README.md

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
Something went wrong with that request. Please try again.