/**
* Returns the path where a resource is going to be installed.
*
* This is a path relative to the document root of the target server.
*
* @param PuliResource $resource The resource.
*
* @return string The server path.
*/
public function getServerPathForResource(PuliResource $resource)
{
$relPath = Path::makeRelative($resource->getRepositoryPath(), $this->basePath);
return '/' . trim($this->mapping->getServerPath() . '/' . $relPath, '/');
}