Sha256: a190967625ed0a52c58d9e2670a7397f4057a48db1ecd865b0e429e64c21cb6c

Contents?: true

Size: 668 Bytes

Versions: 2

Compression:

Stored size: 668 Bytes

Contents

#!/usr/bin/env bash

ruby_string="ruby-1.9.3-p194"
gemset_name="state-objects"

if rvm list strings | grep -q "${ruby_string}" ; then

  # Load or create the specified environment
  if [[ -d "${rvm_path:-$HOME/.rvm}/environments" \
    && -s "${rvm_path:-$HOME/.rvm}/environments/${ruby_string}@${gemset_name}" ]] ; then
    \. "${rvm_path:-$HOME/.rvm}/environments/${ruby_string}@${gemset_name}"
  else
    rvm --create  "${ruby_string}@${gemset_name}"
  fi

else

  # Notify the user to install the desired interpreter before proceeding.
  echo "${ruby_string} was not found, please run 'rvm install ${ruby_string}' and then cd back into the project directory."

fi

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
state_objects-0.9.0 DOTrvmrc
state_objects-0.0.8 DOTrvmrc