Class: Facts::Debian::Os::Distro::Release
- Inherits:
-
Object
- Object
- Facts::Debian::Os::Distro::Release
- Defined in:
- lib/facter/facts/debian/os/distro/release.rb
Constant Summary collapse
- FACT_NAME =
'os.distro.release'
- ALIASES =
%w[lsbdistrelease lsbmajdistrelease lsbminordistrelease].freeze
Instance Method Summary collapse
Instance Method Details
#call_the_resolver ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/facter/facts/debian/os/distro/release.rb', line 11 def call_the_resolver fact_value = determine_release_for_os return Facter::ResolvedFact.new(FACT_NAME, nil) unless fact_value [Facter::ResolvedFact.new(FACT_NAME, fact_value), Facter::ResolvedFact.new(ALIASES[0], fact_value['full'], :legacy), Facter::ResolvedFact.new(ALIASES[1], fact_value['major'], :legacy), Facter::ResolvedFact.new(ALIASES[2], fact_value['minor'], :legacy)] end |