/[drupal]/contributions/modules/hosting/park.hostmaster.inc
ViewVC logotype

Contents of /contributions/modules/hosting/park.hostmaster.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download) (as text)
Thu Nov 5 16:58:50 2009 UTC (3 weeks ago) by adrian
Branch: MAIN
Changes since 1.1: +0 -1 lines
File MIME type: text/x-php
Run hosting setup as part of unpark to create the new, working cronjob
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 * - create a failed migrate task for logging
23 * - disable the site
24 */
25 function drush_hosting_hostmaster_park($url) {
26
27 }

  ViewVC Help
Powered by ViewVC 1.1.2