public function getDeploymentsBasePath($path = null)
    {
        $localDeploymentDescription = @realpath('./.surf');
        if (! $path && is_dir($localDeploymentDescription)) {
            $path = $localDeploymentDescription;
        }
        $path = $path ?: Files::concatenatePaths([$this->getHomeDir(), 'deployments']);
        $this->ensureDirectoryExists($path);

        return $path;
    }
public function getDeploymentsBasePath($path = null)
    {
        $localDeploymentDescription = @realpath('./.surf');
        if (! $path && is_dir($localDeploymentDescription)) {
            $path = $localDeploymentDescription;
        }
        $path = $path ?: Files::concatenatePaths([$this->getHomeDir(), 'deployments']);
        $this->ensureDirectoryExists($path);

        return $path;
    }
public function getDeploymentsBasePath ( $ path = null ) { $ localDeploymentDescription = @ realpath ( './.surf' ) ; if ( ! $ path && is_dir ( $ localDeploymentDescription ) ) { $ path = $ localDeploymentDescription ; } $ path = $ path ? : Files :: concatenatePaths ( [ $ this -> getHomeDir ( ) , 'deployments' ] ) ; $ this -> ensureDirectoryExists ( $ path ) ; return $ path ; }
Get the root path of the surf deployment declarations

This defaults to ./.surf if a NULL path is given.

@param string $path An absolute path (optional)

@return string The configuration root path without a trailing slash.
@throws \RuntimeException
@throws InvalidConfigurationException
Get the root path of the surf deployment declarations