Allow cache scopes to be set as either a symbol or a string
This commit is contained in:
parent
b50374162a
commit
20e1176a10
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ module VagrantPlugins
|
|||
end
|
||||
|
||||
def cache_root
|
||||
@cache_root ||= case @env[:machine].config.cache.scope
|
||||
@cache_root ||= case @env[:machine].config.cache.scope.to_sym
|
||||
when :box
|
||||
@env[:home_path].join('cache', @env[:machine].box.name)
|
||||
when :machine
|
||||
|
|
Loading…
Reference in a new issue