Sha256: 152865e79bbae99a76a066055e5e7c45337abb07e17ffae0a6bd98681ed14314

Contents?: true

Size: 983 Bytes

Versions: 1

Compression:

Stored size: 983 Bytes

Contents

#!/usr/bin/env bash
set -e

if ! hash brew 2>/dev/null; then
  echo "✖ Homebrew not found. Please install: https://brew.sh/"
  exit 1
else
  echo "✓ Found homebrew"
fi

if ! hash rbenv 2>/dev/null; then
  read -p "✖ 'rbenv' not found. Would you like to install it? [Y/n] " -n 1 -r
  echo
  if [[ $REPLY =~ ^[Yy\n]$ ]]
  then
    brew install rbenv ruby-build && true
    echo
    echo "Please follow the rbenv instructions below before continuing:"
    eval "$(rbenv init -)"
    echo $(rbenv init)
    read -p "Press enter to continue"
    # Installs latest stable version
    VERSION=$(rbenv install -l | grep -v - | tail -1)
    rbenv install $VERSION
    rbenv global $VERSION
  else
    exit 1
  fi
else
  echo "✓ Found rbenv"
fi

if ! hash bundle 2>/dev/null; then
  read -p "✖ 'bundle' not found. Would you like to install it? [Y/n] " -n 1 -r
  echo
  if [[ $REPLY =~ ^[Yy]$ ]]
  then
    gem install bundler
  else
    exit 1
  fi
else
  echo "✓ Found bundle"
fi

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
recurly-3.0.0.beta.4 scripts/install-deps