bin/setup-gem-faves

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

mercurial