cookbook 'artifactory_rest', '~> 0.4.0'
artifactory_rest (6) Versions 0.4.0 Follow3
Provides resources for interacting with the artifactory rest API
cookbook 'artifactory_rest', '~> 0.4.0', :supermarket
knife supermarket install artifactory_rest
knife supermarket download artifactory_rest
artifactory_rest-cookbook
This cookbook provides resources for interacting with the artifactory REST API
Supported Platforms
This is written in pure ruby so it supports all of teh platformz
Resources
artifactory_rest_gavc_download
This is basically remote_file
where the source is defined as Artifactory GAVC search parameters.
Attributes
Name | Type | Description | Default | Required |
---|---|---|---|---|
path | String | Path to which file be downloaded | n/a | yes |
endpoint | String | Artifactory instance URI | n/a | yes |
username | String | Artifactory username | n/a | no |
password | String | Artifactory password | n/a | no |
group_id | String | Group for GAVC search | n/a | yes |
artifact_id | String | Artifact for GAVC search | n/a | yes |
version | String | Version for GAVC search | n/a | yes |
classifier | String | Classifier for GAVC search | nil | no |
packaging | String | File extension of artifact | n/a | yes |
repository_keys | Array of strings | Repositories to search | n/a | yes |
Usage
The following will download the commons-io-2.4-sources.jar
file to /tmp/downloads
, assuming that Artifactory
at http://artifactory.mycompany.com/artifactory
has that artifact in its maven-central-cache
repository.
artifactory_rest_gavc_download '/tmp/downloads/commons-io-2.4-sources.jar' do # Required group_id 'commons-io' artifact_id 'commons-io' endpoint 'http://artifactory.mycompany.com/artifactory' version '2.*' repository_keys 'maven-central-cache' packaging 'jar' # Optional classifier 'sources' end
License and Authors
License: See the LICENSE file in this repository.
- Author:: Ryan Larson (ryan.mango.larson@gmail.com)
- Author:: Ben Jansen (aogail@w007.org)
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.4.0 failed this metric
Failure: Cookbook has 1 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.4.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.4.0 passed this metric
No Binaries Metric
0.4.0 failed this metric
Failure: Cookbook should not contain binaries. Found:
artifactory_rest/files/default/vendor/cache/artifactory-2.3.0.gem
Testing File Metric
0.4.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.4.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.4.0 failed this metric
0.4.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.4.0 passed this metric
No Binaries Metric
0.4.0 failed this metric
Failure: Cookbook should not contain binaries. Found:
artifactory_rest/files/default/vendor/cache/artifactory-2.3.0.gem
Testing File Metric
0.4.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.4.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.4.0 passed this metric
0.4.0 failed this metric
Failure: Cookbook should not contain binaries. Found:
artifactory_rest/files/default/vendor/cache/artifactory-2.3.0.gem
Testing File Metric
0.4.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.4.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.4.0 failed this metric
0.4.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number