public function setViewer($viewer)
public function setViewer($viewer)
Parameters
PhabricatorUser | $viewer |
Return
wild |
public function getViewer()
public function getViewer()
Return
wild |
public function setObject($object)
public function setObject($object)
Parameters
HarbormasterBuildableInterface | $object |
Return
wild |
public function getObject()
public function getObject()
Return
wild |
public function setAutoTargetKeys($auto_keys)
public function setAutoTargetKeys($auto_keys)
Parameters
array | $auto_keys |
Return
wild |
public function getAutoTargetKeys()
public function getAutoTargetKeys()
Return
wild |
public function buildTargets()
public function buildTargets()
Return
wild |
private function generateBuildStepMap($autotargets)
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> | $autotargets | Autotarget keys, like `"core.arc.lint"`. |
Return
map<string, object> | Map of keys to step objects. |
private function getAutosteps($autotargets)
private function getAutosteps($autotargets)
Get all of the HarbormasterBuildStepImplementation objects for a list of autotarget keys.
Parameters
list<string> | $autotargets | Autotarget keys, like `"core.arc.lint"`. |
Return
map<string, object> | Map of keys to implementations. |
private function generateBuildTargetMap($buildable, $step_map)
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 | $buildable | A buildable. |
map<string, | $step_map | object> Map of keys to steps. |
Return
map<string, object> | Map of keys to targets. |