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

Summary

Functions

Link to this macro

gestalt_config(module, key, pid)

View Source (macro)
@spec gestalt_config(module(), atom(), pid()) :: Macro.t()
Link to this macro

gestalt_env(variable, pid)

View Source (macro)
@spec gestalt_env(binary(), pid()) :: Macro.t()