Sha256: 87ff4c513fd275ca8b264b3dc4fc07a1e734da7e3c57585c1e1e783f19f605d6

Contents?: true

Size: 924 Bytes

Versions: 3

Compression:

Stored size: 924 Bytes

Contents

# frozen_string_literal: true

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

Vagrant.configure(2) do |config|
  config.vm.box = 'ubuntu/trusty64'
  config.vm.synced_folder '..', '/dropcaster'

  config.vm.provider 'virtualbox' do |vb|
    vb.memory = '256'
  end

  %w[1.9.1 2.0 2.1 2.2].each do |version|
    ruby = "ruby#{version}"
    name = "ruby-#{version.tr('.', '-')}"

    config.vm.define(name) do |cfg|
      cfg.vm.hostname = name
      cfg.vm.provision 'shell', inline: <<-SHELL
        sudo apt-get install software-properties-common
        sudo add-apt-repository ppa:brightbox/ruby-ng
        sudo apt-get update
        sudo apt-get install -y git libxml2-dev zlib1g-dev #{ruby} #{ruby}-dev

        sudo su -c 'echo "LC_ALL=en_US.UTF-8" >> /etc/environment'
        touch .hushlogin

        sudo gem install bundler
        cd /dropcaster
        bundle
        bundle exec rake
      SHELL
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dropcaster-1.2.0 test/Vagrantfile
dropcaster-1.1.0 test/Vagrantfile
dropcaster-1.0.0 test/Vagrantfile