Sha256: 3c09277cd22dacf5f8b7edaa6e7d5fc0d1e987b7ad04f7c51384101ecbb6c40c
Contents?: true
Size: 515 Bytes
Versions: 3
Compression:
Stored size: 515 Bytes
Contents
# Fact: lsbdistid # # 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(:lsbdistid) do confine :kernel => [ :linux, :"gnu/kfreebsd" ] setcode do Facter::Core::Execution.exec('lsb_release -i -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/lsbdistid.rb |
facter-2.0.1.rc1-x86-mingw32 | lib/facter/lsbdistid.rb |
facter-2.0.1.rc1-universal-darwin | lib/facter/lsbdistid.rb |