Sha256: b20aaaa8f7fdbb0384f7608b97ac349d75f3ba58ac340bff3391312f188031cb

Contents?: true

Size: 370 Bytes

Versions: 13

Compression:

Stored size: 370 Bytes

Contents

# frozen_string_literal: true

module Facts
  module Ol
    module Os
      module Distro
        class Id
          FACT_NAME = 'os.distro.id'

          def call_the_resolver
            fact_value = Facter::Resolvers::OsRelease.resolve(:id).capitalize

            Facter::ResolvedFact.new(FACT_NAME, fact_value)
          end
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
facter-4.10.0 lib/facter/facts/ol/os/distro/id.rb
facter-4.9.0 lib/facter/facts/ol/os/distro/id.rb
facter-4.8.0 lib/facter/facts/ol/os/distro/id.rb
facter-4.7.1 lib/facter/facts/ol/os/distro/id.rb
facter-4.7.0 lib/facter/facts/ol/os/distro/id.rb
facter-4.6.1 lib/facter/facts/ol/os/distro/id.rb
facter-4.6.0 lib/facter/facts/ol/os/distro/id.rb
facter-4.5.2 lib/facter/facts/ol/os/distro/id.rb
facter-4.5.1 lib/facter/facts/ol/os/distro/id.rb
facter-4.5.0 lib/facter/facts/ol/os/distro/id.rb
facter-4.4.3 lib/facter/facts/ol/os/distro/id.rb
facter-4.4.2 lib/facter/facts/ol/os/distro/id.rb
facter-4.4.1 lib/facter/facts/ol/os/distro/id.rb