Sha256: 743045777aa4b62b1c209c3783fa7958d5f5956966b2ad95605f675e84c47ff3
Contents?: true
Size: 800 Bytes
Versions: 47
Compression:
Stored size: 800 Bytes
Contents
module ForemanPuppet module Parameters module Puppetclass extend ActiveSupport::Concern include Parameters::PuppetclassLookupKey class_methods do def puppetclass_params_filter Foreman::ParameterFilter.new(ForemanPuppet::Puppetclass).tap do |filter| filter.permit :name, class_params_attributes: [puppetclass_lookup_key_params_filter], hostgroup_ids: [], hostgroup_names: [], smart_class_parameters: [puppetclass_lookup_key_params_filter], smart_class_parameter_ids: [], smart_class_parameter_names: [] end end end def puppetclass_params self.class.puppetclass_params_filter.filter_params(params, parameter_filter_context) end end end end
Version data entries
47 entries across 47 versions & 1 rubygems