From f8e5c9fcf7448a4feee71526bb8c34668e828e6e Mon Sep 17 00:00:00 2001 From: John Bintz Date: Wed, 31 Aug 2011 14:43:43 -0400 Subject: [PATCH] update docs for dotfile --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 410a1bd..d7eee43 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,17 @@ It then runs `bundle install`. You can also run `penchant gemfile ENV`. +### After-`gemfile` hooks? + +Drop a file called `.penchant` in your project directory. It'll get executed every time you switch environments using +Penchant. I use it to tell my Hydra clients to sync and update their Gemfiles, too: + +``` ruby +# rake knows if you need "bundle exec" or not. + +rake "hydra:sync hydra:remote:bundle" +``` + ### What environment are you currently using in that Gemfile? `head -n 1` that puppy, or `penchant gemfile-env`.