Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion db_sanitization/db_sanitization_drupal.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

// Run the Drush command to sanitize the database.
echo "Sanitizing the database...\n";
passthru('drush sql-sanitize -y');
passthru('drush sql-sanitize -y 2>&1');
echo "Database sanitization complete.\n";
}
4 changes: 2 additions & 2 deletions drush_config_import/drush_config_import.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
// Import all config changes.
echo "Importing configuration from yml files...\n";
passthru('drush config-import -y');
passthru('drush config-import -y 2>&1');
echo "Import of configuration complete.\n";
//Clear all cache
echo "Rebuilding cache.\n";
passthru('drush cr');
passthru('drush cr 2>&1');
echo "Rebuilding cache complete.\n";
4 changes: 2 additions & 2 deletions drush_revert_features/revert_all_features.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

//Revert all features
echo "Reverting all features...\n";
passthru('drush fra -y');
passthru('drush fra -y 2>&1');
echo "Reverting complete.\n";

//Clear all cache
echo "Clearing cache.\n";
passthru('drush cc all');
passthru('drush cc all 2>&1');
echo "Clearing cache complete.\n";
2 changes: 1 addition & 1 deletion enable_dev_modules/enable_dev_modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
// Now let's enable devel if it is installed and not already enabled.
if (isset($modules->devel) && $modules->devel->status !== 'Enabled') {
// This time let's just passthru() to run the drush command so the command output prints to the workflow log.
passthru('drush pm-enable -y devel');
passthru('drush pm-enable -y devel 2>&1');
}
}
12 changes: 6 additions & 6 deletions generate_dev_content/generate_dev_content.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,28 @@
if (isset($modules->devel) && isset($modules->devel_generate)) {

if (isset($modules->devel) && $modules->devel->status !== 'Enabled') {
passthru('drush pm-enable -y devel');
passthru('drush pm-enable -y devel 2>&1');
}
if (isset($modules->devel_generate) && $modules->devel_generate->status !== 'Enabled') {
passthru('drush pm-enable -y devel_generate');
passthru('drush pm-enable -y devel_generate 2>&1');
}

// Remove the existing production article content
echo "Removing production article content...\n";
passthru('drush genc --kill --types=article 0 0');
passthru('drush genc --kill --types=article 0 0 2>&1');
echo "Removal complete.\n";

// Generate new development article content
echo "Generating development article content...\n";
passthru('drush generate-content 20 --types=article');
passthru('drush generate-content 20 --types=article 2>&1');
echo "Generation complete.\n";

// Disable the Devel and Devel Generate modules as appropriate
if (isset($modules->devel) && $modules->devel->status !== 'Enabled') {
passthru('drush pm-disable -y devel');
passthru('drush pm-disable -y devel 2>&1');
}
if (isset($modules->devel_generate) && $modules->devel_generate->status !== 'Enabled') {
passthru('drush pm-disable -y devel_generate');
passthru('drush pm-disable -y devel_generate 2>&1');
}
}
else {
Expand Down
2 changes: 1 addition & 1 deletion jenkins/jenkins_integration.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ function _get_secrets($file)
die('Could not parse json in secrets file. Aborting!');
}
return $secrets;
}
}
8 changes: 4 additions & 4 deletions wp_search_replace/wp_search_replace.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
if ( ! empty( $_ENV['PANTHEON_ENVIRONMENT'] ) ) {
switch( $_ENV['PANTHEON_ENVIRONMENT'] ) {
case 'live':
passthru('wp search-replace "://test-example.pantheonsite.io" "://example.com" --all-tables ');
passthru('wp search-replace "://test-example.pantheonsite.io" "://example.com" --all-tables 2>&1');
break;
case 'test':
passthru('wp search-replace "://example1.pantheonsite.io" "://test-examplesite.pantheonsite.io" --all-tables ');
passthru('wp search-replace "://example2.pantheonsite.io" "://test-examplesite.pantheonsite.io" --all-tables ');
passthru('wp search-replace "://example3.pantheonsite.io" "://test-examplesite.pantheonsite.io" --all-tables ');
passthru('wp search-replace "://example1.pantheonsite.io" "://test-examplesite.pantheonsite.io" --all-tables 2>&1');
passthru('wp search-replace "://example2.pantheonsite.io" "://test-examplesite.pantheonsite.io" --all-tables 2>&1');
passthru('wp search-replace "://example3.pantheonsite.io" "://test-examplesite.pantheonsite.io" --all-tables 2>&1');
break;
}
}
Expand Down
6 changes: 3 additions & 3 deletions wp_solr_index/wp_solr_power_index.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php
// Post Solr schema
echo "Posting Solr Schema File...\n";
passthru('wp solr repost-schema');
passthru('wp solr repost-schema 2>&1');

// Get Solr Server Info
echo "Getting Solr Server Info...\n";
passthru('wp solr info');
passthru('wp solr info 2>&1');

// Index Solr Power items
echo "Indexing Solr Power Items...\n";
passthru('wp solr index');
passthru('wp solr index 2>&1');
echo "Indexing complete.\n";