a260b6f6b0
Fixes #79
21 lines
587 B
Bash
Executable file
21 lines
587 B
Bash
Executable file
#!/bin/sh
|
|
# Make sure all our local dependencies are available.
|
|
|
|
set -e
|
|
|
|
# FIX: only sudo if gem home isn't writable
|
|
|
|
(/usr/bin/gem spec bundler -v '~> 1.3.0' > /dev/null 2>&1) || {
|
|
/usr/bin/sudo -p "Need to install Bundler for system ruby, password for sudo: " \
|
|
/usr/bin/gem install bundler -v '~> 1.3.0' --no-rdoc --no-ri
|
|
}
|
|
|
|
# We don't want old config hanging around.
|
|
|
|
rm -rf .bundle/config
|
|
rm -rf .librarian/puppet/config
|
|
|
|
# Bundle install unless we're already up to date.
|
|
|
|
export PATH=$(pwd)/vendor/shims:$PATH
|
|
/usr/bin/bundle install --binstubs bin --path .bundle --quiet "$@"
|