Changeset View
Changeset View
Standalone View
Standalone View
src/toolset/ArcanistWorkflow.php
| Show First 20 Lines • Show All 123 Lines • ▼ Show 20 Lines | final public function getConfigurationEngine() { | ||||
| return $this->configurationEngine; | return $this->configurationEngine; | ||||
| } | } | ||||
| final protected function getToolsetKey() { | final protected function getToolsetKey() { | ||||
| return $this->getToolset()->getToolsetKey(); | return $this->getToolset()->getToolsetKey(); | ||||
| } | } | ||||
| final public function executeWorkflow(PhutilArgumentParser $args) { | final public function executeWorkflow(PhutilArgumentParser $args) { | ||||
| $runtime = $this->getRuntime(); | |||||
| $this->arguments = $args; | $this->arguments = $args; | ||||
| $caught = null; | $caught = null; | ||||
| $runtime->pushWorkflow($this); | |||||
| try { | try { | ||||
| $err = $this->runWorkflow($args); | $err = $this->runWorkflow($args); | ||||
| } catch (Exception $ex) { | } catch (Exception $ex) { | ||||
| $caught = $ex; | $caught = $ex; | ||||
| } | } | ||||
| try { | try { | ||||
| $this->runWorkflowCleanup(); | $this->runWorkflowCleanup(); | ||||
| } catch (Exception $ex) { | } catch (Exception $ex) { | ||||
| phlog($ex); | phlog($ex); | ||||
| } | } | ||||
| $runtime->popWorkflow(); | |||||
| if ($caught) { | if ($caught) { | ||||
| throw $caught; | throw $caught; | ||||
| } | } | ||||
| return $err; | return $err; | ||||
| } | } | ||||
| final public function getArgument($key) { | final public function getArgument($key) { | ||||
| Show All 29 Lines | final protected function getConduitEngine() { | ||||
| return $this->conduitEngine; | return $this->conduitEngine; | ||||
| } | } | ||||
| final protected function getLogEngine() { | final protected function getLogEngine() { | ||||
| return $this->getRuntime()->getLogEngine(); | return $this->getRuntime()->getLogEngine(); | ||||
| } | } | ||||
| public function canHandleSignal($signo) { | |||||
| return false; | |||||
| } | |||||
| public function handleSignal($signo) { | |||||
| throw new PhutilMethodNotImplementedException(); | |||||
| } | |||||
| } | } | ||||