Sha256: b79992391cee0b6d40bcab7c8f781288a904322a88ea5de4c1d2b07507021210
Contents?: true
Size: 785 Bytes
Versions: 6
Compression:
Stored size: 785 Bytes
Contents
module VagrantPlugins module Cachier class Bucket class AptLists < Bucket def self.capability :apt_lists_dir end def install # Apt lists bucket can't be used on windows hosts # https://github.com/fgrehm/vagrant-cachier/issues/106 return if Vagrant::Util::Platform.windows? 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
Version data entries
6 entries across 6 versions & 1 rubygems