-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VACMS-2347 Do not tar files on cms export during deploy (#2568)
* PHPCS fix * Fix issue with export update * Use correct method to find directory
- Loading branch information
Neil Hastings
authored
Aug 6, 2020
1 parent
112273d
commit 8916b8e
Showing
5 changed files
with
57 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
19 changes: 19 additions & 0 deletions
19
docroot/modules/custom/va_gov_content_export/src/SiteStatus/SiteStatus.php
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,19 @@ | ||
<?php | ||
|
||
namespace Drupal\va_gov_content_export\SiteStatus; | ||
|
||
use Drupal\Core\Site\Settings; | ||
|
||
/** | ||
* SiteStatus Service. | ||
*/ | ||
class SiteStatus implements SiteStatusInterface { | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
public function inDeployMode(): bool { | ||
return Settings::get('va_site_deploy_mode', FALSE); | ||
} | ||
|
||
} |
18 changes: 18 additions & 0 deletions
18
docroot/modules/custom/va_gov_content_export/src/SiteStatus/SiteStatusInterface.php
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,18 @@ | ||
<?php | ||
|
||
namespace Drupal\va_gov_content_export\SiteStatus; | ||
|
||
/** | ||
* Interface SiteStatusInterface. | ||
*/ | ||
interface SiteStatusInterface { | ||
|
||
/** | ||
* Is the site currently in Deploy Mode. | ||
* | ||
* @return bool | ||
* In Deploy Mode. | ||
*/ | ||
public function inDeployMode() : bool; | ||
|
||
} |
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
8916b8e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ Test Failed:
va/tests/accessibility