Browse code

Allow reuse of existing vagrant boxes by env variables

Usage:

BOX_NAME=precise64 vagrant up

Dr Nic Williams authored on 2013/05/04 07:35:51
Showing 1 changed files
... ...
@@ -1,8 +1,8 @@
1 1
 # -*- mode: ruby -*-
2 2
 # vi: set ft=ruby :
3 3
 
4
-BOX_NAME = "ubuntu"
5
-BOX_URI = "http://files.vagrantup.com/precise64.box"
4
+BOX_NAME = ENV['BOX_NAME'] || "ubuntu"
5
+BOX_URI = ENV['BOX_URI'] || "http://files.vagrantup.com/precise64.box"
6 6
 PPA_KEY = "E61D797F63561DC6"
7 7
 
8 8
 Vagrant::Config.run do |config|