Blame view
script/bootstrap
546 Bytes
|
9d3e514b9
|
1 2 |
#!/bin/sh # Make sure all our local dependencies are available. |
|
62a36b906
|
3 |
set -e |
|
9d3e514b9
|
4 |
# FIX: only sudo if gem home isn't writable |
|
28f684037
|
5 |
(gem spec bundler -v '~> 1.2.0' > /dev/null 2>&1) || |
|
e9284cd79
|
6 7 |
(echo "About to install Bundler (you may get a sudo prompt)" &&
sudo gem install bundler -v '~> 1.2.0' --no-rdoc --no-ri)
|
|
9d3e514b9
|
8 9 10 11 |
# We don't want old config hanging around. rm -rf .bundle/config |
|
a32baeef4
|
12 |
rm -rf .librarian/puppet/config |
|
9d3e514b9
|
13 |
|
|
9d3e514b9
|
14 |
# Bundle install unless we're already up to date. |
|
d4af4bf81
|
15 |
export PATH=$(pwd)/vendor/shims:$PATH |
|
9d3e514b9
|
16 |
bundle install --binstubs bin --path .bundle --quiet "$@" |