View Source Confex.Adapters.SystemEnvironment (confex v3.5.1)
Adapter to fetch values from system environment variables.
Summary
Functions
Fetch value from environment variable.
Functions
Fetch value from environment variable.
Example
iex> :ok = System.delete_env("SOME_TEST_ENV")
...> :error = Elixir.Confex.Adapters.SystemEnvironment.fetch_value("SOME_TEST_ENV")
...> :ok = System.put_env("SOME_TEST_ENV", "some_value")
...> {:ok, "some_value"} = Elixir.Confex.Adapters.SystemEnvironment.fetch_value("SOME_TEST_ENV")
{:ok, "some_value"}