You are here

function hosting_platform_drush_context_import in Hosting 6.2

Same name and namespace in other branches
  1. 7.4 platform/hosting_platform.drush.inc \hosting_platform_drush_context_import()
  2. 7.3 platform/hosting_platform.drush.inc \hosting_platform_drush_context_import()

Implementation of hook_drush_context_import().

File

platform/hosting_platform.drush.inc, line 29
Implement drush hooks for the Platforms module.

Code

function hosting_platform_drush_context_import($context, &$node) {
  if ($context->type == 'platform') {
    $node->title = str_replace('platform_', '', trim($context->name, '@'));
    $node->web_server = hosting_drush_import($context->web_server);
    $node->publish_path = $context->root;
    $node->makefile = $context->makefile;
    if (isset($context->make_working_copy) && !empty($context->make_working_copy)) {
      $node->make_working_copy = $context->make_working_copy;
    }
  }
}