Platformsh\Cli\Local\LocalBuild::runPostDeployHooks PHP Method

runPostDeployHooks() protected method

Run post-deploy hooks.
protected runPostDeployHooks ( array $appConfig, string $appDir ) : boolean | null
$appConfig array
$appDir string
return boolean | null False if the deploy hooks fail, true if they succeed, null if not applicable.
    protected function runPostDeployHooks(array $appConfig, $appDir)
    {
        if (empty($this->settings['run-deploy-hooks'])) {
            return null;
        }
        if (empty($appConfig['hooks']['deploy'])) {
            $this->output->writeln('No deploy hooks found');
            return null;
        }
        $this->output->writeln('Running post-deploy hooks');
        return $this->runHook($appConfig['hooks']['deploy'], $appDir);
    }