mjacobus/.dotfiles

View on GitHub
Vagrantfile

Summary

Maintainability
Test Coverage
# frozen_string_literal: true

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure(2) do |config|
  config.vm.box = 'bento/ubuntu-16.04'
  config.ssh.forward_agent = true
  config.vm.synced_folder '.', '/home/vagrant/.dotfiles'

  config.vm.provider 'virtualbox' do |vm|
    vm.name = 'dotfiles-playground'
    vm.memory = '500'
  end

  script = <<SCRIPT
    sudo apt-get install -y git vim-gnome vim
    ln -sf /vagrant ~/.dotfiles
    /home/vagrant/.dotfiles/vagrant/./setup.sh
SCRIPT

  config.vm.provision :shell, inline: script
end