2013-06-08 02:37:02 +00:00
|
|
|
module VagrantPlugins
|
2013-05-22 22:38:26 +00:00
|
|
|
module Cachier
|
|
|
|
class Bucket
|
|
|
|
class Pacman < Bucket
|
|
|
|
def self.capability
|
|
|
|
:pacman_cache_dir
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
if guest.capability?(:pacman_cache_dir)
|
|
|
|
guest_path = guest.capability(:pacman_cache_dir)
|
2014-02-14 03:15:43 +00:00
|
|
|
symlink(guest_path)
|
2013-05-22 22:38:26 +00:00
|
|
|
else
|
2013-08-03 17:26:10 +00:00
|
|
|
@env[:ui].info I18n.t('vagrant_cachier.skipping_bucket', bucket: 'Pacman')
|
2013-05-22 22:38:26 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|