-
-
Save thommay/241157 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
current_apt_keys = Dir[ | |
File.expand_path(File.join(File.dirname(__FILE__), "..", "files", "default", "apt-keys", "*")) | |
] | |
ruby_block "cleanup apt-keys" do | |
block do | |
Dir[ | |
File.expand_path(File.join(Chef::Config[:file_cache_path], "cache", "apt_keys", "*")) | |
].each do |rf| | |
unless current_apt_keys.include?(rf) | |
File.delete(rf) | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment