public function hostingService::context_options

7.x-3.x hosting_server.service.inc public hostingService::context_options($task_type, $ref_type, &$task)

File

server/hosting_server.service.inc, line 170
Define the base Hosting service class.

Class

hostingService

Code

public function context_options($task_type, $ref_type, &$task) {
  $task->context_options[$this->service . '_service_type'] = $this->type;

  if ($this->has_restart_cmd) {
    $task->context_options[$this->service . '_restart_cmd'] = $this->restart_cmd;
  }

  if ($this->has_port) {
    $task->context_options[$this->service . '_port'] = $this->port;
  }
}