Class: KuberKit::TemplateReader::Strategies::ArtifactFile
- Defined in:
- lib/kuber_kit/template_reader/strategies/artifact_file.rb
Instance Method Summary collapse
Instance Method Details
#read(shell, template) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/kuber_kit/template_reader/strategies/artifact_file.rb', line 7 def read(shell, template) artifact = artifact_store.get(template.artifact_name) file_parts = [artifact.cloned_path, template.file_path].compact file_path = File.join(*file_parts) shell.read(file_path) end |