Sha256: 5c19fdf06ec6367b09f951b33bcb3ed0c421b1619152b2baf4ec8ce2b2c586da

Contents?: true

Size: 378 Bytes

Versions: 2

Compression:

Stored size: 378 Bytes

Contents

# frozen_string_literal: true

module Facter
  module Sles
    class OsSelinux
      FACT_NAME = 'os.selinux'

      def call_the_resolver
        selinux = Resolvers::SELinux.resolve(:enabled)

        ResolvedFact.new(FACT_NAME, build_fact_list(selinux))
      end

      def build_fact_list(selinux)
        {
          enabled: selinux
        }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
facter-4.0.8.pre lib/facts/sles/os/selinux.rb
facter-4.0.7.pre lib/facts/sles/os/selinux.rb