Skip to content

Instantly share code, notes, and snippets.

@nyarly
Created May 15, 2012 05:32
Show Gist options
  • Save nyarly/2699348 to your computer and use it in GitHub Desktop.
Save nyarly/2699348 to your computer and use it in GitHub Desktop.
Gemsets? Why?
#!/bin/sh
BUNDLE_BASE=~/ruby/bundle-paths/rails3
if [ -f .bundle/config ]; then
echo "Bundle config file already exists"
bundle install
else
projname=$(basename $(pwd))
BUNDLE_PATH="$BUNDLE_BASE/lib"
BINSTUBS="$BUNDLE_BASE/$projname/bin"
echo "Setting up bundle for $projname"
bundle install --path=$BUNDLE_PATH --binstubs=$BINSTUBS
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment