vagrant-cachier-ng/lib/vagrant-cachier/bucket/chef.rb
Fabio Rehm 437ba6a4cf ⚠️ Massive refactoring of buckets code ⚠️
Doing this is kinda irresponsible because we don't have any unit testing
in place but I've had enough of copy & pasting things around. Although it
doesn't make the codebase GREAT, I believe it'll reach a _nice_ status :)

Thanks to those changes I realized that skipping configuration of
buckets that have already been configured was easier than I thought and
should be enough to close GH-85 \o/
2014-02-26 22:03:22 -03:00

20 lines
494 B
Ruby

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)
symlink(guest_path) if guest_path
else
@env[:ui].info I18n.t('vagrant_cachier.skipping_bucket', bucket: 'Chef')
end
end
end
end
end
end