Sha256: 6d70a1892cbe7ebdfd4140bce15065a52b140547826c2922aee227cfdd7ee784

Contents?: true

Size: 873 Bytes

Versions: 2

Compression:

Stored size: 873 Bytes

Contents

ruby_string="ruby-1.8.7-p352"
gemset_name="san-scripts"

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

  # Ensure that Bundler is installed, install it if it is not.
  if ! command -v bundle ; then
    gem install bundler
  fi

  # Bundle while reducing excess noise.
  bundle | grep -v 'Using' | grep -v 'complete' | sed '/^$/d'

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
shu-san-scripts-0.1.0 .rvmrc
shu-san-scripts-0.0.2 .rvmrc