10
11
12
13
14
15
16
17
18
19
20
|
# File 'lib/facter/facts/freebsd/os/release.rb', line 10
def call_the_resolver
installed_userland = Facter::Resolvers::Freebsd::FreebsdVersion.resolve(:installed_userland)
return Facter::ResolvedFact.new(FACT_NAME, nil) if !installed_userland || installed_userland.empty?
value = build_release_hash_from_version(installed_userland)
[Facter::ResolvedFact.new(FACT_NAME, value),
Facter::ResolvedFact.new(ALIASES.first, value[:major], :legacy),
Facter::ResolvedFact.new(ALIASES.last, installed_userland, :legacy)]
end
|