2013-06-11 15:43:42 -04:00
|
|
|
module VagrantPlugins
|
|
|
|
module Cachier
|
|
|
|
class Bucket
|
|
|
|
class Chef < Bucket
|
|
|
|
def self.capability
|
|
|
|
:chef_file_cache_path
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
if guest.capability?(:chef_file_cache_path)
|
|
|
|
guest_path = guest.capability(:chef_file_cache_path)
|
2014-02-14 01:15:43 -02:00
|
|
|
symlink(guest_path) if guest_path
|
2013-06-11 15:43:42 -04:00
|
|
|
else
|
2013-08-03 14:26:10 -03:00
|
|
|
@env[:ui].info I18n.t('vagrant_cachier.skipping_bucket', bucket: 'Chef')
|
2013-06-11 15:43:42 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|