Sha256: 8c83d5dddcbf9b3d1708ac4ed045e320c4995d79c70b4f4840f4e09ce28890ed
Contents?: true
Size: 663 Bytes
Versions: 2
Compression:
Stored size: 663 Bytes
Contents
# frozen_string_literal: true module Facter module Debian class OsLsbRelease FACT_NAME = 'os.distro' def call_the_resolver versions = resolver(:release).split('.') distro = { 'codename' => resolver(:codename), 'description' => resolver(:description), 'id' => resolver(:distributor_id), 'release' => { 'full' => resolver(:release), 'major' => versions[0], 'minor' => versions[1] } } ResolvedFact.new(FACT_NAME, distro) end def resolver(key) Resolvers::LsbRelease.resolve(key) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
facter-4.0.8.pre | lib/facts/debian/os/distro.rb |
facter-4.0.7.pre | lib/facts/debian/os/distro.rb |