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.3.9 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-1.3.8 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-1.3.7 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-1.1.8 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-1.3.6 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-1.1.7 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-1.3.5 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-1.3.4 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-1.1.6 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-1.3.3 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-1.3.2 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-1.1.5 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-1.3.1 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-1.3.0 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-1.1.4 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-1.2.7 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-1.2.6 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-1.2.5 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-1.2.4 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb
kuber_kit-1.2.2 lib/kuber_kit/env_file_reader/env_file_tempfile_creator.rb