Method: ArtifactoryExtensions::ClassMethods#checksum_search
- Defined in:
- lib/packaging/artifactory/extensions.rb
#checksum_search(options = {}) ⇒ Object
This adds the ‘name` option to artifactory checksum search. It defaults to unset. If set, the artifact is only returned if the download uri matches the passed name
73 74 75 76 77 78 79 |
# File 'lib/packaging/artifactory/extensions.rb', line 73 def checksum_search( = {}) artifacts = super if [:name] artifacts.select! { |artifact| File.basename(artifact.download_uri) == [:name] } end artifacts end |