Project

General

Profile

« Previous | Next » 

Revision 97760408

Added by Bryan Kearney about 10 years ago

Pattern is commnad-name not command_name.

View differences:

lib/hammer_cli_katello/product.rb
identifiers :id, :sync_plan_id
desc _("Assign sync plan to product.")
command_name "set_sync_plan"
command_name "set-sync-plan"
success_message _("Synchronization plan assigned.")
failure_message _("Could not assign synchronization plan.")
......
identifiers :id, :sync_plan_id
desc _("Delete assignment sync plan and product.")
command_name "remove_sync_plan"
command_name "remove-sync-plan"
success_message _("Synchronization plan removed.")
failure_message _("Could not remove synchronization plan.")
lib/hammer_cli_katello/provider.rb
class RefreshManifestCommand < HammerCLIKatello::WriteCommand
action "refresh_manifest"
command_name "refresh_manifest"
command_name "refresh-manifest"
success_message _("Manifest is being refreshed")
failure_message _("Could not refresh the manifest")
......
class DeleteManifestCommand < HammerCLIKatello::DeleteCommand
action "delete_manifest"
command_name "delete_manifest"
command_name "delete-manifest"
success_message _("Manifest deleted")
failure_message _("Could not delete the manifest")
lib/hammer_cli_katello/subscription.rb
class DeleteManfiestCommand < HammerCLIForemanTasks::AsyncCommand
resource :subscriptions, :delete_manifest
command_name "delete_manifest"
command_name "delete-manifest"
success_message _("Manifest is being deleted in task %{id}s")
failure_message _("Manifest deletion failed")
......
class RefreshManfiestCommand < HammerCLIForemanTasks::AsyncCommand
resource :subscriptions, :refresh_manifest
command_name "refresh_manifest"
command_name "refresh-manifest"
success_message _("Manifest is being refreshed in task %{id}s")
failure_message _("Manifest refresh failed")

Also available in: Unified diff