Sha256: 827ae61a6a0b3bd3d9f48d0a45c16fd254744c64bc3a606dd3757fa1ef455ad3
Contents?: true
Size: 532 Bytes
Versions: 1
Compression:
Stored size: 532 Bytes
Contents
# frozen_string_literal: true module Facts module Macosx module Os module Macosx class Version FACT_NAME = 'os.macosx.version' def call_the_resolver fact_value = Facter::Resolvers::SwVers.resolve(:productversion) versions = fact_value.split('.') ver = { 'full' => fact_value, 'major' => "#{versions[0]}.#{versions[1]}", 'minor' => versions[-1] } Facter::ResolvedFact.new(FACT_NAME, ver) end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facter-4.0.9.pre | lib/facts/macosx/os/macosx/version.rb |