Sha256: 200936f3b84d895e97ca5752857a89920a93042c5d14f39f643651dddc991e19

Contents?: true

Size: 543 Bytes

Versions: 1

Compression:

Stored size: 543 Bytes

Contents

# frozen_string_literal: true

module Facts
  module Macosx
    module Os
      class Release
        FACT_NAME = 'os.release'

        def call_the_resolver
          fact_value = Facter::Resolvers::Uname.resolve(:kernelrelease)
          release_strings = fact_value.split('.')
          Facter::ResolvedFact.new(FACT_NAME,
                                   full: fact_value,
                                   major: release_strings[0],
                                   minor: release_strings[1])
        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/release.rb