mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-05-28 04:36:05 -04:00
Only calculate the source root once
This commit is contained in:
parent
4844d6c12f
commit
3b86122e09
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue