Class: HammerCLIForemanPuppet::SmartClassParametersBriefList
- Inherits:
-
ListCommand
- Object
- HammerCLIForeman::ListCommand
- ListCommand
- HammerCLIForemanPuppet::SmartClassParametersBriefList
show all
- Defined in:
- lib/hammer_cli_foreman_puppet/smart_class_parameter.rb
Class Method Summary
collapse
Instance Method Summary
collapse
included
Class Method Details
.build_options_for(resource) ⇒ Object
23
24
25
26
27
28
29
|
# File 'lib/hammer_cli_foreman_puppet/smart_class_parameter.rb', line 23
def self.build_options_for(resource)
options = {}
options[:without] = [:host_id, :puppetclass_id, :environment_id, :hostgroup_id]
options[:expand] = {}
options[:expand][:except] = ([:hosts, :puppetclasses, :environments, :hostgroups] - [resource])
build_options(options)
end
|
Instance Method Details
#send_request ⇒ Object
15
16
17
18
19
20
21
|
# File 'lib/hammer_cli_foreman_puppet/smart_class_parameter.rb', line 15
def send_request
res = super
HammerCLI::Output::RecordCollection.new(res.uniq, :meta => res.meta)
end
|