Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andxyz/751a66c37f9cb726c3c82fbd06a7f84b to your computer and use it in GitHub Desktop.
Save andxyz/751a66c37f9cb726c3c82fbd06a7f84b to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -e
set -x
git fetch --all --prune
gfind . -iname 'Gemfile' -prune -printf "%h\n" | sort --unique | \
gxargs -n1 -P4 -L1 \
bash -c 'echo "Installing gems for $0"; cd "$0"; bundle check || bundle install'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment