You are here

public function hostingService::context_options in Hosting 7.4

Same name and namespace in other branches
  1. 6.2 server/hosting_server.service.inc \hostingService::context_options()
  2. 7.3 server/hosting_server.service.inc \hostingService::context_options()
5 calls to hostingService::context_options()
hostingService_db_mysql::context_options in db_server/hosting_db_server.service.inc
hostingService_example_basic::context_options in example/example_service/hosting_example.service.inc
Pass values to the provision backend when we call provision-save.
hostingService_http_cluster::context_options in web_cluster/hosting_web_cluster.service.inc
hostingService_http_pack::context_options in web_pack/hosting_web_pack.service.inc
hostingService_http_public::context_options in web_server/hosting_web_server.service.inc
5 methods override hostingService::context_options()
hostingService_db_mysql::context_options in db_server/hosting_db_server.service.inc
hostingService_example_basic::context_options in example/example_service/hosting_example.service.inc
Pass values to the provision backend when we call provision-save.
hostingService_http_cluster::context_options in web_cluster/hosting_web_cluster.service.inc
hostingService_http_pack::context_options in web_pack/hosting_web_pack.service.inc
hostingService_http_public::context_options in web_server/hosting_web_server.service.inc

File

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

Class

hostingService
@file Define the base Hosting service class.

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;
  }
}