Sha256: 0496aaec3701ddcd1bf91e448a32fe9d14231a38c0c0cf711cae10cdf1cf3aad

Contents?: true

Size: 612 Bytes

Versions: 57

Compression:

Stored size: 612 Bytes

Contents

class KuberKit::EnvFileReader::Strategies::EnvGroup < KuberKit::EnvFileReader::Strategies::Abstract
  include KuberKit::Import[
    "env_file_reader.strategies.artifact_file",
    "core.env_file_store",
  ]

  def read(shell, env_group)
    content = {}
    env_group.env_files.each do |env_file_name|
      env_file = env_file_store.get(env_file_name)

      if env_file.is_a?(KuberKit::Core::EnvFiles::EnvGroup)
        raise "EnvGroup inside another EnvGroup is not supported"
      end

      result   = artifact_file.read(shell, env_file)
      content  = content.merge(result)
    end
    content
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
kuber_kit-0.8.4 lib/kuber_kit/env_file_reader/strategies/env_group.rb
kuber_kit-0.8.3 lib/kuber_kit/env_file_reader/strategies/env_group.rb
kuber_kit-0.8.2 lib/kuber_kit/env_file_reader/strategies/env_group.rb
kuber_kit-0.8.1 lib/kuber_kit/env_file_reader/strategies/env_group.rb
kuber_kit-0.8.0 lib/kuber_kit/env_file_reader/strategies/env_group.rb
kuber_kit-0.7.1 lib/kuber_kit/env_file_reader/strategies/env_group.rb
kuber_kit-0.7.0 lib/kuber_kit/env_file_reader/strategies/env_group.rb
kuber_kit-0.6.4 lib/kuber_kit/env_file_reader/strategies/env_group.rb
kuber_kit-0.6.3 lib/kuber_kit/env_file_reader/strategies/env_group.rb
kuber_kit-0.6.2 lib/kuber_kit/env_file_reader/strategies/env_group.rb
kuber_kit-0.6.1 lib/kuber_kit/env_file_reader/strategies/env_group.rb
kuber_kit-0.6.0 lib/kuber_kit/env_file_reader/strategies/env_group.rb
kuber_kit-0.5.10 lib/kuber_kit/env_file_reader/strategies/env_group.rb
kuber_kit-0.5.9 lib/kuber_kit/env_file_reader/strategies/env_group.rb
kuber_kit-0.5.8 lib/kuber_kit/env_file_reader/strategies/env_group.rb
kuber_kit-0.5.7 lib/kuber_kit/env_file_reader/strategies/env_group.rb
kuber_kit-0.5.6 lib/kuber_kit/env_file_reader/strategies/env_group.rb