Skip to content

Commit

Permalink
Fixes 37235 - Add verify-checksum command for CV versions in hammer
Browse files Browse the repository at this point in the history
  • Loading branch information
sjha4 committed Mar 8, 2024
1 parent 19ea6f3 commit 7257021
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/hammer_cli_katello/content_view_version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,19 @@ class RepublishRepositoriesCommand < HammerCLIKatello::SingleResourceCommand
end
end

class VerifyChecksum < HammerCLIKatello::SingleResourceCommand
include HammerCLIForemanTasks::Async

action :verify_checksum
command_name "verify-checksum"

success_message _("Verifying checksum of repositories in Content View Version with task %{id}.")
failure_message _("Could not verify checksum of repositories in the Content View Version")
build_options do |o|
o.expand(:all).including(:content_views, :organizations)
end
end

class PromoteCommand < HammerCLIKatello::SingleResourceCommand
include HammerCLIForemanTasks::Async
include LifecycleEnvironmentNameMapping
Expand Down

0 comments on commit 7257021

Please sign in to comment.