lib/mixlib/install/backend/artifactory.rb in mixlib-install-1.0.10 vs lib/mixlib/install/backend/artifactory.rb in mixlib-install-1.0.11
- old
+ new
@@ -40,28 +40,15 @@
# Create filtered list of artifacts
#
# @return [Array<ArtifactInfo>] list of artifacts for the configured
# channel, product name, and product version.
- # @return [ArtifactInfo] arifact info for the configured
- # channel, product name, product version and platform info
- #
- def info
- artifacts = if options.latest_version?
- artifactory_latest
- else
- artifactory_artifacts(options.product_version)
- end
-
- if options.platform
- artifacts.select! do |a|
- a.platform == options.platform &&
- a.platform_version == options.platform_version &&
- a.architecture == options.architecture
- end
+ def available_artifacts
+ if options.latest_version?
+ artifactory_latest
+ else
+ artifactory_artifacts(options.product_version)
end
-
- artifacts.length == 1 ? artifacts.first : artifacts
end
#
# Get artifacts for the latest version, channel and product_name
#