Update usage docs

This commit is contained in:
Fabio Rehm 2014-02-11 22:45:04 -02:00
parent 4ae25633fe
commit e5946fc02e

View file

@ -64,13 +64,20 @@ on your current project directory.
This is the easiest way to get started with plugin and is enabled by default. This is the easiest way to get started with plugin and is enabled by default.
Under the hood, `vagrant-cachier` does its best to find out what is supported on the Under the hood, `vagrant-cachier` does its best to find out what is supported on the
guest machine and will set buckets accordingly guest machine and will set buckets accordingly.
If you want that behavior to be disabled, you can set `cache.auto_detect` to `false`
from your Vagrantfile:
By adding the code below to ```ruby
your `Vagrantfile` you can enable automatic detection of supported cache _buckets_. Vagrant.configure("2") do |config|
config.vm.box = 'some-box'
This will make . if Vagrant.has_plugin?("vagrant-cachier")
config.cache.scope = :machine # or :box
config.cache.auto_detect = false
end
end
```
## Enable buckets as needed ## Enable buckets as needed
@ -79,6 +86,7 @@ are configured, you can do so by "cherry picking" them on your `Vagrantfile`:
```ruby ```ruby
Vagrant.configure("2") do |config| Vagrant.configure("2") do |config|
config.cache.auto_detect = false
config.cache.enable :apt config.cache.enable :apt
config.cache.enable :gem config.cache.enable :gem
end end