Skip to content

Instantly share code, notes, and snippets.

@whatsma
whatsma / Vagrantfile
Created January 14, 2016 20:12
Vagrantfle to install chruby, ruby-install, ruby2.3 and the bundler gem
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.provision :shell, inline: <<-SHELL
# function to run a command as the vagrant user
as_vagrant () {
sudo -i -u vagrant bash -c "$1"
}
sudo apt-get update -y