public function deployPush($opts = [
        'build-path' => null,
        'deploy-type' => 'git',
    ])
    {
        $this->executeCommandHook(__FUNCTION__, 'before');
        $build_path = $this->buildPath($opts);

        if (!file_exists($build_path)) {
            throw new DeploymentRuntimeException(
                'Build directory does not exist.'
            );
        }
        /** @var DeployBase $deploy */
        $deploy = $this->loadDeployTask(
            $opts['deploy-type'],
            $build_path
        );

        $this->executeDeploy(__FUNCTION__, $deploy);
        $this->executeCommandHook(__FUNCTION__, 'after');
    }
public function deployPush($opts = [
        'build-path' => null,
        'deploy-type' => 'git',
    ])
    {
        $this->executeCommandHook(__FUNCTION__, 'before');
        $build_path = $this->buildPath($opts);

        if (!file_exists($build_path)) {
            throw new DeploymentRuntimeException(
                'Build directory does not exist.'
            );
        }
        /** @var DeployBase $deploy */
        $deploy = $this->loadDeployTask(
            $opts['deploy-type'],
            $build_path
        );

        $this->executeDeploy(__FUNCTION__, $deploy);
        $this->executeCommandHook(__FUNCTION__, 'after');
    }
public function deployPush ( $ opts = [ 'build-path' => null , 'deploy-type' => 'git' , ] ) { $ this -> executeCommandHook ( __FUNCTION__ , 'before' ) ; $ build_path = $ this -> buildPath ( $ opts ) ; if ( ! file_exists ( $ build_path ) ) { throw new DeploymentRuntimeException ( 'Build directory does not exist.' ) ; } /** @var DeployBase $deploy */ $ deploy = $ this -> loadDeployTask ( $ opts [ 'deploy-type' ] , $ build_path ) ; $ this -> executeDeploy ( __FUNCTION__ , $ deploy ) ; $ this -> executeCommandHook ( __FUNCTION__ , 'after' ) ; }
Run the deployment push process.

@param array $opts
@option $build-path The path that the build was built at.
@option $deploy-type The deployment type that should be used.
@throws \Psr\Container\ContainerExceptionInterface
@throws \Psr\Container\NotFoundExceptionInterface
Run the deployment push process .