Skip to content

Commit

Permalink
Issue #704: Fixed update hooks. (#724)
Browse files Browse the repository at this point in the history
* Issue #704: Fixed update hooks.

* Fixed update hook.:
  • Loading branch information
danepowell authored and grasmash committed Dec 2, 2016
1 parent b8af586 commit 8383064
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/Update/Updates.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,20 @@ public function __construct(Updater $updater) {
/**
* @Update(
* version = "8.5.1",
* description = "Removes deprecated features patch. Moves configuration files to blt subdirectory. Removes .git/hooks symlink."
* description = "Removes deprecated features patch."
* )
*/
public function update_851() {
$this->updater->removePatch("drupal/features", "https://www.drupal.org/files/issues/features-2808303-2.patch");
}

/**
* @Update(
* version = "8.6.0-beta1",
* description = "Moves configuration files to blt subdirectory. Removes .git/hooks symlink."
* )
*/
public function update_860() {
// Move files to blt subdir.
$this->updater->moveFile('project.yml', 'blt/project.yml', TRUE);
$this->updater->moveFile('project.local.yml', 'blt/project.local.yml', TRUE);
Expand All @@ -45,4 +53,5 @@ public function update_851() {
$this->updater->getOutput()->writeln('.git/hooks was deleted. Please re-run setup:git-hooks to install git hooks locally.');
}


}

0 comments on commit 8383064

Please sign in to comment.