Advertisement
Guest User

Untitled

a guest
Aug 27th, 2014
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.76 KB | None | 0 0
  1.  if [[ ! `ruby-build --version 2> /dev/null` =~ "20130222" ]]; then
  2.         echo "Installing ruby-build v#{rubber_env.ruby_build_version}"
  3.         wget -q https://github.com/sstephenson/ruby-build/archive/v20130222.tar.gz -O /tmp/ruby-build.tar.gz
  4.  
  5.         # Install ruby-build.
  6.         tar -C /tmp -zxf /tmp/ruby-build.tar.gz
  7.         cd /tmp/ruby-build-*
  8.         ./install.sh
  9.  
  10.         # Clean up after ourselves.
  11.         cd /root
  12.         rm -rf /tmp/ruby-build-*
  13.         rm -f /tmp/ruby-build.tar.gz
  14.  
  15.         # Get rid of RVM if this is an older rubber installation.
  16.         if type rvm &> /dev/null; then
  17.           echo -en "yes\n" | rvm implode
  18.  
  19.           rm -rf /usr/local/rvm
  20.           rm -f /usr/bin/rvm*
  21.           rm -f ~/.gemrc
  22.         fi
  23.       fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement