Skip to content

Commit

Permalink
Create ruby-1.9.3.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jordpo committed Jul 11, 2014
1 parent 45068d0 commit 6611a75
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions scripts/ruby-1.9.3.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Installs RVM & Ruby 1.9.3 on 12.04 LTS Ubuntu
# add to Vagrantfile:
# config.vm.provision 'shell', path: 'ruby-1.9.3.sh', privileged: false, keep_color: true

if [[ -s "/home/vagrant/.rvm/scripts/rvm" ]] ; then
echo 'RVM installed, skipping RVM install'
else
curl -sSL https://get.rvm.io | bash -s stable
fi

source '/home/vagrant/.rvm/scripts/rvm'

if rvm list strings | grep -lq ruby-1.9.3 ; then
echo 'Ruby 1.9.3 installed. Skipping installed.'
else
rvm autolibs packages
rvm requirements
rvm mount https://rvm.io/binaries/ubuntu/12.04/x86_64/ruby-1.9.3-p547.tar.bz2
rvm use 1.9.3-p547 --default
gem update bundler
fi

echo 'Setting Ruby 1.9.3 as default'

0 comments on commit 6611a75

Please sign in to comment.