class

Barista::Registry(T)

Inherits Reference < Object

stores the list of tasks organized in a dependency graph

Constructors

new(tasks : Array(T) = [] of T)
Source

Instance methods

<<(task)

add a task

Source
[](name : String) : T

get a single task

Source
[]?(name : String) : T | Nil
Source
dag

get a directed acyclic graph from a task list

Source
invert

returns a clone of this object with the dependency graph inverted

Source
reset
Source
tasks
Source
upstreams(task : String) : Array(T)
Source
upstreams(task : T) : Array(T)

get a flat list of upstream dependencies

Source