Sha256: 446bbc305fd749e1238fb26fdc5102ed6236e01ade782f2b34249b8830358bc1

Contents?: true

Size: 525 Bytes

Versions: 3

Compression:

Stored size: 525 Bytes

Contents

# Fact: lsbdistrelease
#
# 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(:lsbdistrelease) do
  confine :kernel => [ :linux, :"gnu/kfreebsd" ]
  setcode do
    Facter::Core::Execution.exec('lsb_release -r -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/lsbdistrelease.rb
facter-2.0.1.rc1-x86-mingw32 lib/facter/lsbdistrelease.rb
facter-2.0.1.rc1-universal-darwin lib/facter/lsbdistrelease.rb