Sha256: d6586eb8e57a421ade507aa34b54520d633cde9562dbc11edf2b5cefc9780f37
Contents?: true
Size: 381 Bytes
Versions: 4
Compression:
Stored size: 381 Bytes
Contents
# lsbmajdistrelease.rb # require 'facter' Facter.add("lsbmajdistrelease") do confine :operatingsystem => %w{Solaris Linux Fedora RedHat CentOS SuSE SLES Debian Ubuntu Gentoo OEL OVS} setcode do if /(\d*)\./i =~ Facter.value(:lsbdistrelease) result=$1 else result=Facter.value(:lsbdistrelease) end result end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
facter-1.5.8 | lib/facter/lsbmajdistrelease.rb |
facter-1.5.7 | lib/facter/lsbmajdistrelease.rb |
facter-1.5.6 | lib/facter/lsbmajdistrelease.rb |
facter-1.5.5 | lib/facter/lsbmajdistrelease.rb |