Class: Facts::Debian::Os::Release

Inherits:
Object
  • Object
show all
Defined in:
lib/facter/facts/debian/os/release.rb

Constant Summary collapse

FACT_NAME =
'os.release'
ALIASES =
%w[operatingsystemmajrelease operatingsystemrelease].freeze

Instance Method Summary collapse

Instance Method Details

#call_the_resolverObject



10
11
12
13
14
15
16
17
18
# File 'lib/facter/facts/debian/os/release.rb', line 10

def call_the_resolver
  fact_value = determine_release_for_os

  return Facter::ResolvedFact.new(FACT_NAME, fact_value) unless fact_value

  [Facter::ResolvedFact.new(FACT_NAME, fact_value),
   Facter::ResolvedFact.new(ALIASES.first, fact_value['major'], :legacy),
   Facter::ResolvedFact.new(ALIASES.last, fact_value['full'], :legacy)]
end