also replace dashes
[mirror/dsa-puppet.git] / modules / debian-org / lib / facter / paths.rb
1
2 %w{/srv/build-trees
3    /srv/buildd
4    /etc/ssh/ssh_host_ed25519_key
5    /srv/mirrors/debian
6    /srv/mirrors/debian-backports
7    /srv/mirrors/debian-debug
8    /srv/mirrors/debian-security
9 }.each do |path|
10         Facter.add("has" + path.gsub(/[\/-]/,'_')) do
11                 setcode do
12                         if FileTest.exist?(path)
13                                 true
14                         else
15                                 ''
16                         end
17                 end
18         end
19 end