Skip to content

Commit

Permalink
Fixes acquia#4012: Added update hook for acquia#587 (gitignore for si…
Browse files Browse the repository at this point in the history
…mulated deploys).
  • Loading branch information
danepowell committed Feb 18, 2020
1 parent 515589f commit 59f298b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/Update/Updates.php
Original file line number Diff line number Diff line change
Expand Up @@ -899,4 +899,20 @@ public function update_11000020() {
}
}

/**
* Version 11.2.0.
*
* @Update(
* version = "11002000",
* description = "Update .gitignore with travis_wait."
* )
*/
public function update_11002000() {
$filename = $this->updater->getRepoRoot() . '/.gitignore';
$lines = file($filename);
if (!in_array("/travis_wait*\n", $lines)) {
file_put_contents($filename, "\n# BLT 11.2.0 update to support simulated deploys\n/travis_wait*\n", FILE_APPEND);
}
}

}

0 comments on commit 59f298b

Please sign in to comment.