Class: VagrantPlugins::Cachier::Bucket::Generic
- Inherits:
-
VagrantPlugins::Cachier::Bucket
- Object
- VagrantPlugins::Cachier::Bucket
- VagrantPlugins::Cachier::Bucket::Generic
- Defined in:
- lib/vagrant-cachier/bucket/generic.rb
Instance Method Summary collapse
Methods inherited from VagrantPlugins::Cachier::Bucket
auto_detect, bucket_name, #comm, #empty_dir?, #guest, inherited, #initialize, install, #machine, #symlink, #symlink?, #user_symlink
Constructor Details
This class inherits a constructor from VagrantPlugins::Cachier::Bucket
Instance Method Details
#install ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/vagrant-cachier/bucket/generic.rb', line 5 def install # First we normalize the @configs hash as a hash of hashes if @configs.has_key?(:cache_dir) @configs = { @name => @configs } end # Now we iterate through all generic buckets's configurations and # set them up. @configs.each do |key, conf| if conf.has_key?(:cache_dir) symlink(conf[:cache_dir], "/tmp/vagrant-cache/#{key}") else @env[:ui].info I18n.t('vagrant_cachier.skipping_bucket', bucket: "Generic[#{key}]") end end end |