lib/facts/debian/os/family.rb in facter-4.0.8.pre vs lib/facts/debian/os/family.rb in facter-4.0.9.pre
- old
+ new
@@ -1,17 +1,20 @@
# frozen_string_literal: true
-module Facter
+module Facts
module Debian
- class OsFamily
- FACT_NAME = 'os.family'
- ALIASES = 'osfamily'
+ module Os
+ class Family
+ FACT_NAME = 'os.family'
+ ALIASES = 'osfamily'
- def call_the_resolver
- fact_value = Resolvers::OsRelease.resolve(:id_like)
- fact_value ||= Resolvers::OsRelease.resolve(:id)
+ def call_the_resolver
+ fact_value = Facter::Resolvers::OsRelease.resolve(:id_like)
+ fact_value ||= Facter::Resolvers::OsRelease.resolve(:id)
- [ResolvedFact.new(FACT_NAME, fact_value.capitalize), ResolvedFact.new(ALIASES, fact_value.capitalize, :legacy)]
+ [Facter::ResolvedFact.new(FACT_NAME, fact_value.capitalize),
+ Facter::ResolvedFact.new(ALIASES, fact_value.capitalize, :legacy)]
+ end
end
end
end
end