Skip to content

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

License

Notifications You must be signed in to change notification settings

highgroove/bootlace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages