Revision 1b842fce
Added by Oleh Fedorenko almost 6 years ago
lib/hammer_cli_katello/host_collection.rb | ||
---|---|---|
end
|
||
end
|
||
|
||
success_message _("Host collection created")
|
||
success_message _("Host collection created.")
|
||
failure_message _("Could not create the host collection")
|
||
|
||
build_options
|
||
... | ... | |
|
||
option "--new-name", "NEW_NAME", _("New host collection name"), required: true
|
||
|
||
success_message _("New host collection created")
|
||
success_message _("New host collection created.")
|
||
failure_message _("Could not create the new host collection")
|
||
|
||
def request_params
|
||
... | ... | |
end
|
||
|
||
class UpdateCommand < HammerCLIKatello::UpdateCommand
|
||
success_message _("Host collection updated")
|
||
success_message _("Host collection updated.")
|
||
failure_message _("Could not update the the host collection")
|
||
|
||
build_options { |o| o.expand(:all).including(:organizations) }
|
||
... | ... | |
class DeleteCommand < HammerCLIKatello::DeleteCommand
|
||
resource :host_collections, :destroy
|
||
|
||
success_message _("Host collection deleted")
|
||
success_message _("Host collection deleted.")
|
||
failure_message _("Could not delete the host collection")
|
||
|
||
build_options { |o| o.expand(:all).including(:organizations) }
|
||
... | ... | |
command_name 'add-host'
|
||
action :add_hosts
|
||
|
||
success_message _("The host(s) has been added")
|
||
success_message _("The host(s) has been added.")
|
||
failure_message _("Could not add host(s)")
|
||
|
||
build_options { |o| o.expand(:all).including(:organizations) }
|
||
... | ... | |
command_name 'remove-host'
|
||
action :remove_hosts
|
||
|
||
success_message _("The host(s) has been removed")
|
||
success_message _("The host(s) has been removed.")
|
||
failure_message _("Could not remove host(s)")
|
||
|
||
build_options { |o| o.expand(:all).including(:organizations) }
|
Also available in: Unified diff
Fixes #7451 - Review whitespace in extracted strings (#536)