forked from acquia/blt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Move cloud-hooks from template directory to scripts/cloud-hooks/. * Add cloud hook setup target. * Add cloud hook setup info to deploy docs. * Add call to new cloud hook setup target from doctor.sh. * Add cloud hook unit test to verify hooks directory setup. * Move logic that changes cloud hooks to re-install Drupal on deploy.
- Loading branch information
1 parent
f841b2e
commit 3922d31
Showing
23 changed files
with
53 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
namespace Acquia\Blt\Tests\Blt; | ||
|
||
use Acquia\Blt\Tests\BltTestBase; | ||
|
||
/** | ||
* Class CloudHookTest. | ||
* | ||
* Verifies that acsf support has been initialized. | ||
*/ | ||
class CloudHookTest extends BltTestBase { | ||
|
||
/** | ||
* Tests Phing setup:cloud-hooks target. | ||
*/ | ||
public function testSetupCloudHooks() { | ||
$this->assertFileExists($this->new_project_dir . '/hooks'); | ||
|
||
$commonPostCodeDeployScript = $this->new_project_dir . '/hooks/common/post-code-deploy/post-code-deploy.sh'; | ||
$this->assertFileExists($commonPostCodeDeployScript); | ||
|
||
$filePermissions = substr(sprintf('%o', fileperms($commonPostCodeDeployScript)), -4); | ||
$this->assertEquals('0755', $filePermissions); | ||
} | ||
|
||
} |