Liking cljdoc? Tell your friends :D

pallet.project

Pallet projects are specified in a pallet.clj file.

The files are loaded by calling clojure.core/load in the pallet.project.load namespace. The defproject form in that file def's a pallet-project-map var, which is reset after loading.

defproject refers to pallet.project.loader/defproject.

Pallet projects are specified in a pallet.clj file.

The files are loaded by calling clojure.core/load in the pallet.project.load
namespace.  The defproject form in that file def's a `pallet-project-map` var,
which is reset after loading.

defproject refers to pallet.project.loader/defproject.
raw docstring

*project*clj

source

add-default-phasesclj

(add-default-phases {:keys [phases]} project)

Adds default phases. Note that these are merged as ordinary clojure maps, not as server-specs, so that the project can remove default behaviour.

Adds default phases.  Note that these are merged as ordinary clojure maps,
not as server-specs, so that the project can remove default behaviour.
sourceraw docstring

create-project-fileclj

(create-project-file project-name pallet-file)
source

decorate-nameclj

(decorate-name {:keys [group-prefix group-suffix node-spec]
                :or {group-prefix "" group-suffix ""}
                :as variant}
               group)
source

default-pallet-fileclj

source

default-projectclj

(default-project)

Return the default project, or nil if there is none.

Return the default project, or nil if there is none.
sourceraw docstring

default-user-pallet-fileclj

source

ensure-group-countclj

(ensure-group-count group)
source

merge-variant-node-specsclj

(merge-variant-node-specs {:keys [node-spec groups] :as variant}
                          {:keys [group-name] :as group})

Use the node-specs specified in the variant. The variant can have a general node-spec, or a per-group node-spec under the :groups key

Use the node-specs specified in the variant.  The variant can have a
general node-spec, or a per-group node-spec under the `:groups` key
sourceraw docstring

merge-variant-phasesclj

(merge-variant-phases {:keys [phases groups] :as variant}
                      {:keys [group-name] :as group})

Use the node-specs specified in the variant. The variant can have a general node-spec, or a per-group node-spec under the :groups key

Use the node-specs specified in the variant.  The variant can have a
general node-spec, or a per-group node-spec under the `:groups` key
sourceraw docstring

pallet-file-exists?clj

(pallet-file-exists?)
(pallet-file-exists? pallet-file)

Predicate to check if a pallet.clj file exists.

Predicate to check if a pallet.clj file exists.
sourceraw docstring

read-or-create-projectclj

(read-or-create-project project-name)
(read-or-create-project project-name pallet-file)
source

read-projectclj

(read-project)
(read-project pallet-file)

Read the project file

Read the project file
sourceraw docstring

spec-from-projectclj

(spec-from-project pallet-project provider-kw)
(spec-from-project {:keys [groups provider service] :as pallet-project}
                   provider-kw
                   selectors
                   roles
                   group-names)

Compute the groups for a pallet project using the given compute service provider keyword. The node specs are filtered by the selector selector set, which defaults to #{:default}. The groups can be filtered by the roles set, and by group-names.

Compute the groups for a pallet project using the given compute service
provider keyword.  The node specs are filtered by the selector selector set,
which defaults to #{:default}.  The groups can be filtered by the roles set, and
by group-names.
sourceraw docstring

use-project!clj

(use-project! project)

Set the specified project map as the default project.

Set the specified project map as the default project.
sourceraw docstring

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

× close