Sha256: ef404c6f1fe20168db8bb5fb2d6629a557c49ee4e1d46f14c6869748d8b40dda

Contents?: true

Size: 769 Bytes

Versions: 224

Compression:

Stored size: 769 Bytes

Contents

#!/bin/bash --login
# USE THIS SCRIPT WHEN UPGRADING VERSIONS IN Gemfile
if [[ $CRYPTUM_ROOT == '' ]]; then
  if [[ ! -d '/opt/cryptum' ]]; then
    cryptum_root=$(pwd)
  else
    cryptum_root='/opt/cryptum'
  fi
else
  cryptum_root="${CRYPTUM_ROOT}"
fi

if [[ -f '/etc/profile.d/rvm.sh' ]]; then
  source /etc/profile.d/rvm.sh
fi

ruby_version=`cat ${cryptum_root}/.ruby-version`
ruby_gemset=`cat ${cryptum_root}/.ruby-gemset`
rvm use ruby-$ruby_version@global
rvm gemset --force delete $ruby_gemset
if [[ -f "${cryptum_root}/Gemfile.lock" ]]; then
  rvmsudo rm $cryptum_root/Gemfile.lock
fi

rvm use ruby-$ruby_version@$ruby_gemset --create
export rvmsudo_secure_path=1
rvmsudo gem install bundler
rvmsudo bundle install
rvm --default ruby-$ruby_version@$ruby_gemset

Version data entries

224 entries across 224 versions & 1 rubygems

Version Path
cryptum-0.0.406 reinstall_cryptum_gemset.sh
cryptum-0.0.405 reinstall_cryptum_gemset.sh
cryptum-0.0.404 reinstall_cryptum_gemset.sh
cryptum-0.0.403 reinstall_cryptum_gemset.sh
cryptum-0.0.402 reinstall_cryptum_gemset.sh
cryptum-0.0.401 reinstall_cryptum_gemset.sh
cryptum-0.0.400 reinstall_cryptum_gemset.sh
cryptum-0.0.399 reinstall_cryptum_gemset.sh
cryptum-0.0.398 reinstall_cryptum_gemset.sh
cryptum-0.0.397 reinstall_cryptum_gemset.sh
cryptum-0.0.396 reinstall_cryptum_gemset.sh
cryptum-0.0.395 reinstall_cryptum_gemset.sh
cryptum-0.0.394 reinstall_cryptum_gemset.sh
cryptum-0.0.393 reinstall_cryptum_gemset.sh
cryptum-0.0.392 reinstall_cryptum_gemset.sh
cryptum-0.0.389 reinstall_cryptum_gemset.sh
cryptum-0.0.388 reinstall_cryptum_gemset.sh
cryptum-0.0.387 reinstall_cryptum_gemset.sh
cryptum-0.0.386 reinstall_cryptum_gemset.sh
cryptum-0.0.385 reinstall_cryptum_gemset.sh