Sha256: 75aa2b6340898be6bc1a7c715bd7dbd64d371cddf68f66f51704f75c3b8e1659
Contents?: true
Size: 685 Bytes
Versions: 26
Compression:
Stored size: 685 Bytes
Contents
module ForemanOpenscap class ConfigNameService attr_reader :configs def initialize @configs = [ ForemanOpenscap::ClientConfig::Ansible.new(Policy), ForemanOpenscap::ClientConfig::Puppet.new, ForemanOpenscap::ClientConfig::Manual.new ] end def config_for(type) @configs.find { |config| config.type == type } end def all_except(type) @configs.reject { |config| config.type == type } end def all_available_except(type) all_except(type).select(&:available?) end def all_available_with_overrides_except(type) all_available_except(type).select(&:managed_overrides?) end end end
Version data entries
26 entries across 26 versions & 1 rubygems