2016-09-23 08:52:14 +00:00
|
|
|
module VagrantPlugins
|
|
|
|
module Cachier
|
|
|
|
module Cap
|
|
|
|
module RedHat
|
|
|
|
module DnfCacheDir
|
|
|
|
def self.dnf_cache_dir(machine)
|
2016-09-26 11:59:40 +00:00
|
|
|
dnf_cache_dir = nil
|
|
|
|
machine.communicate.tap do |comm|
|
|
|
|
return unless comm.test('which dnf')
|
|
|
|
dnf_cache_dir = '/var/cache/dnf'
|
|
|
|
end
|
|
|
|
return dnf_cache_dir
|
2016-09-23 08:52:14 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|