Method: NexusCli::RepositoryActions#remove_from_group_repository
- Defined in:
- lib/nexus_cli/mixins/repository_actions.rb
#remove_from_group_repository(group_id, repository_to_remove_id) ⇒ Boolean
Removes the given [repository_to_remove_id] from the group repository, [group_id].
152 153 154 155 156 157 158 159 160 161 |
# File 'lib/nexus_cli/mixins/repository_actions.rb', line 152 def remove_from_group_repository(group_id, repository_to_remove_id) raise RepositoryNotInGroupException unless repository_in_group?(group_id, repository_to_remove_id) response = nexus.put(nexus_url("service/local/repo_groups/#{sanitize_for_id(group_id)}"), :body => create_remove_from_group_repository_json(group_id, repository_to_remove_id), :header => DEFAULT_CONTENT_TYPE_HEADER) case response.status when 200 return true else raise UnexpectedStatusCodeException.new(response.status) end end |