| 1 |
<?php
|
| 2 |
|
| 3 |
include_once('hosting.inc');
|
| 4 |
|
| 5 |
/**
|
| 6 |
* Make sure that AEgir is ready to be parked
|
| 7 |
*
|
| 8 |
* @todo make sure no task is running
|
| 9 |
*/
|
| 10 |
function drush_hosting_hostmaster_park_validate($url) {
|
| 11 |
if ($platform_id = db_result(db_query('SELECT nid FROM {hosting_platform} WHERE publish_path = "%s"', $platform))) {
|
| 12 |
drush_log(dt('Platform found for path %path: #%id', array('%path' => $platform, '%id' => $platform_id)));
|
| 13 |
}
|
| 14 |
else {
|
| 15 |
return drush_set_error('PROVISION_FRAMEWORK_ERROR', dt("Cannot find target platform before parking site. Make sure the platform exists in the frontend first."));
|
| 16 |
}
|
| 17 |
}
|
| 18 |
|
| 19 |
/**
|
| 20 |
* TODO: prepare the site for migration
|
| 21 |
* - disable the queue (variable_set...)
|
| 22 |
* - disable the cronjob
|
| 23 |
* - create a failed migrate task for logging
|
| 24 |
* - disable the site
|
| 25 |
*/
|
| 26 |
function drush_hosting_hostmaster_park($url) {
|
| 27 |
|
| 28 |
}
|