lib/facts/aix/os/release.rb in facter-4.0.8.pre vs lib/facts/aix/os/release.rb in facter-4.0.9.pre
- old
+ new
@@ -1,19 +1,21 @@
# frozen_string_literal: true
-module Facter
+module Facts
module Aix
- class OsRelease
- FACT_NAME = 'os.release'
- ALIASES = %w[operatingsystemmajrelease operatingsystemrelease].freeze
+ module Os
+ class Release
+ FACT_NAME = 'os.release'
+ ALIASES = %w[operatingsystemmajrelease operatingsystemrelease].freeze
- def call_the_resolver
- fact_value = Resolvers::OsLevel.resolve(:build)
- major = fact_value.split('-')[0]
+ def call_the_resolver
+ fact_value = Facter::Resolvers::OsLevel.resolve(:build)
+ major = fact_value.split('-')[0]
- [ResolvedFact.new(FACT_NAME, full: fact_value.strip, major: major),
- ResolvedFact.new(ALIASES.first, major, :legacy),
- ResolvedFact.new(ALIASES.last, fact_value.strip, :legacy)]
+ [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
end
end
end
end