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