Liking cljdoc? Tell your friends :D

lambdacd.step-id

Utility functions to deal with the logic behind step ids: step-ids are a sequence of numbers that represent the structure of the pipeline.

Examples:

  • [1] is the first step of the pipeline
  • [2 1] is the second child of the first step of the pipeline.

For detailed examples on these functions, refer to their tests.

Utility functions to deal with the logic behind step ids:
step-ids are a sequence of numbers that represent the structure of the pipeline.

Examples:

* `[1]` is the first step of the pipeline
* `[2 1]` is the second child of the first step of the pipeline.

For detailed examples on these functions, refer to their [tests](https://github.com/flosell/lambdacd/blob/master/test/clj/lambdacd/step_id_test.clj).
raw docstring

before?clj

(before? a b)

Returns true if for two steps, the step with id b is executed after a in the pipeline.

Returns true if for two steps, the step with id b is executed after a in the pipeline.
sourceraw docstring

child-idclj

(child-id parent-step-id child-number)

Returns a step id for the child-numberth child of the step with id parent-step-id.

Returns a step id for the `child-number`th child of the step with id `parent-step-id`.
sourceraw docstring

direct-parent-of?clj

(direct-parent-of? parent child)

Returns true if the steps the given step-ids refer to are parent and immediate child.

Returns true if the steps the given step-ids refer to are parent and immediate child.
sourceraw docstring

later-than?clj

(later-than? a b)

Returns true if for two steps, the step with id a is executed after b in the pipeline.

Returns true if for two steps, the step with id a is executed after b in the pipeline.
sourceraw docstring

parent-of?clj

(parent-of? parent child)

Returns true if the steps the given step-ids refer to are parent and child.

Returns true if the steps the given step-ids refer to are parent and child.
sourceraw docstring

root-step-id-ofclj

(root-step-id-of step-id)

Returns the id of the root-parent of the step with the given id.

Returns the id of the root-parent of the step with the given id.
sourceraw docstring

root-step-id?clj

(root-step-id? step-id)

Returns true if the step-id belongs to a root-step, i.e. a step with no parents.

Returns true if the step-id belongs to a root-step, i.e. a step with no parents.
sourceraw docstring

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

× close