Class: Facter::Operatingsystem::CumulusLinux

Inherits:
Linux
  • Object
show all
Defined in:
lib/facter/operatingsystem/cumuluslinux.rb

Instance Method Summary collapse

Methods inherited from Linux

#collect_lsb_information, #get_lsb_facts_hash, #get_lsbdistcodename, #get_lsbdistdescription, #get_lsbdistid, #get_lsbdistrelease, #get_lsbmajdistrelease, #get_lsbminordistrelease, #get_lsbrelease, #get_operatingsystemmajorrelease, #get_operatingsystemminorrelease, #has_lsb?

Methods inherited from Base

#get_operatingsystemmajorrelease, #get_operatingsystemminorrelease, #get_operatingsystemrelease_hash, #has_lsb?

Instance Method Details

#get_operatingsystemObject



7
8
9
# File 'lib/facter/operatingsystem/cumuluslinux.rb', line 7

def get_operatingsystem
  "CumulusLinux"
end

#get_operatingsystemmajreleaseObject



20
21
22
23
24
# File 'lib/facter/operatingsystem/cumuluslinux.rb', line 20

def get_operatingsystemmajrelease
  if operatingsystemrelease = get_operatingsystemrelease
    operatingsystemrelease.split(".").first
  end
end

#get_operatingsystemreleaseObject



15
16
17
18
# File 'lib/facter/operatingsystem/cumuluslinux.rb', line 15

def get_operatingsystemrelease
  @operatingsystemrelease ||= Facter::Util::Operatingsystem.os_release['VERSION_ID']
  @operatingsystemrelease
end

#get_osfamilyObject



11
12
13
# File 'lib/facter/operatingsystem/cumuluslinux.rb', line 11

def get_osfamily
  "Debian"
end