Only get the home path on the root environment

This commit is contained in:
Mitchell Hashimoto 2011-07-10 14:19:34 -07:00
parent 442584fbac
commit aaa09749e4
1 changed files with 1 additions and 0 deletions

View File

@ -97,6 +97,7 @@ module Vagrant
#
# @return [Pathname]
def home_path
return parent.home_path if parent
return @_home_path if defined?(@_home_path)
@_home_path ||= Pathname.new(File.expand_path(ENV["VAGRANT_HOME"] || DEFAULT_HOME))