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.426 reinstall_cryptum_gemset.sh
cryptum-0.0.425 reinstall_cryptum_gemset.sh
cryptum-0.0.424 reinstall_cryptum_gemset.sh
cryptum-0.0.423 reinstall_cryptum_gemset.sh
cryptum-0.0.422 reinstall_cryptum_gemset.sh
cryptum-0.0.421 reinstall_cryptum_gemset.sh
cryptum-0.0.420 reinstall_cryptum_gemset.sh
cryptum-0.0.419 reinstall_cryptum_gemset.sh
cryptum-0.0.418 reinstall_cryptum_gemset.sh
cryptum-0.0.417 reinstall_cryptum_gemset.sh
cryptum-0.0.416 reinstall_cryptum_gemset.sh
cryptum-0.0.415 reinstall_cryptum_gemset.sh
cryptum-0.0.414 reinstall_cryptum_gemset.sh
cryptum-0.0.413 reinstall_cryptum_gemset.sh
cryptum-0.0.412 reinstall_cryptum_gemset.sh
cryptum-0.0.411 reinstall_cryptum_gemset.sh
cryptum-0.0.410 reinstall_cryptum_gemset.sh
cryptum-0.0.409 reinstall_cryptum_gemset.sh
cryptum-0.0.408 reinstall_cryptum_gemset.sh
cryptum-0.0.407 reinstall_cryptum_gemset.sh