Sha256: d4ee4861bf3f1fa20f2e4722ec2d2bb0e3192d871924f259487251e6eb0b6761
Contents?: true
Size: 1.03 KB
Versions: 4
Compression:
Stored size: 1.03 KB
Contents
#!/bin/bash --login # USE THIS SCRIPT WHEN UPGRADING RUBY if [[ $CRYPTUM_ROOT == '' ]]; then if [[ ! -d '/opt/cryptum' ]]; then cryptum_root=$(pwd) else cryptum_root='/opt/cryptum' fi else cryptum_root="${CRYPTUM_ROOT}" fi function usage() { echo $"Usage: $0 <new ruby version e.g. 2.4.4> <optional bool running from build_cryptum_gem.sh>" exit 1 } if [[ -f '/etc/profile.d/rvm.sh' ]]; then source /etc/profile.d/rvm.sh fi new_ruby_version=$1 if [[ $2 != '' ]]; then old_ruby_version=$2 else old_ruby_version=`cat ${cryptum_root}/.ruby-version` fi ruby_gemset=`cat ${cryptum_root}/.ruby-gemset` if [[ $# < 1 ]]; then usage fi # Upgrade RVM #curl -sSL https://get.rvm.io | sudo bash -s latest export rvmsudo_secure_path=1 rvmsudo rvm get latest rvm reload # Install New Version of RubyGems & Ruby cd $cryptum_root && ./upgrade_gem.sh rvmsudo rvm install ruby-$new_ruby_version echo $new_ruby_version > $cryptum_root/.ruby-version cd $cryptum_root && rvm use $new_ruby_version@$ruby_gemset && ./build_cryptum_gem.sh
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
cryptum-0.0.233 | upgrade_ruby.sh |
cryptum-0.0.232 | upgrade_ruby.sh |
cryptum-0.0.231 | upgrade_ruby.sh |
cryptum-0.0.230 | upgrade_ruby.sh |