Sha256: 4c39071de552661d10abfd534e0554c0e69c34a8db75306352341a82883b2b81

Contents?: true

Size: 593 Bytes

Versions: 10

Compression:

Stored size: 593 Bytes

Contents

module VagrantPlugins
  module Cachier
    class Bucket
      class Apt < Bucket
        def self.capability
          :apt_cache_dir
        end

        def install
          if guest.capability?(:apt_cache_dir)
            guest_path = guest.capability(:apt_cache_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')
          end
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
vagrant-cachier-1.2.1 lib/vagrant-cachier/bucket/apt.rb
vagrant-cachier-1.2.0 lib/vagrant-cachier/bucket/apt.rb
vagrant-cachier-1.1.0 lib/vagrant-cachier/bucket/apt.rb
vagrant-cachier-1.0.0 lib/vagrant-cachier/bucket/apt.rb
vagrant-cachier-0.9.0 lib/vagrant-cachier/bucket/apt.rb
vagrant-cachier-0.8.0 lib/vagrant-cachier/bucket/apt.rb
vagrant-cachier-0.7.2 lib/vagrant-cachier/bucket/apt.rb
vagrant-cachier-0.7.1 lib/vagrant-cachier/bucket/apt.rb
vagrant-cachier-0.7.0 lib/vagrant-cachier/bucket/apt.rb
vagrant-cachier-0.6.0 lib/vagrant-cachier/bucket/apt.rb