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 included from ResolverCommons
Instance Method Details
#host_collection_options ⇒ Object
67 68 69 70 71 72 73 74 |
# File 'lib/hammer_cli_katello/host_collection.rb', line 67 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
76 77 78 79 80 81 82 83 84 85 |
# File 'lib/hammer_cli_katello/host_collection.rb', line 76 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 |