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-1.1.2 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-1.2.1 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-1.2.0 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-1.1.1 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-1.0.1 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-1.0.0 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-0.9.9 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-0.9.8 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-0.9.7 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-0.9.6 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-0.9.5 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-0.9.4 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-0.9.3 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-0.9.2 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-0.9.1 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-0.9.0 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-0.8.8 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-0.8.7 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-0.8.6 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-0.8.5 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb