Class: KuberKit::Core::ArtifactPathResolver

Inherits:
EnvFileReader::Strategies::Abstract show all
Defined in:
lib/kuber_kit/core/artifact_path_resolver.rb

Instance Method Summary collapse

Methods inherited from EnvFileReader::Strategies::Abstract

#read

Instance Method Details

#call(artifact_path) ⇒ Object



7
8
9
10
11
12
# File 'lib/kuber_kit/core/artifact_path_resolver.rb', line 7

def call(artifact_path)
  artifact = artifact_store.get(artifact_path.artifact_name)

  file_parts = [artifact.cloned_path, artifact_path.file_path].compact
  File.join(*file_parts)
end