Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Add Comment
Please, Sign In to add comment