Class: Facts::Aix::Os::Release
- Inherits:
-
Object
- Object
- Facts::Aix::Os::Release
- Defined in:
- lib/facter/facts/aix/os/release.rb
Constant Summary collapse
- FACT_NAME =
'os.release'
- ALIASES =
%w[operatingsystemmajrelease operatingsystemrelease].freeze
Instance Method Summary collapse
Instance Method Details
#call_the_resolver ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/facter/facts/aix/os/release.rb', line 10 def call_the_resolver fact_value = Facter::Resolvers::Aix::OsLevel.resolve(:build) major = fact_value.split('-')[0] [Facter::ResolvedFact.new(FACT_NAME, full: fact_value.strip, major: major), Facter::ResolvedFact.new(ALIASES.first, major, :legacy), Facter::ResolvedFact.new(ALIASES.last, fact_value.strip, :legacy)] end |