2014-01-20 20:43:04 +00:00
|
|
|
# -*- mode: ruby -*-
|
|
|
|
# vi: set ft=ruby :
|
|
|
|
|
|
|
|
$script = <<SCRIPT
|
|
|
|
sudo apt-get -y update
|
|
|
|
sudo apt-get -y install curl
|
|
|
|
curl -sSL https://get.rvm.io | bash -s stable
|
|
|
|
. ~/.bashrc
|
|
|
|
. ~/.bash_profile
|
|
|
|
rvm install 2.0.0
|
|
|
|
rvm --default use 2.0.0
|
|
|
|
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-20 20:43:04 +00:00
|
|
|
config.vm.network "private_network", ip: "33.33.33.10"
|
|
|
|
config.vm.provision "shell", inline: $script, privileged: false
|
2014-02-12 16:52:14 +00:00
|
|
|
config.vm.synced_folder ".", "/vagrant", type: "rsync"
|
2014-01-20 20:43:04 +00:00
|
|
|
end
|