Sha256: 947886b4b18c0f31efd2bb5abbb8377985ddabf3fd9773597462873bb581f24d

Contents?: true

Size: 479 Bytes

Versions: 5

Compression:

Stored size: 479 Bytes

Contents

# frozen_string_literal: true

module Facts
  module Debian
    module Os
      module Distro
        class Id
          FACT_NAME = 'os.distro.id'
          ALIASES = 'lsbdistid'

          def call_the_resolver
            fact_value = Facter::Resolvers::LsbRelease.resolve(:distributor_id)

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
facter-4.0.14 lib/facts/debian/os/distro/id.rb
facter-4.0.13 lib/facts/debian/os/distro/id.rb
facter-4.0.12 lib/facts/debian/os/distro/id.rb
facter-4.0.11 lib/facts/debian/os/distro/id.rb
facter-4.0.10.pre lib/facts/debian/os/distro/id.rb