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.466 reinstall_cryptum_gemset.sh
cryptum-0.0.465 reinstall_cryptum_gemset.sh
cryptum-0.0.464 reinstall_cryptum_gemset.sh
cryptum-0.0.463 reinstall_cryptum_gemset.sh
cryptum-0.0.462 reinstall_cryptum_gemset.sh
cryptum-0.0.461 reinstall_cryptum_gemset.sh
cryptum-0.0.460 reinstall_cryptum_gemset.sh
cryptum-0.0.459 reinstall_cryptum_gemset.sh
cryptum-0.0.458 reinstall_cryptum_gemset.sh
cryptum-0.0.457 reinstall_cryptum_gemset.sh
cryptum-0.0.456 reinstall_cryptum_gemset.sh
cryptum-0.0.455 reinstall_cryptum_gemset.sh
cryptum-0.0.454 reinstall_cryptum_gemset.sh
cryptum-0.0.453 reinstall_cryptum_gemset.sh
cryptum-0.0.452 reinstall_cryptum_gemset.sh
cryptum-0.0.451 reinstall_cryptum_gemset.sh
cryptum-0.0.450 reinstall_cryptum_gemset.sh
cryptum-0.0.449 reinstall_cryptum_gemset.sh
cryptum-0.0.448 reinstall_cryptum_gemset.sh
cryptum-0.0.447 reinstall_cryptum_gemset.sh