Method: Pkg::ManageArtifactory#download_beta_pe_tarballs

Defined in:
lib/packaging/artifactory.rb

#download_beta_pe_tarballs(beta_tag, repo, remote_path, local_path) ⇒ Object

Download beta pe tarballs to local path based on tag, repo, and path on artifactory

Parameters:

  • beta_tag (String)

    rc tag of beta release ex. 2019.2.0-rc10

  • repo (String)

    repo the tarballs live

  • remote_path (String)

    path to tarballs in the repo

  • local_path (String)

    local path to download tarballs to



554
555
556
557
558
559
560
561
# File 'lib/packaging/artifactory.rb', line 554

def download_beta_pe_tarballs(beta_tag, repo, remote_path, local_path)
  check_authorization
  pattern = "#{remote_path}/*-#{beta_tag}-*"
  artifacts = Artifactory::Resource::Artifact.pattern_search(repo: repo, pattern: pattern)
  artifacts.each do |artifact|
    artifact.download(local_path)
  end
end