Class: KuberKit::EnvFileReader::ArtifactFileReader

Inherits:
AbstractEnvFileReader show all
Defined in:
lib/kuber_kit/env_file_reader/artifact_file_reader.rb

Defined Under Namespace

Classes: Parser

Instance Method Summary collapse

Instance Method Details

#read(shell, env_file) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/kuber_kit/env_file_reader/artifact_file_reader.rb', line 6

def read(shell, env_file)
  artifact = artifact_store.get(env_file.artifact_name)

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

  read_file(shell, file_path)
end