Sha256: aa33774da6a927aea7e0965272610880efdd59da5e0f7d9413bc42dcefce35b3

Contents?: true

Size: 361 Bytes

Versions: 2

Compression:

Stored size: 361 Bytes

Contents

# lsbmajdistrelease.rb
#
require 'facter'

Facter.add("lsbmajdistrelease") do
    confine :operatingsystem => %w{Solaris Linux Fedora RedHat CentOS SuSE Debian Gentoo}
    setcode do
        if /(\d*)\./i =~ Facter.value(:lsbdistrelease)
            result=$1
        else
            result=Facter.value(:lsbdistrelease)
        end
        result
    end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
facter-1.5 lib/facter/lsbmajdistrelease.rb
facter-1.5.2 lib/facter/lsbmajdistrelease.rb