Class: HammerCLIKatello::HostCollection::HostsCommand
- Inherits:
-
ListCommand
- Object
- HammerCLIForeman::ListCommand
- ListCommand
- HammerCLIKatello::HostCollection::HostsCommand
- Defined in:
- lib/hammer_cli_katello/host_collection.rb
Instance Method Summary collapse
Methods inherited from ListCommand
Methods included from ResolverCommons
Instance Method Details
#host_collection_options ⇒ Object
87 88 89 90 91 92 93 94 |
# File 'lib/hammer_cli_katello/host_collection.rb', line 87 def { "option_name" => option_host_collection_name, "option_organization_name" => option_organization_name, "option_organization_id" => option_organization_id, "option_organization_label" => option_organization_label } end |
#request_params ⇒ Object
96 97 98 99 100 101 102 103 104 105 |
# File 'lib/hammer_cli_katello/host_collection.rb', line 96 def request_params params = super host_collection_id = option_host_collection_id unless option_host_collection_name.nil? host_collection_id = resolver.host_collection_id( .merge(resolver.("host_collection", ))) end params['search'] = "host_collection_id=#{host_collection_id}" params end |