Sha256: c9d71bc7d717b62982a6e4d6b5c03b9540cc233f1f0e418c42142804947c2021

Contents?: true

Size: 1.09 KB

Versions: 7

Compression:

Stored size: 1.09 KB

Contents

# artifactory_urls.sh
############
# This section sets up the information for a build to be installed from artifactory
#  then uses $platform, $platform_version and $machine to select the correct
#  version.
#
# Inputs:
# $platform:
# $platform_version:
# $machine:
#
# Outputs:
# $download_url:
# $sha256:
# $md5:
############

<% artifacts.each do |artifact| %>
  artifact_info_dir="$tmp_dir/artifact_info/<%= File.join(artifact.platform, artifact.platform_version, artifact.architecture)%>"
  mkdir -p $artifact_info_dir
  touch "$artifact_info_dir/artifact_info"
  echo "url <%= artifact.url%>" >> "$artifact_info_dir/artifact_info"
  echo "md5 <%= artifact.md5%>" >> "$artifact_info_dir/artifact_info"
  echo "sha256 <%= artifact.sha256%>" >> "$artifact_info_dir/artifact_info"
<% end %>

artifact_info_for_platform="$tmp_dir/artifact_info/$platform/$platform_version/$machine/artifact_info"

download_url=`awk '$1 == "url" { print $2 }' "$artifact_info_for_platform"`
sha256=`awk '$1 == "sha256" { print $2 }' "$artifact_info_for_platform"`
md5=`awk '$1 == "md5" { print $2 }' "$artifact_info_for_platform"`

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
mixlib-install-0.8.0.alpha.7 lib/mixlib/install/generator/bourne/scripts/artifactory_urls.sh.erb
wjordan-mixlib-install-0.8.0.fork.7 lib/mixlib/install/generator/bourne/scripts/artifactory_urls.sh.erb
wjordan-mixlib-install-0.8.0.alpha.6 lib/mixlib/install/generator/bourne/scripts/artifactory_urls.sh.erb
mixlib-install-0.8.0.alpha.6 lib/mixlib/install/generator/bourne/scripts/artifactory_urls.sh.erb
mixlib-install-0.8.0.alpha.5 lib/mixlib/install/generator/bourne/scripts/artifactory_urls.sh.erb
mixlib-install-0.8.0.alpha.4 lib/mixlib/install/generator/bourne/scripts/artifactory_urls.sh.erb
mixlib-install-0.8.0.alpha.3 lib/mixlib/install/generator/bourne/scripts/artifactory_urls.sh.erb