lib/facts/macosx/system_uptime/uptime.rb in facter-4.0.8.pre vs lib/facts/macosx/system_uptime/uptime.rb in facter-4.0.9.pre

- old
+ new

@@ -1,14 +1,16 @@ # frozen_string_literal: true -module Facter +module Facts module Macosx - class SystemUptimeUptime - FACT_NAME = 'system_uptime.uptime' + module SystemUptime + class Uptime + FACT_NAME = 'system_uptime.uptime' - def call_the_resolver - fact_value = Resolvers::Uptime.resolve(:uptime) - ResolvedFact.new(FACT_NAME, fact_value) + def call_the_resolver + fact_value = Facter::Resolvers::Uptime.resolve(:uptime) + Facter::ResolvedFact.new(FACT_NAME, fact_value) + end end end end end