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:
parent
3a07535e51
commit
db76b42ef5
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue