module Artifactory::Resource::Repository::ClassMethods

Defined in:

artifactory/resources/repository.cr

Instance Method Summary

Instance Method Detail

def all(options : Resource::Options = Resource::Options.new) #

Get a list of all repositories in the system.

@param [Hash] options the list of options

@return [ArrayResource::Repository] the list of builds


[View source]
def find(name, options : Resource::Options = Resource::Options.new) #

Find (fetch) a repository by name.

@example Find a repository by named key Repository.find(name: 'libs-release-local') #=> #Resource::Artifact

@param [Hash] options the list of options

@option options [String] :name the name of the repository to find @option options [Artifactory::Client] :client the client object to make the request with

@return [Resource::Repository, nil] an instance of the repository that matches the given name, or +nil+ if one does not exist


[View source]