Sha256: 451bdaeb21b8254f49a6c160dc3524290c7b960399e09287de97f58f7bf62c0b
Contents?: true
Size: 677 Bytes
Versions: 32
Compression:
Stored size: 677 Bytes
Contents
module ForemanOpenscap class ConfigNameService attr_reader :configs def initialize @configs = [ ForemanOpenscap::ClientConfig::Ansible.new, 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
32 entries across 32 versions & 1 rubygems