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

runPostBuildHooks() protected method

Run post-build hooks.
protected runPostBuildHooks ( array $appConfig, string $buildDir ) : boolean | null
$appConfig array
$buildDir string
return boolean | null False if the build hooks fail, true if they succeed, null if not applicable.
    protected function runPostBuildHooks(array $appConfig, $buildDir)
    {
        if (!isset($appConfig['hooks']['build'])) {
            return null;
        }
        if (!empty($this->settings['no-build-hooks'])) {
            $this->output->writeln('Skipping post-build hooks');
            return null;
        }
        $this->output->writeln('Running post-build hooks');
        return $this->runHook($appConfig['hooks']['build'], $buildDir);
    }