Allow cache scopes to be set as either a symbol or a string

This commit is contained in:
Fabio Rehm 2013-08-03 14:36:29 -03:00
parent b50374162a
commit 20e1176a10

View file

@ -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