Packages

Elixir-native host management with inspectable plans, package locks, systemd isolation, and remote bootstrap.

Current section

Files

Jump to
host_kit lib host_kit env normalize.ex
Raw

lib/host_kit/env/normalize.ex

defmodule HostKit.Env.Normalize do
@moduledoc false
def string_map(env) when is_map(env) do
Map.new(env, fn {key, value} -> {to_string(key), to_string(value)} end)
end
def string_map(env) when is_list(env) do
env |> Map.new() |> string_map()
end
end