Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if [[ ! `ruby-build --version 2> /dev/null` =~ "20130222" ]]; then
- echo "Installing ruby-build v#{rubber_env.ruby_build_version}"
- wget -q https://github.com/sstephenson/ruby-build/archive/v20130222.tar.gz -O /tmp/ruby-build.tar.gz
- # Install ruby-build.
- tar -C /tmp -zxf /tmp/ruby-build.tar.gz
- cd /tmp/ruby-build-*
- ./install.sh
- # Clean up after ourselves.
- cd /root
- rm -rf /tmp/ruby-build-*
- rm -f /tmp/ruby-build.tar.gz
- # Get rid of RVM if this is an older rubber installation.
- if type rvm &> /dev/null; then
- echo -en "yes\n" | rvm implode
- rm -rf /usr/local/rvm
- rm -f /usr/bin/rvm*
- rm -f ~/.gemrc
- fi
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement