Class: KuberKit::EnvFileReader::Strategies::ArtifactFile
- Defined in:
- lib/kuber_kit/env_file_reader/strategies/artifact_file.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/strategies/artifact_file.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 |