Sha256: 232fa0287c0ab5f66b28ff4e727824bc0f30178d87586edee525eb76ab970268

Contents?: true

Size: 867 Bytes

Versions: 10

Compression:

Stored size: 867 Bytes

Contents

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

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

10 entries across 10 versions & 1 rubygems

Version Path
Tamar-0.7.10 .rvmrc
Tamar-0.7.9 .rvmrc
Tamar-0.7.8 .rvmrc
Tamar-0.7.7 .rvmrc
Tamar-0.7.6 .rvmrc
Tamar-0.7.5 .rvmrc
Tamar-0.7.4 .rvmrc
Tamar-0.7.3 .rvmrc
Tamar-0.7.2 .rvmrc
Tamar-0.7.1 .rvmrc