Commit aee355d9 authored by Adrian Rossouw's avatar Adrian Rossouw Committed by adrian
Browse files

Rename the park/unpark commands to pause/resume, due to incorrect validation...

Rename the park/unpark commands to pause/resume, due to incorrect validation in the hosting park component in 0.4 alpha 2 which would cause all migrations to fail
parent 31bb816b
......@@ -28,7 +28,7 @@ function drush_provision_pre_hostmaster_migrate($site, $platform) {
exec('crontab -r');
// we can't rely on the park command to exist in pre-0.4 alpha 2 releases
drush_backend_invoke('hostmaster park', array($site, 'uri' => $site));
drush_backend_invoke('hostmaster pause', array($site, 'uri' => $site));
}
function drush_provision_hostmaster_migrate($site, $platform) {
......@@ -36,6 +36,6 @@ function drush_provision_hostmaster_migrate($site, $platform) {
}
function drush_provision_post_hostmaster_migrate($site, $platform) {
drush_backend_invoke('hostmaster unpark', array($site, 'uri' => $site, 'root' => $platform));
drush_backend_invoke('hostmaster resume', array($site, 'uri' => $site, 'root' => $platform));
}
......@@ -147,13 +147,13 @@ function provision_drush_command() {
);
$items['hostmaster park'] = array(
$items['hostmaster pause'] = array(
'description' => dt('Prepare the site to be migrated to a new platform.'),
'arguments' => array(
'example.com' => dt('The url of the site being migrated.')),
);
$items['hostmaster unpark'] = array(
$items['hostmaster resume'] = array(
'description' => dt('Complete the migration of the site to a new platform.'),
'arguments' => array(
'example.com' => dt('The url of the site being migrated.')),
......
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