Page MenuHomeClusterLabs Projects
Diviner Tech Docs HarbormasterTargetEngine

final class HarbormasterTargetEngine
Phorge Technical Documentation (Harbormaster)

This class is not documented.

Methods

public function setViewer($viewer)

This method is not documented.
Parameters
PhabricatorUser$viewer
Return
wild

public function getViewer()

This method is not documented.
Return
wild

public function setObject($object)

This method is not documented.
Parameters
HarbormasterBuildableInterface$object
Return
wild

public function getObject()

This method is not documented.
Return
wild

public function setAutoTargetKeys($auto_keys)

This method is not documented.
Parameters
array$auto_keys
Return
wild

public function getAutoTargetKeys()

This method is not documented.
Return
wild

public function buildTargets()

This method is not documented.
Return
wild

private function generateBuildStepMap($autotargets)

Get a map of the HarbormasterBuildStep objects for a list of autotarget keys.

This method creates the steps if they do not yet exist.

Parameters
list<string>$autotargetsAutotarget keys, like `"core.arc.lint"`.
Return
map<string, object>Map of keys to step objects.

private function getAutosteps($autotargets)

Get all of the HarbormasterBuildStepImplementation objects for a list of autotarget keys.

Parameters
list<string>$autotargetsAutotarget keys, like `"core.arc.lint"`.
Return
map<string, object>Map of keys to implementations.

private function generateBuildTargetMap($buildable, $step_map)

Get a list of HarbormasterBuildTarget objects for a list of autotarget keys.

If some targets or builds do not exist, they are created.

Parameters
HarbormasterBuildable$buildableA buildable.
map<string,$step_mapobject> Map of keys to steps.
Return
map<string, object>Map of keys to targets.