Sha256: 6458b2a2d592f96dbf2d186965f96037ded44574fdffdb37e153e43fe1896a8f

Contents?: true

Size: 733 Bytes

Versions: 1

Compression:

Stored size: 733 Bytes

Contents

#! /bin/bash

## Make sure we're in the project root
cd $(dirname "$0")/..

## Check dependencies
printf "Checking dependencies... "

deps=(
  ruby
  bundler
  git
)

for i in "${deps[@]}"
do
  :
  if [ ! $(which $i) ]; then
    printf "\nDependency check failed, file not in PATH: $i\n"
    exit 1
  fi
done

## Create .ruby-gemset if it doesn't exist
printf "Checking for .ruby-gemset... "

if [ ! -f .ruby-gemset ]; then
  printf "\nWriting .ruby-gemset..."
  printf 'dvl-flashes' >> .ruby-gemset
fi

printf "OK\n"

## Ensure RVM is using our ruby + gemset
source ~/.rvm/scripts/rvm
rvm use `cat .ruby-version`
rvm gemset use --create `cat .ruby-gemset`

## Bundle
printf "Bundling...\n"
bundle install

printf "\n\nSuccess!\n\n"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dvl-flashes-0.0.1 script/bootstrap