Sha256: ca485c556be2673a3553e8d07992ca07d7f58d03e97c17e386683bf4d61e4328

Contents?: true

Size: 396 Bytes

Versions: 30

Compression:

Stored size: 396 Bytes

Contents

class KuberKit::TemplateReader::Strategies::ArtifactFile < KuberKit::TemplateReader::Strategies::Abstract
  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

30 entries across 30 versions & 1 rubygems

Version Path
kuber_kit-0.5.5 lib/kuber_kit/template_reader/strategies/artifact_file.rb
kuber_kit-0.5.4 lib/kuber_kit/template_reader/strategies/artifact_file.rb
kuber_kit-0.5.3 lib/kuber_kit/template_reader/strategies/artifact_file.rb
kuber_kit-0.5.2 lib/kuber_kit/template_reader/strategies/artifact_file.rb
kuber_kit-0.5.1 lib/kuber_kit/template_reader/strategies/artifact_file.rb
kuber_kit-0.5.0 lib/kuber_kit/template_reader/strategies/artifact_file.rb
kuber_kit-0.4.9 lib/kuber_kit/template_reader/strategies/artifact_file.rb
kuber_kit-0.4.8 lib/kuber_kit/template_reader/strategies/artifact_file.rb
kuber_kit-0.4.7 lib/kuber_kit/template_reader/strategies/artifact_file.rb
kuber_kit-0.4.6 lib/kuber_kit/template_reader/strategies/artifact_file.rb
kuber_kit-0.4.5 lib/kuber_kit/template_reader/strategies/artifact_file.rb
kuber_kit-0.4.4 lib/kuber_kit/template_reader/strategies/artifact_file.rb
kuber_kit-0.4.3 lib/kuber_kit/template_reader/strategies/artifact_file.rb
kuber_kit-0.4.2 lib/kuber_kit/template_reader/strategies/artifact_file.rb
kuber_kit-0.4.1 lib/kuber_kit/template_reader/strategies/artifact_file.rb
kuber_kit-0.4.0 lib/kuber_kit/template_reader/strategies/artifact_file.rb
kuber_kit-0.3.11 lib/kuber_kit/template_reader/strategies/artifact_file.rb
kuber_kit-0.3.10 lib/kuber_kit/template_reader/strategies/artifact_file.rb
kuber_kit-0.3.9 lib/kuber_kit/template_reader/strategies/artifact_file.rb
kuber_kit-0.3.8 lib/kuber_kit/template_reader/strategies/artifact_file.rb