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

Version Path
foreman_puppet-8.0.0 app/controllers/concerns/foreman_puppet/parameters/puppetclass.rb
foreman_puppet-6.4.0 app/controllers/concerns/foreman_puppet/parameters/puppetclass.rb
foreman_puppet-7.0.0 app/controllers/concerns/foreman_puppet/parameters/puppetclass.rb
foreman_puppet-6.3.0 app/controllers/concerns/foreman_puppet/parameters/puppetclass.rb
foreman_puppet-6.2.0 app/controllers/concerns/foreman_puppet/parameters/puppetclass.rb
foreman_puppet-6.1.1 app/controllers/concerns/foreman_puppet/parameters/puppetclass.rb
foreman_puppet-5.1.3 app/controllers/concerns/foreman_puppet/parameters/puppetclass.rb
foreman_puppet-6.1.0 app/controllers/concerns/foreman_puppet/parameters/puppetclass.rb
foreman_puppet-6.0.1 app/controllers/concerns/foreman_puppet/parameters/puppetclass.rb
foreman_puppet-6.0.0 app/controllers/concerns/foreman_puppet/parameters/puppetclass.rb
foreman_puppet-5.1.2 app/controllers/concerns/foreman_puppet/parameters/puppetclass.rb
foreman_puppet-4.1.1 app/controllers/concerns/foreman_puppet/parameters/puppetclass.rb
foreman_puppet-5.1.1 app/controllers/concerns/foreman_puppet/parameters/puppetclass.rb
foreman_puppet-5.1.0 app/controllers/concerns/foreman_puppet/parameters/puppetclass.rb
foreman_puppet-4.1.0 app/controllers/concerns/foreman_puppet/parameters/puppetclass.rb
foreman_puppet-4.0.4 app/controllers/concerns/foreman_puppet/parameters/puppetclass.rb
foreman_puppet-5.0.0 app/controllers/concerns/foreman_puppet/parameters/puppetclass.rb
foreman_puppet-4.0.3 app/controllers/concerns/foreman_puppet/parameters/puppetclass.rb
foreman_puppet-4.0.2 app/controllers/concerns/foreman_puppet/parameters/puppetclass.rb
foreman_puppet-3.0.7 app/controllers/concerns/foreman_puppet/parameters/puppetclass.rb