View Source Unplug.Predicates.EnvVarIn (Unplug v1.0.0)

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