Update Ruby to 2.2

Force development environment to use ruby 2.2 in preparation for the
update to Rails 5
This commit is contained in:
AEtherC0r3 2017-06-18 02:57:39 +03:00 committed by Stella Rouzi
parent 1c38b091cc
commit ed1f219b81

View file

@ -2,7 +2,7 @@
pushd /vagrant
echo -e "\ninstalling required software packages...\n"
zypper -q -n install update-alternatives ruby-devel make gcc gcc-c++ \
zypper -q -n install update-alternatives ruby2.2-devel make gcc gcc-c++ \
libxml2-devel libxslt-devel nodejs screen mariadb \
libmysqld-devel sqlite3-devel imagemagick
@ -10,7 +10,7 @@ echo -e "\ndisabling versioned gem binary names...\n"
echo 'install: --no-format-executable' >> /etc/gemrc
echo -e "\ninstalling bundler...\n"
gem install bundler
gem.ruby2.2 install bundler
echo -e "\ninstalling your bundle...\n"
su - vagrant -c "cd /vagrant/; bundle install --quiet"