Sha256: b65226cf3ff5fa9a69ec4db3772426ba0786471df34595b6e8b6b75a3a5101ba

Contents?: true

Size: 377 Bytes

Versions: 2

Compression:

Stored size: 377 Bytes

Contents

# frozen_string_literal: true

module Facter
  module Windows
    class SystemUptimeDays
      FACT_NAME = 'system_uptime.days'
      ALIASES = 'uptime_days'

      def call_the_resolver
        fact_value = Resolvers::Windows::Uptime.resolve(:days)

        [ResolvedFact.new(FACT_NAME, fact_value), ResolvedFact.new(ALIASES, fact_value, :legacy)]
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
facter-4.0.8.pre lib/facts/windows/system_uptime/system_uptime_days.rb
facter-4.0.7.pre lib/facts/windows/system_uptime/system_uptime_days.rb