Sha256: 83c001c91fe970576f295232e2db1dc4802817d305a684fad94ed378be368c32

Contents?: true

Size: 848 Bytes

Versions: 1

Compression:

Stored size: 848 Bytes

Contents

Vagrant.configure("2") do |config|
  config.vm.box = "ubuntu/trusty64"
  config.vm.provider "virtualbox" do |vb|
    vb.memory = "512"
  end
  config.vm.provision "chef_apply" do |chef|
    chef.recipe = <<-RECIPE
      apt_update 'update' do
        action :nothing
      end
      apt_repository 'ruby-ng' do
        uri 'ppa:brightbox/ruby-ng'
        distribution node['lsb']['codename']
        only_if { node['lsb']['codename'] == 'trusty' }
        notifies :update, 'apt_update[update]', :immediately
      end
      package %w(git)
      package %w(ruby2.1 ruby2.1-dev) do # raise/lower this if our minimum version ever changes - only affects local testing
        only_if { node['lsb']['codename'] == 'trusty' }
      end
      gem_package 'bundler'
      execute 'bundle install' do
        cwd '/vagrant'
      end
    RECIPE
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nio4r-websocket-0.7.0 Vagrantfile