You are here

function hostingService_http_pack::context_options in Hostmaster (Aegir) 6

Overrides hostingService::context_options

File

modules/hosting/web_pack/hosting_web_pack.service.inc, line 97

Class

hostingService_http_pack

Code

function context_options($task_type, $ref_type, &$task) {
  parent::context_options($task_type, $ref_type, $task);
  $task->context_options['master_web_servers'] = implode(',', array_values(array_map('hosting_context_name', array_intersect_key($this->master_servers, hosting_get_servers('http')))));
  $task->context_options['slave_web_servers'] = implode(',', array_values(array_map('hosting_context_name', array_intersect_key($this->slave_servers, hosting_get_servers('http')))));
}