2013-06-11 19:43:42 +00: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 03:15:43 +00:00
|
|
|
symlink(guest_path) if guest_path
|
2013-06-11 19:43:42 +00:00
|
|
|
else
|
2013-08-03 17:26:10 +00:00
|
|
|
@env[:ui].info I18n.t('vagrant_cachier.skipping_bucket', bucket: 'Chef')
|
2013-06-11 19:43:42 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|