Sha256: 6a1390f174aaf2a4d7a2e3ab351705e89533f748e8478e9434801b4271380821

Contents?: true

Size: 534 Bytes

Versions: 5

Compression:

Stored size: 534 Bytes

Contents

module Foreman::Controller::Parameters::RemoteExecutionFeature
  extend ActiveSupport::Concern

  class_methods do
    def remote_execution_feature_params_filter
      ::Foreman::ParameterFilter.new(::RemoteExecutionFeature).tap do |filter|
        filter.permit :label, :name, :provided_input_names, :description, :job_template_id
      end
    end
  end

  def remote_execution_feature_params
    self.class.remote_execution_feature_params_filter.filter_params(params, parameter_filter_context, :remote_execution_feature)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_remote_execution-1.2.2 app/controllers/concerns/foreman/controller/parameters/remote_execution_feature.rb
foreman_remote_execution-1.2.1 app/controllers/concerns/foreman/controller/parameters/remote_execution_feature.rb
foreman_remote_execution-1.2.0 app/controllers/concerns/foreman/controller/parameters/remote_execution_feature.rb
foreman_remote_execution-1.1.1 app/controllers/concerns/foreman/controller/parameters/remote_execution_feature.rb
foreman_remote_execution-1.1.0 app/controllers/concerns/foreman/controller/parameters/remote_execution_feature.rb