Class: ArtRest::Builds

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

Overview

Represents an Artifactory All Builds resource.

Example

allBuilds = ArtRest::Builds.new('http://localhost:8081/artifactory/api/build', { ... })

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

.get(base_url, options) ⇒ Object

Shortcut method to retrieve the ArtRest::Builds instance.

  • Args :

    • base_url -> Our Artifactory server’s base URL

    • options -> A Hash containing username and password

  • Returns :

    • The ArtRest::Builds instance representing the collection of all Artifactory builds



27
28
29
# File 'lib/artrest/builds.rb', line 27

def get(base_url, options)
    Builds.new("#{base_url}/api/build", options)
end

.matches_path(path, options) ⇒ Object

:nodoc:



31
32
33
# File 'lib/artrest/builds.rb', line 31

def matches_path(path, options) # :nodoc:
    path =~ %r|^/api/build/?$|
end