ConfigSmuggler.apply
You're seeing just the function
apply
, go back to ConfigSmuggler module for more information.
Specs
apply(decoded_configs() | encoded_config_map()) :: :ok | {:error, error_reason()}
Applies the given config to the current environment (i.e., calls
Application.put_env/3
a bunch of times). Accepts Elixir-
native decoded configs or encoded config maps.
iex> ConfigSmuggler.apply([my_app: [foo: 22]])
iex> Application.get_env(:my_app, :foo)
22
iex> ConfigSmuggler.apply(%{"elixir-my_app-bar" => "33"})
iex> Application.get_env(:my_app, :bar)
33