function DrushMakeProject::addLockfile

8.0.x make.project.inc DrushMakeProject::addLockfile($project_directory)
6.x make.project.inc DrushMakeProject::addLockfile($project_directory)
7.x make.project.inc DrushMakeProject::addLockfile($project_directory)
5.x make.project.inc DrushMakeProject::addLockfile($project_directory)
master make.project.inc DrushMakeProject::addLockfile($project_directory)

Add a lock file.

1 call to DrushMakeProject::addLockfile()
DrushMakeProject::make in commands/make/make.project.inc
Build a project.

File

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

Class

DrushMakeProject
The base project class.

Code

function addLockfile($project_directory) {
  if (!empty($this->lock)) {
    file_put_contents($project_directory . '/.drush-lock-update', $this->lock);
  }
  return TRUE;
}