Mark core config classes as upgrade safe

This commit is contained in:
Mitchell Hashimoto 2012-11-03 21:41:04 -07:00
parent 59d5c5ed92
commit 399437e758
1 changed files with 9 additions and 6 deletions

View File

@ -11,28 +11,31 @@ module VagrantPlugins
basic functionality of Vagrant version 1. basic functionality of Vagrant version 1.
DESC DESC
# Core configuration keys provided by the kernel. # Core configuration keys provided by the kernel. Note that all
config("ssh") do # the kernel configuration classes are marked as _upgrade safe_ (the
# true 2nd param). This means that these can be loaded in ANY version
# of the core of Vagrant.
config("ssh", true) do
require File.expand_path("../config/ssh", __FILE__) require File.expand_path("../config/ssh", __FILE__)
SSHConfig SSHConfig
end end
config("nfs") do config("nfs", true) do
require File.expand_path("../config/nfs", __FILE__) require File.expand_path("../config/nfs", __FILE__)
NFSConfig NFSConfig
end end
config("package") do config("package", true) do
require File.expand_path("../config/package", __FILE__) require File.expand_path("../config/package", __FILE__)
PackageConfig PackageConfig
end end
config("vagrant") do config("vagrant", true) do
require File.expand_path("../config/vagrant", __FILE__) require File.expand_path("../config/vagrant", __FILE__)
VagrantConfig VagrantConfig
end end
config("vm") do config("vm", true) do
require File.expand_path("../config/vm", __FILE__) require File.expand_path("../config/vm", __FILE__)
VMConfig VMConfig
end end