Skip to content

Commit f22cccb

Browse files
committed
allow overriding vagrant box in test Vagrantfile via ENV variable
1 parent 552a791 commit f22cccb

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/Vagrantfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@ if Gem::Version.new(::Vagrant::VERSION) < Gem::Version.new('1.5')
66
end
77

88
Vagrant.configure('2') do |config|
9-
config.vm.box = 'precise64'
10-
config.vm.box_url = 'http://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-vagrant-amd64-disk1.box'
9+
10+
if ENV.key? 'VAGRANT_BOX'
11+
config.vm.box = ENV['VAGRANT_BOX']
12+
else
13+
config.vm.box = 'precise64'
14+
config.vm.box_url = 'http://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-vagrant-amd64-disk1.box'
15+
end
1116

1217
config.hostmanager.enabled = true
1318
config.hostmanager.manage_host = true

0 commit comments

Comments
 (0)