lib/facts/windows/ruby/platform.rb in facter-4.0.8.pre vs lib/facts/windows/ruby/platform.rb in facter-4.0.9.pre

- old
+ new

@@ -1,16 +1,18 @@ # frozen_string_literal: true -module Facter +module Facts module Windows - class RubyPlatform - FACT_NAME = 'ruby.platform' - ALIASES = 'rubyplatform' + module Ruby + class Platform + FACT_NAME = 'ruby.platform' + ALIASES = 'rubyplatform' - def call_the_resolver - fact_value = Resolvers::Ruby.resolve(:platform) + def call_the_resolver + fact_value = Facter::Resolvers::Ruby.resolve(:platform) - [ResolvedFact.new(FACT_NAME, fact_value), ResolvedFact.new(ALIASES, fact_value, :legacy)] + [Facter::ResolvedFact.new(FACT_NAME, fact_value), Facter::ResolvedFact.new(ALIASES, fact_value, :legacy)] + end end end end end