Class: HammerCLIForeman::Hostgroup::PuppetClassesCommand

Inherits:
ListCommand
  • Object
show all
Defined in:
lib/hammer_cli_foreman/hostgroup.rb

Constant Summary

Constants inherited from ListCommand

ListCommand::DEFAULT_PER_PAGE

Instance Method Summary collapse

Methods inherited from ListCommand

#adapter, command_name, #execute, #extend_data

Methods inherited from Command

build_options, connection_name, create_option_builder, #customized_options, #dependency_resolver, dependency_resolver, #get_identifier, #get_resource_id, resolver, #resolver, resource_config, resource_name_mapping, #searchables, searchables

Instance Method Details

#request_paramsObject



111
112
113
114
115
# File 'lib/hammer_cli_foreman/hostgroup.rb', line 111

def request_params
  params = super
  params['hostgroup_id'] = get_identifier
  params
end

#send_requestObject



107
108
109
# File 'lib/hammer_cli_foreman/hostgroup.rb', line 107

def send_request
  HammerCLIForeman::PuppetClass::ListCommand.unhash_classes(super)
end