Class: HammerCLIForeman::SmartClassParametersBriefList
- Inherits:
-
AssociatedResourceListCommand
- Object
- HammerCLI::Apipie::Command
- Command
- ListCommand
- AssociatedResourceListCommand
- HammerCLIForeman::SmartClassParametersBriefList
- Defined in:
- lib/hammer_cli_foreman/smart_class_parameter.rb
Direct Known Subclasses
Constant Summary
Constants inherited from ListCommand
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from AssociatedResourceListCommand
create_option_builder, parent_resource, #parent_resource, #request_params
Methods inherited from ListCommand
#adapter, command_name, #execute, #extend_data
Methods inherited from Command
connection_name, create_option_builder, #customized_options, #dependency_resolver, dependency_resolver, #get_identifier, #get_resource_id, #request_params, resolver, #resolver, resource_config, resource_name_mapping, #searchables, searchables
Class Method Details
.build_options(options = {}) ⇒ Object
23 24 25 26 |
# File 'lib/hammer_cli_foreman/smart_class_parameter.rb', line 23 def self.(={}) [:without] ||= [:host_id, :hostgroup_id, :puppetclass_id, :environment_id] super() end |
Instance Method Details
#send_request ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/hammer_cli_foreman/smart_class_parameter.rb', line 15 def send_request res = super # FIXME: API returns doubled records, probably just if filtered by puppetclasses # it seems group by environment is missing # having the uniq to fix that HammerCLI::Output::RecordCollection.new(res.uniq, :meta => res.) end |