vagrant-cachier-ng/lib/vagrant-cachier/bucket/generic.rb

20 lines
491 B
Ruby
Raw Normal View History

module VagrantPlugins
module Cachier
class Bucket
class Generic < Bucket
def self.capability
:generic_cache_dir
end
def install
if @configs.has_key?(:cache_dir)
@name = @configs.has_key?(:name) ? "generic-#{@configs[:name]}" : "generic"
symlink(@configs[:cache_dir])
else
@env[:ui].info I18n.t('vagrant_cachier.skipping_bucket', bucket: 'Generic')
end
end
end
end
end