Revision 709f7efd
Added by Bryan Kearney over 10 years ago
lib/hammer_cli_katello/product.rb | ||
---|---|---|
end
|
||
|
||
class InfoCommand < HammerCLIKatello::InfoCommand
|
||
include HammerCLIKatello::ScopedNameCommand
|
||
|
||
output do
|
||
field :id, "Product ID"
|
||
field :name, "Name"
|
||
... | ... | |
end
|
||
end
|
||
|
||
apipie_options
|
||
end
|
||
|
||
class UpdateCommand < HammerCLIKatello::UpdateCommand
|
||
... | ... | |
end
|
||
|
||
class DeleteCommand < HammerCLIKatello::DeleteCommand
|
||
include HammerCLIKatello::ScopedNameCommand
|
||
success_message "Product destroyed"
|
||
failure_message "Could not destroy the product"
|
||
|
Also available in: Unified diff
Add name/orgid lookup to info and delete commands
To test this you will need https://github.com/Katello/katello/pull/3724
or to pass in the product name as all lowercase.