Allow the .vagrant dotfile to be moved into a completely different directory tree

I wanted to define my dotfile as: `config.vagrant.dotfile_name =
"~/.vagrant-projectname"` and noticed that the full path wasn't
expanded as expected.

This patch allows the vagrant file to be placed anywhere on the
filesystem.
This commit is contained in:
Matt Robenolt 2012-06-09 22:56:54 -07:00
parent 3a07535e51
commit db76b42ef5
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ module Vagrant
# @return [Pathname]
def dotfile_path
return nil if !root_path
root_path.join(config.global.vagrant.dotfile_name)
root_path.join(File.expand_path(config.global.vagrant.dotfile_name))
end
# Returns the collection of boxes for the environment.