Skip to content

Commit

Permalink
Merge pull request #8 from AgilionApps/ruby-2.1.3
Browse files Browse the repository at this point in the history
Adds script for Ruby 2.1.3
  • Loading branch information
beerlington committed Sep 30, 2014
2 parents 351a00e + 0cd10dd commit f61b61f
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions scripts/ruby-2.1.3.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Installs RVM & Ruby 2.1.3 on 12.04 LTS Ubuntu
# add to Vagrantfile:
# config.vm.provision 'shell', path: 'ruby-2.1.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-2.1.3 ; then
echo 'Ruby 2.1.3 installed. Skipping installed.'
else
rvm autolibs packages
rvm requirements
rvm mount https://rvm.io/binaries/ubuntu/12.04/x86_64/ruby-2.1.3.tar.bz2
rvm use 2.1.3 --default
gem update bundler
fi

echo 'Setting Ruby 2.1.3 as default'

0 comments on commit f61b61f

Please sign in to comment.