-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #36589 - Added support for calling ACS bulk actions through ham…
…mer.
- Loading branch information
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
module HammerCLIKatello | ||
class AcsBulkActionsCommand < HammerCLIKatello::Command | ||
desc 'Modify alternate content sources in bulk' | ||
resource :alternate_content_sources_bulk_actions | ||
|
||
class RefreshAllCommand < HammerCLIKatello::SingleResourceCommand | ||
action :refresh_all_alternate_content_sources | ||
command_name 'refresh-all' | ||
desc _("Refresh all alternate content sources") | ||
success_message _("Successfully refreshed all alternate content sources") | ||
failure_message _("Could not refresh all alternate content sources") | ||
|
||
build_options | ||
end | ||
|
||
class RefreshCommand < HammerCLIKatello::SingleResourceCommand | ||
action :refresh_alternate_content_sources | ||
command_name 'refresh' | ||
desc _("Refresh alternate content sources") | ||
success_message _("Successfully refreshed specified alternate content sources") | ||
failure_message _("Could not refresh the specified alternate content sources") | ||
|
||
build_options | ||
end | ||
|
||
class DestroyCommand < HammerCLIKatello::SingleResourceCommand | ||
action :destroy_alternate_content_sources | ||
command_name 'destroy' | ||
desc _("Destroy alternate content sources") | ||
success_message _("Sucessfully destroyed specified alternate content sources") | ||
failure_message _("Could not destroy the specified alternate content sources") | ||
|
||
build_options | ||
end | ||
|
||
autoload_subcommands | ||
end | ||
end |