Revision 1b842fce
Added by Oleh Fedorenko almost 6 years ago
lib/hammer_cli_katello/host_subscription.rb | ||
---|---|---|
resource :host_subscriptions, :destroy
|
||
command_name "unregister"
|
||
|
||
success_message _("Host unregistered")
|
||
success_message _("Host unregistered.")
|
||
failure_message _("Could not unregister the host")
|
||
|
||
build_options
|
||
... | ... | |
|
||
resource :host_subscriptions, :create
|
||
command_name "register"
|
||
success_message _("Host successfully registered")
|
||
success_message _("Host successfully registered.")
|
||
failure_message _("Failed to register host")
|
||
|
||
build_options do |o|
|
||
... | ... | |
class AddSubscriptions < HammerCLIKatello::SingleResourceCommand
|
||
resource :host_subscriptions, :add_subscriptions
|
||
command_name "attach"
|
||
success_message _("Subscription attached to the host successfully")
|
||
success_message _("Subscription attached to the host successfully.")
|
||
failure_message _("Failed to attach subscriptions to the host")
|
||
|
||
option "--subscription-id", "SUBSCRIPTION_ID", _("ID of subscription"),
|
||
... | ... | |
class AutoAttachSubscriptions < HammerCLIKatello::SingleResourceCommand
|
||
resource :host_subscriptions, :auto_attach
|
||
command_name "auto-attach"
|
||
success_message _("Auto attached subscriptions to the host successfully")
|
||
success_message _("Auto attached subscriptions to the host successfully.")
|
||
failure_message _("Failed to auto attach subscriptions to the host")
|
||
|
||
build_options
|
||
... | ... | |
class RemoveSubscriptions < HammerCLIKatello::SingleResourceCommand
|
||
resource :host_subscriptions, :remove_subscriptions
|
||
command_name "remove"
|
||
success_message _("Subscription removed from the host successfully")
|
||
success_message _("Subscription removed from the host successfully.")
|
||
failure_message _("Failed to remove subscriptions from the host")
|
||
|
||
option "--subscription-id", "SUBSCRIPTION_ID", _("ID of subscription"),
|
Also available in: Unified diff
Fixes #7451 - Review whitespace in extracted strings (#536)