Liking cljdoc? Tell your friends :D

pallet.environment

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`.
raw docstring

Environmentcljprotocol

A protocol for accessing an environment.

A protocol for accessing an environment.

environmentclj

(environment _)

Returns an environment map

Returns an environment map
sourceraw docstring

eval-environmentclj

(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
  • :algorithms
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`
- `:algorithms`
sourceraw docstring

get-environmentclj

(get-environment keys)
(get-environment keys default)

Environment accessor.

Environment accessor.
sourceraw docstring

group-with-environmentclj

(group-with-environment environment group)

Add the environment to a group.

Add the environment to a group.
sourceraw docstring

merge-environmentsclj

(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)`.
sourceraw docstring

merge-key-algorithmclj

Map associating keys to merge algorithms. Specifies how environments are merged.

Map associating keys to merge algorithms. Specifies how environments are merged.
sourceraw docstring

node-keysclj

node-specific environment keys

node-specific environment keys
sourceraw docstring

pipelineclj

(pipeline a b)
source

shell-expand-keysclj

(shell-expand-keys user-map keys)

Shell-expand the values matching the specified keys

Shell-expand the values matching the specified keys
sourceraw docstring

standard-pallet-keysclj

source

user-keys-to-shell-expandclj

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close