VAGRANT_DOTFILE_PATH [GH-1524]

This commit is contained in:
Mitchell Hashimoto 2013-07-18 11:58:11 -04:00
parent cbf1417964
commit bd378ea2b0
2 changed files with 4 additions and 3 deletions

View File

@ -7,6 +7,8 @@ IMPROVEMENTS:
- Puppet will run without color if the UI is not colored. [GH-1344]
- Chef supports the "formatter" configuration for setting the
formatter. [GH-1250]
- VAGRANT_DOTFILE_PATH environmental variable reintroduces the
functionality removed in 1.1 from "config.dotfile_name" [GH-1524]
BUG FIXES:

View File

@ -117,11 +117,10 @@ module Vagrant
# Setup the local data directory. If a configuration path is given,
# then it is expanded relative to the working directory. Otherwise,
# we use the default which is expanded relative to the root path.
@local_data_path = nil
opts[:local_data_path] ||= ENV["VAGRANT_DOTFILE_PATH"]
opts[:local_data_path] ||= root_path.join(DEFAULT_LOCAL_DATA) if !root_path.nil?
if opts[:local_data_path]
@local_data_path = Pathname.new(File.expand_path(opts[:local_data_path], @cwd))
elsif !root_path.nil?
@local_data_path = root_path.join(DEFAULT_LOCAL_DATA)
end
setup_local_data_path