Code Review
/
puppet-modules
/
puppetlabs-apt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Don't truncate to short keys in the type
[puppet-modules/puppetlabs-apt.git]
/
lib
/
facter
/
apt_updates.rb
1
Facter.add("apt_updates") do
2
confine :osfamily => 'Debian'
3
setcode do
4
if File.executable?("/usr/lib/update-notifier/apt-check")
5
updates = Facter::Util::Resolution.exec('/usr/lib/update-notifier/apt-check 2>&1')
6
Integer(updates.strip.split(';')[0])
7
end
8
end
9
end