The environments provide mechanisms for customising Pallet and Pallet crates according to externally determined criteria.
An environment can be specified at the global, service, invocation and tag scopes.
To provide a global default, specify an :environment key at the top level
of defpallet in ~/.pallet/config.clj.
To provide a service specific default, specify an :environment key at the
service level of defpallet in ~/.pallet/config.clj.
To provide a project specific default, define pallet.config/environment.
To provide a specific environment when invoking lift or converge, pass an
environment map using the :environment key.
The merging of values between scopes is key specific, and is determined by
merge-key-algorithm.
The environments provide mechanisms for customising Pallet and Pallet crates according to externally determined criteria. An environment can be specified at the global, service, invocation and tag scopes. To provide a global default, specify an `:environment` key at the top level of `defpallet` in `~/.pallet/config.clj`. To provide a service specific default, specify an `:environment` key at the service level of `defpallet` in `~/.pallet/config.clj`. To provide a project specific default, define `pallet.config/environment`. To provide a specific environment when invoking `lift` or `converge`, pass an environment map using the `:environment` key. The merging of values between scopes is key specific, and is determined by `merge-key-algorithm`.
A protocol for accessing an environment.
A protocol for accessing an environment.
(environment _)Returns an environment map
Returns an environment map
(eval-environment env-map)Evaluate an environment literal. This is used to replace certain keys with objects constructed from the map of values provided. The keys that are evaluated are:
:user:phases:algorithmsEvaluate an environment literal. This is used to replace certain keys with objects constructed from the map of values provided. The keys that are evaluated are: - `:user` - `:phases` - `:algorithms`
(get-environment keys)(get-environment keys default)Environment accessor.
Environment accessor.
(group-with-environment environment group)Add the environment to a group.
Add the environment to a group.
(merge-environments & maps)Returns a map that consists of the rest of the maps conj-ed onto
the first.  If a key occurs in more than one map, the mapping(s)
from the latter (left-to-right) will be combined with the mapping in
the result by calling (merge-key key val-in-result val-in-latter).
Returns a map that consists of the rest of the maps `conj`-ed onto the first. If a key occurs in more than one map, the mapping(s) from the latter (left-to-right) will be combined with the mapping in the result by calling `(merge-key key val-in-result val-in-latter)`.
Map associating keys to merge algorithms. Specifies how environments are merged.
Map associating keys to merge algorithms. Specifies how environments are merged.
(shell-expand-keys user-map keys)Shell-expand the values matching the specified keys
Shell-expand the values matching the specified keys
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs | 
| ← | Move to previous article | 
| → | Move to next article | 
| Ctrl+/ | Jump to the search field |