Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Commit

Permalink
🔨 Don't check for .*-version files when bootstrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
jamieconnolly committed Oct 31, 2017
1 parent f09b516 commit 85da2e8
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions libexec/handles-bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -17,42 +17,32 @@ if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ]; then
brew bundle check &>/dev/null || brew bundle
fi

if [ -f ".go-version" ] && ! goenv version-name &>/dev/null; then
echo "==> Installing Go…"
goenv install --skip-existing
fi

if [ -f ".node-version" ] && ! nodenv version-name &>/dev/null; then
echo "==> Installing Node…"
nodenv install --skip-existing
fi

if [ -f ".python-version" ] && ! pyenv version-name &>/dev/null; then
echo "==> Installing Python…"
pyenv install --skip-existing
fi

if [ -f ".ruby-version" ] && ! rbenv version-name &>/dev/null; then
echo "==> Installing Ruby…"
rbenv install --skip-existing

if ! rbenv which bundle >/dev/null 2>&1; then
gem install bundler
rbenv rehash
if [ -f "Gopkg.toml" ]; then
if ! goenv version-name &>/dev/null; then
echo "==> Installing Go…"
goenv install --skip-existing
fi
fi

if [ -f "Gopkg.toml" ]; then
echo "==> Installing Go dependencies…"
dep ensure
fi

if [ -f "package.json" ]; then
if ! nodenv version-name &>/dev/null; then
echo "==> Installing Node…"
nodenv install --skip-existing
fi

echo "==> Installing Node dependencies…"
yarn install
fi

if [ -f "Pipfile" ]; then
if ! pyenv version-name &>/dev/null; then
echo "==> Installing Python…"
pyenv install --skip-existing
fi

if pipenv --venv &>/dev/null; then
PYTHON_REQUESTED="$(pyenv prefix)/bin/python"

Expand All @@ -66,6 +56,16 @@ if [ -f "Pipfile" ]; then
fi

if [ -f "Gemfile" ]; then
if ! rbenv version-name &>/dev/null; then
echo "==> Installing Ruby…"
rbenv install --skip-existing

if ! rbenv which bundle >/dev/null 2>&1; then
gem install bundler
rbenv rehash
fi
fi

echo "==> Installing Ruby dependencies…"
bundle check &>/dev/null || bundle install --without production
fi

0 comments on commit 85da2e8

Please sign in to comment.