2012-10-02 14:43:59 -04:00
|
|
|
#!/bin/sh
|
|
|
|
# Make sure all our local dependencies are available.
|
|
|
|
|
2012-10-03 14:12:49 -04:00
|
|
|
set -e
|
|
|
|
|
2012-10-02 14:43:59 -04:00
|
|
|
# FIX: only sudo if gem home isn't writable
|
|
|
|
|
2013-03-05 22:30:14 -05:00
|
|
|
(gem spec bundler -v '~> 1.2.0' > /dev/null 2>&1) ||
|
|
|
|
sudo gem install bundler -v '~> 1.2.0' --no-rdoc --no-ri
|
2012-10-02 14:43:59 -04:00
|
|
|
|
|
|
|
# We don't want old config hanging around.
|
|
|
|
|
|
|
|
rm -rf .bundle/config
|
2012-10-03 13:40:34 -04:00
|
|
|
rm -rf .librarian/puppet/config
|
2012-10-02 14:43:59 -04:00
|
|
|
|
|
|
|
# Bundle install unless we're already up to date.
|
|
|
|
|
2013-02-12 19:41:56 -05:00
|
|
|
export PATH=$(pwd)/vendor/shims:$PATH
|
2012-10-02 14:43:59 -04:00
|
|
|
bundle install --binstubs bin --path .bundle --quiet "$@"
|