Created
February 13, 2016 13:43
-
-
Save mrinalwadhwa/8cf441ef41cbf7696255 to your computer and use it in GitHub Desktop.
Vagrantfile with cachier
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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