Register-Dependency
Command Reference
Description
Register an object-to-object dependency to the repository.
The Register-Dependency command defines a dependency relationship between two objects. The -relation option specifies what direction the dependency should be defined. When child relation is set, then the object is made a child of the -type and -name object. When parent relation is set, then the object is made a parent of the -type and -name object.
The Register-Dependency command will check to see that both objects exists before attempting to define the dependency and will fail if either does not exist.
To make a dependency like: (Deployment) deployment -> (Setting) aSetting, run:
ctl -p project -t Deployment -o deployment -c Register-Dependency -- \ -type Setting -name aSetting -relation child
To make a dependency like: (Node) aNode -> (Deployment) deployment, run:
ctl -p project -t Deployment -o deployment -c Register-Dependency -- \ -type Node -name aNode -relation parent