Unplug v0.2.0 Unplug.Predicates.EnvVarEquals View Source

Given an environment variable, execute the plug if the configured value matches the expected value.

Usage:

plug Unplug,
  if: {Unplug.Predicates.EnvVarEquals, {"ENABLE_DEBUG", "true"}},
  do: MyApp.Plug