Sha256: 59f4f45d3f1b8f9ab3d232e422ab5687a380faf715a44e71d524b8e5740c27bf

Contents?: true

Size: 392 Bytes

Versions: 18

Compression:

Stored size: 392 Bytes

Contents

class KuberKit::TemplateReader::ArtifactFileReader < KuberKit::TemplateReader::AbstractTemplateReader
  include KuberKit::Import[
    "core.artifact_store"
  ]

  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)

    shell.read(file_path)
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
kuber_kit-0.2.7 lib/kuber_kit/template_reader/artifact_file_reader.rb
kuber_kit-0.2.6 lib/kuber_kit/template_reader/artifact_file_reader.rb
kuber_kit-0.2.5 lib/kuber_kit/template_reader/artifact_file_reader.rb
kuber_kit-0.2.4 lib/kuber_kit/template_reader/artifact_file_reader.rb
kuber_kit-0.2.3 lib/kuber_kit/template_reader/artifact_file_reader.rb
kuber_kit-0.2.2 lib/kuber_kit/template_reader/artifact_file_reader.rb
kuber_kit-0.2.1 lib/kuber_kit/template_reader/artifact_file_reader.rb
kuber_kit-0.2.0 lib/kuber_kit/template_reader/artifact_file_reader.rb
kuber_kit-0.1.9 lib/kuber_kit/template_reader/artifact_file_reader.rb
kuber_kit-0.1.8 lib/kuber_kit/template_reader/artifact_file_reader.rb
kuber_kit-0.1.7 lib/kuber_kit/template_reader/artifact_file_reader.rb
kuber_kit-0.1.6 lib/kuber_kit/template_reader/artifact_file_reader.rb
kuber_kit-0.1.5 lib/kuber_kit/template_reader/artifact_file_reader.rb
kuber_kit-0.1.4 lib/kuber_kit/template_reader/artifact_file_reader.rb
kuber_kit-0.1.3 lib/kuber_kit/template_reader/artifact_file_reader.rb
kuber_kit-0.1.2 lib/kuber_kit/template_reader/artifact_file_reader.rb
kuber_kit-0.1.1 lib/kuber_kit/template_reader/artifact_file_reader.rb
kuber_kit-0.1.0 lib/kuber_kit/template_reader/artifact_file_reader.rb