Only calculate the source root once

This commit is contained in:
Mitchell Hashimoto 2010-08-23 21:44:53 -07:00
parent 4844d6c12f
commit 3b86122e09
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ module Vagrant
# The source root is the path to the root directory of
# the Vagrant gem.
def source_root
File.expand_path('../../', __FILE__)
@source_root ||= File.expand_path('../../', __FILE__)
end
end
end