Method: NexusCli::RepositoryActions#delete_group_repository

Defined in:
lib/nexus_cli/mixins/repository_actions.rb

#delete_group_repository(group_id) ⇒ Boolean

Deletes the given group repository.

Parameters:

  • group_id (String)

    the group repository to delete

Returns:

  • (Boolean)

    true if the group repository is deleted, false otherwise



168
169
170
171
172
173
174
175
176
177
178
# File 'lib/nexus_cli/mixins/repository_actions.rb', line 168

def delete_group_repository(group_id)
  response = nexus.delete(nexus_url("service/local/repo_groups/#{sanitize_for_id(group_id)}"))
  case response.status
  when 204
    return true
  when 404
    raise RepositoryNotFoundException
  else
    raise UnexpectedStatusCodeException.new(response.status)
  end
end