gestalt v1.0.1 Gestalt.Macros View Source

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

Link to this section Summary

Link to this section Functions

Link to this macro

gestalt_config(module, key, pid)

View Source (macro)
Link to this macro

gestalt_env(variable, pid)

View Source (macro)