Class: ArtRest::Repository

Inherits:
Resources show all
Defined in:
lib/artrest/repository.rb

Overview

Represents an Artifactory repository resource.

IMPORTANT This is not the Repository Configuration resource as this would require Artifactory Pro. It is rather a repository’s top-level folder “/”.

Example

libs_releas_local = ArtRest::Repository.new('http://localhost:8081/artifactory/api/storage/libs-release-local', { ... })

Class Method Summary collapse

Methods inherited from Resources

#each, resources_creator=

Methods inherited from Resource

#[], #base_url, check_options, #content, #content!, #content=, create, inherited, #initialize, mime_type=, resource_attributes, #unparsed_content

Constructor Details

This class inherits a constructor from ArtRest::Resource

Class Method Details

.matches_path(path, options) ⇒ Object

:nodoc:



19
20
21
# File 'lib/artrest/repository.rb', line 19

def matches_path(path, options) # :nodoc:
    path =~ %r|^/api/storage/[a-zA-Z+-._]+/?$|
end