Class: Facts::Solaris::Os::Release

Inherits:
Object
  • Object
show all
Defined in:
lib/facter/facts/solaris/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/solaris/os/release.rb', line 10

def call_the_resolver
  full_value = Facter::Resolvers::Solaris::OsRelease.resolve(:full)
  major_value = Facter::Resolvers::Solaris::OsRelease.resolve(:major)
  minor_value = Facter::Resolvers::Solaris::OsRelease.resolve(:minor)

  [Facter::ResolvedFact.new(FACT_NAME, full: full_value, major: major_value, minor: minor_value),
   Facter::ResolvedFact.new(ALIASES.first, major_value, :legacy),
   Facter::ResolvedFact.new(ALIASES.last, full_value, :legacy)]
end