Class: HammerCLIKatello::RepositorySetCommand::AvailableRepositoriesCommand

Inherits:
ListCommand
  • Object
show all
Defined in:
lib/hammer_cli_katello/repository_set.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from HammerCLIKatello::ResolverCommons

included

Class Method Details

.custom_option_buildersObject

We need to define custom_option_builders and request_params to be able to resolve the –name to –id for repository set



52
53
54
# File 'lib/hammer_cli_katello/repository_set.rb', line 52

def self.custom_option_builders
  super + [HammerCLIForeman::SearchablesOptionBuilder.new(resource, searchables)]
end

Instance Method Details

#request_paramsObject



56
57
58
# File 'lib/hammer_cli_katello/repository_set.rb', line 56

def request_params
  super.update('id' => get_identifier)
end