Sha256: 2130713d97c07fe885e6e273a6230a074d6d39fdf4beb33b4a53e89505f2cff5
Contents?: true
Size: 754 Bytes
Versions: 83
Compression:
Stored size: 754 Bytes
Contents
require 'facter/util/operatingsystem' require 'facter/operatingsystem/linux' module Facter module Operatingsystem class OsReleaseLinux < Linux def get_operatingsystem # Native cfacter also uses the NAME field. Facter::Util::Operatingsystem.os_release['NAME'] end def get_osfamily Facter::Util::Operatingsystem.os_release['NAME'] end def get_operatingsystemrelease @operatingsystemrelease ||= Facter::Util::Operatingsystem.os_release['VERSION_ID'] @operatingsystemrelease end def get_operatingsystemmajrelease if operatingsystemrelease = get_operatingsystemrelease operatingsystemrelease.split(".").first end end end end end
Version data entries
83 entries across 83 versions & 2 rubygems