bin/setup-gem-faves

changeset 990
a4f19f325dea
parent 360
951e2cf18190
equal deleted inserted replaced
989:b5df8971e99b 990:a4f19f325dea
1 #!/bin/sh 1 #!/bin/sh
2 set -eu 2 set -eu
3
4 if ! [ -w "$(gem env gemdir)" ]; then
5 export GEM_HOME="$(ruby -e 'puts Gem.user_dir')"
6 fi
3 7
4 if ! bundle --version >/dev/null 2>&1; then 8 if ! bundle --version >/dev/null 2>&1; then
5 gem install bundler 9 gem install bundler
6 fi 10 fi
7 11
12 export \
13 BUNDLE_IGNORE_CONFIG=1 \
14 BUNDLE_FROZEN=0
15
16 bundle install --jobs=2 --gemfile=~/.Gemfile
8 rm -f ~/.Gemfile.lock 17 rm -f ~/.Gemfile.lock
9 exec bundle install --system --jobs=2 --gemfile=~/.Gemfile

mercurial