2014-01-25 20:18:41 +00:00
|
|
|
# -*- mode: ruby -*-
|
|
|
|
# vi: set ft=ruby :
|
|
|
|
|
|
|
|
$script = <<SCRIPT
|
|
|
|
sudo apt-get -y update
|
|
|
|
sudo apt-get -y install curl
|
2015-04-23 21:31:57 +00:00
|
|
|
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
|
2014-01-25 20:18:41 +00:00
|
|
|
curl -sSL https://get.rvm.io | bash -s stable
|
|
|
|
. ~/.bashrc
|
|
|
|
. ~/.bash_profile
|
|
|
|
rvm install 2.0.0
|
|
|
|
rvm --default use 2.0.0
|
2015-05-31 03:44:59 +00:00
|
|
|
gem install bundler
|
2014-01-25 20:18:41 +00:00
|
|
|
cd /vagrant
|
|
|
|
bundle
|
|
|
|
SCRIPT
|
|
|
|
|
2014-10-08 20:01:20 +00:00
|
|
|
Vagrant.configure(2) do |config|
|
2014-05-29 14:18:12 +00:00
|
|
|
config.vm.box = "hashicorp/precise64"
|
2014-01-25 20:18:41 +00:00
|
|
|
config.vm.network "private_network", ip: "33.33.33.10"
|
|
|
|
config.vm.provision "shell", inline: $script, privileged: false
|
2014-03-07 17:54:46 +00:00
|
|
|
config.vm.synced_folder ".", "/vagrant", type: "rsync"
|
2014-01-25 20:18:41 +00:00
|
|
|
end
|