Sha256: 6f39096cc640d94014e3b636a859809b4ca29001c20d427dedab782b4e6b5cca
Contents?: true
Size: 237 Bytes
Versions: 2
Compression:
Stored size: 237 Bytes
Contents
Facter.add(:raspberry_pi) do confine :kernel => :linux setcode do raspberry_pi = nil begin raspberry_pi = true if File.exist?('/usr/lib/raspberrypi') rescue # Prevent abortions. end raspberry_pi end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
corl-0.5.18 | lib/facter/raspberry_pi.rb |
corl-0.5.17 | lib/facter/raspberry_pi.rb |