Sha256: 71464dc949968a02d783a4334abb459e2a605b42ea02e024dc9a3095c9a39498
Contents?: true
Size: 370 Bytes
Versions: 63
Compression:
Stored size: 370 Bytes
Contents
# frozen_string_literal: true module Facts module Linux class Kernelversion FACT_NAME = 'kernelversion' def call_the_resolver version_numbers = Facter::Resolvers::Uname.resolve(:kernelrelease).scan(/\d+/) fact_value = version_numbers[0..2].join('.') Facter::ResolvedFact.new(FACT_NAME, fact_value) end end end end
Version data entries
63 entries across 63 versions & 1 rubygems
Version | Path |
---|---|
facter-4.0.23 | lib/facts/linux/kernelversion.rb |
facter-4.0.22 | lib/facts/linux/kernelversion.rb |
facter-4.0.21 | lib/facts/linux/kernelversion.rb |