Commit 0896635d authored by mig5's avatar mig5 Committed by mig5

Revert "provision-export"

This reverts commit 7414a9ba2e18f5d036bdb10c2925ef61fe566fa5.
parent 38ca851d
<?php
// $Id$
/**
* Provision export command
*
* Create a tarball of a site that can be used on non-aegir hosts
*/
/**
* Make a backup of the site
*/
function drush_provision_drupal_provision_export($backup_file = null) {
if (d()->type == 'site') {
drush_set_option('force', true, 'process');
// Disable the cloaking of credentials temporarily
drush_set_option('provision_db_cloaking', FALSE);
// Write the uncloaked credentials to the settings.php
_provision_drupal_create_settings_file();
// Create the tarball
drush_invoke('provision-backup', $backup_file);
// Put the cloaked credentials back
drush_set_option('provision_db_cloaking', TRUE);
_provision_drupal_create_settings_file();
drush_unset_option('force', 'process');
}
}
...@@ -171,12 +171,6 @@ function provision_drush_command() { ...@@ -171,12 +171,6 @@ function provision_drush_command() {
'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_ROOT 'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_ROOT
); );
$items['provision-export'] = array(
'arguments' => array('domain.com' => dt('The domain of the site to export.')),
'optional arguments' => array('backup-file' => dt('The file to save the export to. This will be a gzipped tarball.')),
'description' => dt('Generate an exported tarball of the site for use by non-aegir hosts.'),
'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_ROOT
);
$items['hostmaster-migrate'] = array( $items['hostmaster-migrate'] = array(
'description' => dt('Migrate an instance of the Hostmaster front end to a new platform'), 'description' => dt('Migrate an instance of the Hostmaster front end to a new platform'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment