Skip to content

Commit

Permalink
Fixes #37311 - Add capsule content repair command
Browse files Browse the repository at this point in the history
  • Loading branch information
sjha4 committed Mar 29, 2024
1 parent a6bbddd commit 7d27f94
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions lib/hammer_cli_katello/capsule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,26 @@ class UpdateCountsCommand < HammerCLIKatello::SingleResourceCommand
build_options
end

class VerifyChecksumCommand < HammerCLIKatello::SingleResourceCommand
include HammerCLIForemanTasks::Async
include LifecycleEnvironmentNameMapping

resource :capsule_content, :verify_checksum
command_name "verify-checksum"

success_message _("Capsule content checksum is being verified in task %{id}.")
failure_message _("Could not verify capsule content checksum")

option "--organization-id", "ID", _("Organization ID"),
:attribute_name => :option_organization_id
option "--organization", "NAME", _("Organization name"),
:attribute_name => :option_organization_name

build_options

extend_with(HammerCLIKatello::CommandExtensions::LifecycleEnvironment.new)
end

class SyncStatusCommand < HammerCLIKatello::InfoCommand
resource :capsule_content, :sync_status
command_name "synchronization-status"
Expand Down

0 comments on commit 7d27f94

Please sign in to comment.