/[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.1 - (show annotations) (download) (as text)
Tue Oct 6 06:34:41 2009 UTC (7 weeks, 5 days ago) by adrian
Branch: MAIN
CVS Tags: DRUPAL-6--0-4-ALPHA2
File MIME type: text/x-php
missed adding the command files
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 }

  ViewVC Help
Powered by ViewVC 1.1.2