Only calculate the source root once
This commit is contained in:
parent
4844d6c12f
commit
3b86122e09
|
@ -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 New Issue