Revision 1b842fce
Added by Oleh Fedorenko almost 6 years ago
lib/hammer_cli_katello/associating_commands.rb | ||
---|---|---|
validator.any(:option_repository_id, :option_repository_name).required
|
||
end
|
||
|
||
success_message _("The repository has been associated")
|
||
success_message _("The repository has been associated.")
|
||
failure_message _("Could not add repository")
|
||
end
|
||
|
||
... | ... | |
validator.any(:option_repository_id, :option_repository_name).required
|
||
end
|
||
|
||
success_message _("The repository has been removed")
|
||
success_message _("The repository has been removed.")
|
||
failure_message _("Could not remove repository")
|
||
end
|
||
end
|
||
... | ... | |
command_name 'add-host-collection'
|
||
associated_resource :host_collections
|
||
|
||
success_message _("The host collection has been associated")
|
||
success_message _("The host collection has been associated.")
|
||
failure_message _("Could not add host collection")
|
||
end
|
||
|
||
... | ... | |
command_name 'remove-host-collection'
|
||
associated_resource :host_collections
|
||
|
||
success_message _("The host collection has been removed")
|
||
success_message _("The host collection has been removed.")
|
||
failure_message _("Could not remove host collection")
|
||
end
|
||
end
|
||
... | ... | |
command_name 'add-host'
|
||
associated_resource :hosts
|
||
|
||
success_message _("The host has been added")
|
||
success_message _("The host has been added.")
|
||
failure_message _("Could not add host")
|
||
end
|
||
|
||
... | ... | |
command_name 'remove-host'
|
||
associated_resource :hosts
|
||
|
||
success_message _("The host has been removed")
|
||
success_message _("The host has been removed.")
|
||
failure_message _("Could not remove host")
|
||
end
|
||
end
|
Also available in: Unified diff
Fixes #7451 - Review whitespace in extracted strings (#536)