Class: ArtRest::Builds
- 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
-
.get(base_url, options) ⇒ Object
Shortcut method to retrieve the ArtRest::Builds instance.
-
.matches_path(path, options) ⇒ Object
:nodoc:.
Methods inherited from Resources
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, ) Builds.new("#{base_url}/api/build", ) end |
.matches_path(path, options) ⇒ Object
:nodoc:
31 32 33 |
# File 'lib/artrest/builds.rb', line 31 def matches_path(path, ) # :nodoc: path =~ %r|^/api/build/?$| end |