Load Vagrantfile in include/ directory for boxes if it exists

This commit is contained in:
Mitchell Hashimoto 2010-04-12 00:51:12 -07:00
parent 9498226c83
commit cbb0c413dc
1 changed files with 5 additions and 0 deletions

View File

@ -4,3 +4,8 @@ Vagrant::Config.run do |config|
# the actual `Vagrantfile` in this box.
config.vm.base_mac = "<%= base_mac %>"
end
# Load include vagrant file if it exists after the auto-generated
# so it can override any of the settings
include_vagrantfile = File.expand_path(File.join(File.dirname(__FILE__), "include", "Vagrantfile"))
load include_vagrantfile if File.exist?(include_vagrantfile)