Project

General

Profile

« Previous | Next » 

Revision 7e51f146

Added by Partha Aji 25 days ago

Fixes #37415 - Add CLI support for repository verify checksum

View differences:

lib/hammer_cli_katello/product.rb
end
class UpdateProxyCommand < HammerCLIKatello::SingleResourceCommand
include HammerCLIForemanTasks::Async
desc _("Updates an HTTP Proxy for a product")
resource :products_bulk_actions, :update_http_proxy
command_name 'update-proxy'
......
build_options
end
class VerifyChecksumCommand < HammerCLIKatello::SingleResourceCommand
include HammerCLIForemanTasks::Async
desc _("Verify checksum for one or more products")
resource :products_bulk_actions, :verify_checksum_products
command_name 'verify-checksum'
success_message _("Verified checksum of product repositories with task %{id}.")
failure_message _("Could not verify checksum of repositories in the product")
validate_options do
option(:option_ids).required
end
build_options
end
class DeleteCommand < HammerCLIKatello::DeleteCommand
success_message _("Product destroyed.")
failure_message _("Could not destroy the product")

Also available in: Unified diff