A Duct module that coerces a deployment-name from env. var. into a keyword.
To install, add the following to you project :dependencies
:
[duct.module.deployment-name "0.1.0"]
To add this module to your configuration, add the :duct.module/deployment-name key. For example:
{:duct.core/project-ns foo
:duct.module/deployment-name #duct/env ["TARGET_ENV" Str]}
Set an env. variable:
export TARGET_ENV="staging"
And when your system is up, under the key :duct.module/deployment-name
you will find your env.:
:staging
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close