Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
P
provision
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
provision
Commits
a280befe
Commit
a280befe
authored
Aug 10, 2016
by
helmo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Whitespace cleanup
parent
4ed1267b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
platform/deploy.provision.inc
platform/deploy.provision.inc
+4
-4
No files found.
platform/deploy.provision.inc
View file @
a280befe
...
...
@@ -4,7 +4,7 @@
* @file
* Deploy command implementation
*
* This command when called will
* This command when called will
* 1. Extract the backup that is being deployed to the target folder in the sites directory.
* 2. Import the drushrc.php details.
* 3. Do some diagnostics to make sure all the needed packages are available.
...
...
@@ -48,10 +48,10 @@ function drush_provision_drupal_provision_deploy_validate($backup_file = NULL) {
/**
* Make a backup before making any changes, and add extract the file we are restoring from.
*
* Implement
at
s drush_hook_pre_COMMAND().
* Implements drush_hook_pre_COMMAND().
*/
function
drush_provision_drupal_pre_provision_deploy
(
$backup_file
)
{
$extracted
=
provision_file
()
->
extract
(
$backup_file
,
drush_get_option
(
'extract_path'
))
$extracted
=
provision_file
()
->
extract
(
$backup_file
,
drush_get_option
(
'extract_path'
))
->
succeed
(
'Successfully extracted the contents of @path'
)
->
fail
(
'Failed to extract the contents of @path to @target'
,
'PROVISION_BACKUP_EXTRACTION_FAILED'
)
->
status
();
...
...
@@ -120,7 +120,7 @@ function drush_provision_drupal_pre_provision_deploy($backup_file) {
array
(
'!name'
=>
$name
,
'!versionA'
=>
$module
[
'schema_version'
],
'!versionB'
=>
$merged_modules
[
$name
][
'schema_version'
])));
}
else
{
drush_log
(
dt
(
"Found a valid version of the !name module with schema version !schema_version"
,
drush_log
(
dt
(
"Found a valid version of the !name module with schema version !schema_version"
,
array
(
'!name'
=>
$name
,
'!schema_version'
=>
$merged_modules
[
$name
][
'schema_version'
])));
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment