class KubeDeployTools::ArtifactRegistry::Driver::Base

Public Class Methods

new(config:) click to toggle source
# File lib/kube_deploy_tools/artifact_registry/driver_base.rb, line 9
def initialize(config:)
  @config = config
end

Public Instance Methods

download(project:, build_number:, flavor:, name:, pre_apply_hook:, output_dir:) click to toggle source

download should retrieve the artifact namespaced with the given project and build number and identified by the name and flavor. The artifact should be put into the output directory. An optional pre-apply hook will process each artifact at the end.

# File lib/kube_deploy_tools/artifact_registry/driver_base.rb, line 25
def download(project:, build_number:, flavor:, name:, pre_apply_hook:, output_dir:)
  raise "#{self.class}#download not implemented"
end
get_latest_build_number(project) click to toggle source

get_latest_build_number should find the artifact from the most recent build

# File lib/kube_deploy_tools/artifact_registry/driver_base.rb, line 31
def get_latest_build_number(project)
  raise "#{self.class}#get_latest_build_number not implemented"
end
upload(local_dir:, name:, flavor:, project:, build_number:) click to toggle source

upload should publish the artifact identified by the given name and flavor in the input directory to the corresponding location in the artifact registry. The project and build number should be included in the namespace of the artifact registry path for this artifact.

# File lib/kube_deploy_tools/artifact_registry/driver_base.rb, line 17
def upload(local_dir:, name:, flavor:, project:, build_number:)
  raise "#{self.class}#publish not implemented"
end