Sha256: d69f81f7140f43859720bcfc487ccecdb0ddb8278143e33f74cecc5b40be82c9

Contents?: true

Size: 396 Bytes

Versions: 47

Compression:

Stored size: 396 Bytes

Contents

class KuberKit::TemplateReader::Strategies::ArtifactFile < KuberKit::TemplateReader::Strategies::Abstract
  include KuberKit::Import[
    "core.artifact_store"
  ]

  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
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
kuber_kit-0.6.1 lib/kuber_kit/template_reader/strategies/artifact_file.rb
kuber_kit-0.6.0 lib/kuber_kit/template_reader/strategies/artifact_file.rb
kuber_kit-0.5.10 lib/kuber_kit/template_reader/strategies/artifact_file.rb
kuber_kit-0.5.9 lib/kuber_kit/template_reader/strategies/artifact_file.rb
kuber_kit-0.5.8 lib/kuber_kit/template_reader/strategies/artifact_file.rb
kuber_kit-0.5.7 lib/kuber_kit/template_reader/strategies/artifact_file.rb
kuber_kit-0.5.6 lib/kuber_kit/template_reader/strategies/artifact_file.rb