Skip to content

Instantly share code, notes, and snippets.

@mrinalwadhwa
Created February 13, 2016 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrinalwadhwa/8cf441ef41cbf7696255 to your computer and use it in GitHub Desktop.
Save mrinalwadhwa/8cf441ef41cbf7696255 to your computer and use it in GitHub Desktop.
Vagrantfile with cachier
def configure_caching(config)
if Vagrant.has_plugin?('vagrant-cachier')
config.cache.scope = :box
config.cache.enable :generic, { :cache_dir => "/var/downloads/cache" }
end
end
Vagrant.configure('2') do |config|
config.vm.provider :virtualbox do |vbox, override|
configure_caching(override)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment