Sha256: b3bc4fbfdcc8f0df475ca258ac11939550974c6bc26f449c2eda6aeaff001dba

Contents?: true

Size: 502 Bytes

Versions: 63

Compression:

Stored size: 502 Bytes

Contents

# frozen_string_literal: true

module Facts
  module Linux
    module Os
      module Distro
        class Description
          FACT_NAME = 'os.distro.description'
          ALIASES = 'lsbdistdescription'

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

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

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
facter-4.0.23 lib/facts/linux/os/distro/description.rb
facter-4.0.22 lib/facts/linux/os/distro/description.rb
facter-4.0.21 lib/facts/linux/os/distro/description.rb