Unplug v0.2.0 Unplug.Predicates.EnvVarIn View Source

Given an environment variable, execute the plug if the environment variable value is in the provided enumerable of values.

Usage:

plug Unplug,
  if: {Unplug.Predicates.EnvVarIn, {"ENABLE_DEBUG", ["true", "1"]}},
  do: MyApp.Plug