lib/vagrant/environment.rb
# The root path is the path where the top-most (loaded last)
# Vagrantfile resides. It can be considered the project root for
# this environment.
#
# @return [String]
The root path is the path where the top-most (loaded last)
Vagrantfile resides. It can be considered the project root for
this environment.
The root path is the path where the top - most ( loaded last ) Vagrantfile resides . It can be considered the project root for this environment .
def root_path
      return @root_path if defined?(@root_path)
      root_finder = lambda do |path|
        return path if File.exist?(File.join(path.to_s, ROOTFILE_NAME))
        return nil if path.root? || !File.exist?(path)
        root_finder.call(path.parent)
      end
      @root_path = root_finder.call(cwd)
    end
def root_path return @root_path if defined? ( @root_path ) root_finder = lambda do | path | return path if File . exist? ( File . join ( path . to_s , ROOTFILE_NAME ) ) return nil if path . root? || ! File . exist? ( path ) root_finder . call ( path . parent ) end @root_path = root_finder . call ( cwd ) end
The root path is the path where the top-most (loaded last)
Vagrantfile resides.
The root path is the path where the top - most ( loaded last ) Vagrantfile resides .
None
String