Sha256: b6c1f46a665f9900550fcabddb721d2bf262f7acec44c70b0e1e33577618211f

Contents?: true

Size: 535 Bytes

Versions: 57

Compression:

Stored size: 535 Bytes

Contents

class KuberKit::EnvFileReader::EnvFileTempfileCreator
  include KuberKit::Import[
    "env_file_reader.reader",
    "configs"
  ]

  Contract KuberKit::Shell::AbstractShell, KuberKit::Core::EnvFiles::AbstractEnvFile => String
  def call(shell, env_file)
    env_file_hash = reader.read(shell, env_file)
    env_file_raw  = env_file_hash.to_a.map{|k,v| "#{k}=#{v}"}.join("\r\n")
    temp_file_path = File.join(configs.env_file_compile_dir, env_file.uniq_name)

    shell.write(temp_file_path, env_file_raw)

    temp_file_path
  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/env_file_tempfile_creator.rb
kuber_kit-0.8.3 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-0.8.2 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-0.8.1 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-0.8.0 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-0.7.1 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-0.7.0 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-0.6.4 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-0.6.3 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-0.6.2 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-0.6.1 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-0.6.0 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-0.5.10 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-0.5.9 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-0.5.8 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-0.5.7 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-0.5.6 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb