Sha256: 9f79202f50ea15e8da815eae0440076e13a6689b7d13859d79529f8dc3a6fb74

Contents?: true

Size: 872 Bytes

Versions: 4

Compression:

Stored size: 872 Bytes

Contents

ruby_string="ruby-1.9.2-p180"
gemset_name="whitecloth"

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

4 entries across 4 versions & 2 rubygems

Version Path
WhiteCloth-0.0.5 .rvmrc
WhiteCloth-0.0.4 .rvmrc
WhiteCloth-0.0.2 .rvmrc
FluxTuna-0.0.1 .rvmrc