24 lines
604 B
Ruby
24 lines
604 B
Ruby
module VagrantPlugins
|
|
module Cachier
|
|
class Bucket
|
|
class AptLists < Bucket
|
|
def self.capability
|
|
:apt_lists_dir
|
|
end
|
|
|
|
def install
|
|
if guest.capability?(:apt_lists_dir)
|
|
guest_path = guest.capability(:apt_lists_dir)
|
|
|
|
return if @env[:cache_dirs].include?(guest_path)
|
|
|
|
symlink(guest_path)
|
|
comm.execute("mkdir -p /tmp/vagrant-cache/#{@name}/partial")
|
|
else
|
|
@env[:ui].info I18n.t('vagrant_cachier.skipping_bucket', bucket: 'apt-lists')
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|