Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
jhollinger committed Aug 12, 2014
1 parent 46e2c8d commit cd9828e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ write-up on that subject can be found at http://jordanhollinger.com/2014/07/30/r
In your Gemfile:

group :development, :test do
gem 'branchy'
gem 'branchy', git: 'git://github.com/consolo/branchy.git'
end

== Use in database.yml
Expand All @@ -50,6 +50,15 @@ whatever string your passed.
database: <%= Branchy.git.db_if_enabled 'foobar_development' %>
...

== You don't even NEED this library
It's really just a convenient way to share the idea. You can get 90% of the functionality in database.yml with:

<% branch = `git rev-parse --abbrev-ref HEAD`.chomp %>

development:
database: my_project_development_<%= branch %>
...

== License
Copyright 2014 Consolo Services Group

Expand Down

0 comments on commit cd9828e

Please sign in to comment.