Sha256: 75e9baa7d8b92caf4280943efc0d2862736b5bc839a2d2f009f0fa0882a080e4
Contents?: true
Size: 527 Bytes
Versions: 3
Compression:
Stored size: 527 Bytes
Contents
# Fact: lsbdistcodename # # Purpose: Return Linux Standard Base information for the host. # # Resolution: # Uses the lsb_release system command # # Caveats: # Only works on Linux (and the kfreebsd derivative) systems. # Requires the lsb_release program, which may not be installed by default. # Also is as only as accurate as that program outputs. Facter.add(:lsbdistcodename) do confine :kernel => [ :linux, :"gnu/kfreebsd" ] setcode do Facter::Core::Execution.exec('lsb_release -c -s 2>/dev/null') end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
facter-2.0.1.rc1 | lib/facter/lsbdistcodename.rb |
facter-2.0.1.rc1-x86-mingw32 | lib/facter/lsbdistcodename.rb |
facter-2.0.1.rc1-universal-darwin | lib/facter/lsbdistcodename.rb |