Method: NexusCli::RepositoryActions#create_group_repository
- Defined in:
- lib/nexus_cli/mixins/repository_actions.rb
#create_group_repository(name, id, provider) ⇒ Boolean
Creates a group repository with the given name.
81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/nexus_cli/mixins/repository_actions.rb', line 81 def create_group_repository(name, id, provider) response = nexus.post(nexus_url("service/local/repo_groups"), :body => create_group_repository_json(name, id, provider), :header => DEFAULT_CONTENT_TYPE_HEADER) case response.status when 201 return true when 400 raise CreateRepsitoryException.new(response.content) else raise UnexpectedStatusCodeException.new(response.status) end end |