projects
/
mirror
/
dsa-puppet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
refactor debian-org/lib/facter/paths.rb facter
[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
}.each do |path|
6
Facter.add("has" + path.gsub('/','_')) do
7
setcode do
8
if FileTest.exist?(path)
9
true
10
else
11
''
12
end
13
end
14
end
15
end