Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

RSS

do_artifactory (5) Versions 0.1.4

A utility cookbook for installing the artifactory gem, finding an artifact and returning its location or changing its properties.

Berkshelf/Librarian
Policyfile
Knife
cookbook 'do_artifactory', '~> 0.1.4'
cookbook 'do_artifactory', '~> 0.1.4', :supermarket
knife cookbook site install do_artifactory
knife cookbook site download do_artifactory
README
Dependencies
Changelog
Quality 44%

do_artifactory

Series of resources for using artifactory with Chef

Resources

artifact

Properties

Name Description Property Modifiers Type
endpoint Artifactory server url name property String
username Artifactory credentials, username optional String
password Artifactory credentials, password optional String
search_type Search type to find artifact. Valid properties are 'name' or any value contained in property checksums n/a String
search Search term to find artifact. Either the name or checksum, as specified by search_type n/a String
destination Directory for artifact to be downloaded to default: Chef::Config['file_cache_path'] String
property_hash Hash of properties to add or replace if they already exist optional Hash{String => String}
download_path Location artifact is downloaded to Identity String
checksums Valid values for search_type (other than 'name') default ['md5', 'sha1'] Array[String]

Actions

Name Description Default?
:search Find and download artifact by name or checksum, returns location downloaded to Yes
:update_properties Search artifactory then merge the property_hash with the artifact's properties and save on Artifactory server. Requires property_hash to not be empty. Only adds or modifies No

Usage

artifact = do_artifactory_artifact 'http://artifactory.mycompany.com' do
  username 'my_user'
  password 'my_password'
  search_type 'sha256'
  search '3915ed48d8764758bacb5aa9f15cd276'
  destination '/my_artifacts/this_artifact_type'
  checksums %w(sha256 sha1 md5)
end
artifact.run_action(:search)
# #run_action forces the resource to run during the compile step, populating its properties for use during the compile phase.
puts "artifact exists at #{artifact.download_path}"
do_artifactory_artifact 'http://artifactory.mycompany.com' do
  username 'my_user'
  password 'my_password'
  search_type 'sha256'
  search '3915ed48d8764758bacb5aa9f15cd276'
  property_hash {'chef.cookbook.download_date' => Time.now.utc, 'it.hasbeen.downloaded' => 'true'}
  checksums %w(sha256 sha1 md5)
  action :update_properties
end
``

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Release 0.1.4 2015/5/13

  • Fixed issue with log guard receiving bool instead of String
  • Updated readme to show how to get around timing issues

Release 0.1.3 2015/5/11

  • Removed gem resource
  • Fixed readme example
  • Minor fix to log resources in artifact resource
  • Fixed download_path to display the location of the downloaded artifact

Release 0.1.2 2016/5/10

  • Version bump for more minor format changes

Release 0.1.1 2016/5/10

  • Added support information to metadata.rb
  • Corrected README and changelog

Release 0.1.0 2016/5/10

  • Initial commit

Collaborator Number Metric
            

0.1.4 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

0.1.4 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.1.4 failed this metric

FC066: Ensure chef_version is set in metadata: do_artifactory/metadata.rb:1
FC070: Ensure supports metadata defines valid platforms: do_artifactory/metadata.rb:1
Run with Foodcritic Version 12.2.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric
            

0.1.4 passed this metric

No Binaries Metric
            

0.1.4 passed this metric

Publish Metric
            

0.1.4 passed this metric

Supported Platforms Metric
            

0.1.4 passed this metric

Testing File Metric
            

0.1.4 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.1.4 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