protected function DrushMakeProject::generatePath

8.0.x make.project.inc protected DrushMakeProject::generatePath($base = TRUE)
6.x make.project.inc protected DrushMakeProject::generatePath($base = TRUE)
7.x make.project.inc protected DrushMakeProject::generatePath($base = TRUE)
5.x make.project.inc protected DrushMakeProject::generatePath($base = TRUE)
master make.project.inc protected DrushMakeProject::generatePath($base = TRUE)

Generate the proper path for this project type.

Parameters

boolean $base: Whether include the base part (tmp dir). Defaults to TRUE.

3 calls to DrushMakeProject::generatePath()
DrushMakeProject::findDownloadLocation in commands/make/make.project.inc
Determine the location to download project to.
DrushMakeProject_Core::findDownloadLocation in commands/make/make.project.inc
Determine the location to download project to.
DrushMakeProject_Profile::buildPath in commands/make/make.project.inc
Find the build path.

File

commands/make/make.project.inc, line 505
Drush Make processing classes.

Class

DrushMakeProject
The base project class.

Code

protected function generatePath($base = TRUE) {
  $path = array();
  if ($base) {
    $path[] = make_tmp();
    $path[] = '__build__';
  }
  if (!empty($this->contrib_destination)) {
    $path[] = $this->contrib_destination;
  }
  if (!empty($this->subdir)) {
    $path[] = $this->subdir;
  }
  return implode('/', $path);
}