aero
aero copied to clipboard
#hostname broken sinсe 1.1.4
function env was renamed to get-env, but forgot to rename call (env "HOSTNAME")
https://github.com/juxt/aero/pull/104
While waiting for the PR containing the fix for this to be merged, it is possible to recreate this functionality using your own tagged literal e.g. #host instead of #hostname:
e.g. Add this to a namespace before reading in configuration file:
(defmethod aero.alpha.core/eval-tagged-literal 'host
[tl {:keys [hostname] :as opts} env ks]
(aero.alpha.core/expand-case (or hostname (System/getenv "HOSTNAME"))
tl opts env ks))