Fix GH-96
This commit is contained in:
parent
0f3d79e1bc
commit
20373aa0d7
3 changed files with 8 additions and 2 deletions
|
@ -4,8 +4,13 @@ FEATURES:
|
||||||
|
|
||||||
- ["Generic" cache bucket](http://fgrehm.viewdocs.io/vagrant-cachier/buckets/generic) [[GH-94]] / [[GH-4]].
|
- ["Generic" cache bucket](http://fgrehm.viewdocs.io/vagrant-cachier/buckets/generic) [[GH-94]] / [[GH-4]].
|
||||||
|
|
||||||
|
BUG FIXES:
|
||||||
|
|
||||||
|
- Fix apt-cacher bucket undefined method error [[GH-96]]
|
||||||
|
|
||||||
[GH-94]: https://github.com/fgrehm/vagrant-cachier/pull/94
|
[GH-94]: https://github.com/fgrehm/vagrant-cachier/pull/94
|
||||||
[GH-4]: https://github.com/fgrehm/vagrant-cachier/issues/4
|
[GH-4]: https://github.com/fgrehm/vagrant-cachier/issues/4
|
||||||
|
[GH-96]: https://github.com/fgrehm/vagrant-cachier/issues/96
|
||||||
|
|
||||||
## [0.6.0](https://github.com/fgrehm/vagrant-cachier/compare/v0.5.1...v0.6.0) (Feb 26, 2014)
|
## [0.6.0](https://github.com/fgrehm/vagrant-cachier/compare/v0.5.1...v0.6.0) (Feb 26, 2014)
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,8 @@ module VagrantPlugins
|
||||||
def install
|
def install
|
||||||
if guest.capability?(:apt_cacher_dir)
|
if guest.capability?(:apt_cacher_dir)
|
||||||
if guest_path = guest.capability(:apt_cacher_dir)
|
if guest_path = guest.capability(:apt_cacher_dir)
|
||||||
if machine.config.cache.enable_nfs
|
synced_folder_type = machine.config.cache.synced_folder_opts[:type]
|
||||||
|
if synced_folder_type && synced_folder_type.to_sym == :nfs
|
||||||
symlink(guest_path)
|
symlink(guest_path)
|
||||||
else
|
else
|
||||||
@env[:ui].info I18n.t('vagrant_cachier.nfs_required', bucket: 'apt-cacher')
|
@env[:ui].info I18n.t('vagrant_cachier.nfs_required', bucket: 'apt-cacher')
|
||||||
|
|
|
@ -8,7 +8,7 @@ en:
|
||||||
Unknown cache scope '%{cache_scope}' (allowed scopes: %{allowed})
|
Unknown cache scope '%{cache_scope}' (allowed scopes: %{allowed})
|
||||||
nfs_required: |-
|
nfs_required: |-
|
||||||
The '%{bucket}' cache bucket requires NFS to be enabled, please add
|
The '%{bucket}' cache bucket requires NFS to be enabled, please add
|
||||||
`config.cache.enable_nfs = true` to your Vagrantfile.
|
`config.cache.synced_folder_opts = {type: :nfs}` to your Vagrantfile.
|
||||||
will_fix_machine_cache_dir: |-
|
will_fix_machine_cache_dir: |-
|
||||||
A vagrant-cachier provider specific cache dir was found under
|
A vagrant-cachier provider specific cache dir was found under
|
||||||
'%{current_path}' and it will be moved to
|
'%{current_path}' and it will be moved to
|
||||||
|
|
Loading…
Reference in a new issue