Sha256: d75a0ed8643ed88848d354eb090eb58f66d783a0913092123b55837d4d5fc0bf

Contents?: true

Size: 429 Bytes

Versions: 13

Compression:

Stored size: 429 Bytes

Contents

# frozen_string_literal: true

module Facts
  module Linux
    module SystemUptime
      class Hours
        FACT_NAME = 'system_uptime.hours'
        ALIASES = 'uptime_hours'

        def call_the_resolver
          fact_value = Facter::Resolvers::Uptime.resolve(:hours)

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
facter-4.0.34 lib/facter/facts/linux/system_uptime/hours.rb
facter-4.0.33 lib/facter/facts/linux/system_uptime/hours.rb
facter-4.0.32 lib/facter/facts/linux/system_uptime/hours.rb
facter-4.0.31 lib/facter/facts/linux/system_uptime/hours.rb
facter-4.0.30 lib/facter/facts/linux/system_uptime/hours.rb
facter-4.0.29 lib/facts/linux/system_uptime/hours.rb
facter-4.0.28 lib/facts/linux/system_uptime/hours.rb
facter-4.0.26 lib/facts/linux/system_uptime/hours.rb
facter-4.0.25 lib/facts/linux/system_uptime/hours.rb
facter-4.0.24 lib/facts/linux/system_uptime/hours.rb
facter-4.0.23 lib/facts/linux/system_uptime/hours.rb
facter-4.0.22 lib/facts/linux/system_uptime/hours.rb
facter-4.0.21 lib/facts/linux/system_uptime/hours.rb