Module: Foreman::Controller::Parameters::DiscoveredHost

Extended by:
ActiveSupport::Concern
Includes:
Host, ForemanPuppet::Extensions::ParametersHost
Included in:
Api::V2::DiscoveredHostsController, DiscoveredHostsController
Defined in:
app/controllers/concerns/foreman/controller/parameters/discovered_host.rb

Instance Method Summary collapse

Instance Method Details

#discovered_host_paramsObject



20
21
22
23
24
# File 'app/controllers/concerns/foreman/controller/parameters/discovered_host.rb', line 20

def discovered_host_params
  filtered_params = self.class.discovered_host_params_filter.filter_params(params, parameter_filter_context)
  process_deprecated_puppet_params!(filtered_params) if defined?(ForemanPuppet)
  filtered_params
end

#discovered_host_params_hostObject



26
27
28
29
30
# File 'app/controllers/concerns/foreman/controller/parameters/discovered_host.rb', line 26

def discovered_host_params_host
  filtered_params = self.class.discovered_host_params_filter.filter_params(params, parameter_filter_context, :host)
  process_deprecated_puppet_params!(filtered_params) if defined?(ForemanPuppet)
  filtered_params
end

#managed_host_paramsObject



38
39
40
41
42
# File 'app/controllers/concerns/foreman/controller/parameters/discovered_host.rb', line 38

def managed_host_params
  filtered_params = self.class.host_params_filter.filter_params(params, parameter_filter_context)
  process_deprecated_puppet_params!(filtered_params) if defined?(ForemanPuppet)
  filtered_params
end

#managed_host_params_hostObject



32
33
34
35
36
# File 'app/controllers/concerns/foreman/controller/parameters/discovered_host.rb', line 32

def managed_host_params_host
  filtered_params = self.class.host_params_filter.filter_params(params, parameter_filter_context, :host)
  process_deprecated_puppet_params!(filtered_params) if defined?(ForemanPuppet)
  filtered_params
end