Sha256: e9ea6e0c3ebf02a1dc2f4e9b7017dc3e251dfd7658faaf7ab4ca0dd8e479cb66
Contents?: true
Size: 419 Bytes
Versions: 2
Compression:
Stored size: 419 Bytes
Contents
# frozen_string_literal: true module Facter module El class ProcessorsIsa FACT_NAME = 'processors.isa' def call_the_resolver fact_value = Resolvers::Uname.resolve(:kernelrelease) ResolvedFact.new(FACT_NAME, get_isa(fact_value)) end private def get_isa(fact_value) value_split = fact_value.split('.') value_split.last end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
facter-4.0.8.pre | lib/facts/el/processors/isa.rb |
facter-4.0.7.pre | lib/facts/el/processors/isa.rb |