bin/setup-gem-faves

Fri, 06 May 2022 06:33:41 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Fri, 06 May 2022 06:33:41 -0400
changeset 990
a4f19f325dea
parent 360
951e2cf18190
permissions
-rwxr-xr-x

Switch to stubexec, handle user_dir install

#!/bin/sh
set -eu

if ! [ -w "$(gem env gemdir)" ]; then
  export GEM_HOME="$(ruby -e 'puts Gem.user_dir')"
fi

if ! bundle --version >/dev/null 2>&1; then
  gem install bundler
fi

export \
  BUNDLE_IGNORE_CONFIG=1 \
  BUNDLE_FROZEN=0

bundle install --jobs=2 --gemfile=~/.Gemfile
rm -f ~/.Gemfile.lock

mercurial