Skip to content

Commit

Permalink
Create ruby-2.1.5.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
totallymike committed Dec 19, 2014
1 parent da7cfda commit a9c56b8
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions scripts/ruby-2.1.5.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Installs RVM & Ruby 2.1.5 on 12.04 LTS Ubuntu
# add to Vagrantfile:
# config.vm.provision 'shell', path: 'ruby-2.1.5.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 -- --version 1.25.0
fi

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

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

echo 'Setting Ruby 2.1.5 as default'

0 comments on commit a9c56b8

Please sign in to comment.