View Source Gestalt.Macros (gestalt v2.0.0)
Provides macros that execute Gestalt code only in the :test Mix environment. In other environments, Gestalt is compiled out and either Application or System is used.
Usage
defmodule MyApp.Config do
use Gestalt
def config_value(),
do: gestalt_config(:my_app, :config, self())
def env_value(),
do: gestalt_env("ENVIRONMENT_VARIABLE", self())
end