2014-03-23 20:16:18 +00:00
|
|
|
module VagrantPlugins
|
|
|
|
module Cachier
|
|
|
|
class Bucket
|
|
|
|
class Generic < Bucket
|
|
|
|
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')
|
2014-04-07 00:26:26 +00:00
|
|
|
end
|
2014-03-23 20:16:18 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|