function Provision_Service_example_basic::verify in Hosting 7.4
Same name and namespace in other branches
- 7.3 example/example_service/drush/Provision/Service/example/basic.php \Provision_Service_example_basic::verify()
Implementation of service verify.
Overrides Provision_Service_example::verify
File
- example/
example_service/ drush/ Provision/ Service/ example/ basic.php, line 125 - A 'basic' implementation of the 'example' service type.
Class
- Provision_Service_example_basic
- A class containing the 'basic' implementation of the 'example' service.
Code
function verify() {
parent::verify();
if ($this->context->type == 'server') {
// Create the configuration file directory.
provision_file()
->create_dir($this->server->example_config_path, dt("Example configuration"), 0700);
// Sync the directory to the remote server if needed.
$this
->sync($this->server->example_config_path);
}
}