Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes 37235 - Add verify-checksum command for CV versions in hammer #932

Merged
merged 1 commit into from
Mar 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 Content View Version repositories 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