bkeepers / strappydoo

bootstrap and run any project with the same command
MIT License
77 stars 7 forks source link

Add rbenv support #10

Closed bkeepers closed 6 years ago

bkeepers commented 6 years ago

From https://github.com/github/scripts-to-rule-them-all/blob/master/script/bootstrap:

if [ -f ".ruby-version" ] && [ -z "$(rbenv version-name 2>/dev/null)" ]; then
  echo "==> Installing Ruby…"
  rbenv install --skip-existing
  which bundle >/dev/null 2>&1  || {
    gem install bundler
    rbenv rehash
  }
fi

This will introduce an interesting challenge with ordering/dependencies with bundler.