Environment::DEFAULT_HOME got deprecated on Vagrant 1.2+

This commit is contained in:
Fabio Rehm 2013-05-06 16:11:04 -03:00
parent f2be75a45d
commit e02b2d7b3c

View file

@ -2,7 +2,7 @@
# vi: set ft=ruby :
def local_apt_cache(box_name)
cache_dir = File.join(File.expand_path(Vagrant::Environment::DEFAULT_HOME),
cache_dir = File.join(File.expand_path('~/.vagrant.d'),
'cache',
'apt',
box_name)
@ -12,7 +12,7 @@ def local_apt_cache(box_name)
end
def local_gem_cache(box_name)
cache_dir = File.join(File.expand_path(Vagrant::Environment::DEFAULT_HOME),
cache_dir = File.join(File.expand_path('~/.vagrant.d'),
'cache',
'gems',
'source',