Commit b45e94b7 authored by mig5's avatar mig5 Committed by mig5

grammar nazi, whitespace cleanup and consistency

parent b9d5b1f0
......@@ -25,19 +25,19 @@ class provisionService_example_basic extends provisionService_example {
*/
/**
* this service needs to have a port specified for it.
* This service needs to have a port specified for it.
*/
public $has_port = TRUE;
/**
* the default value for the port input.
* The default value for the port input.
*/
function default_port() {
return 12345;
}
/**
* this service needs to be restarted with a shell command.
* This service needs to be restarted with a shell command.
*/
public $has_restart_cmd = TRUE;
......@@ -84,7 +84,7 @@ class provisionService_example_basic extends provisionService_example {
* Non configurable values.
*
* If you want to generate values for use in your code or templates,
* but don't want them to be overriden you would use the following format.
* but don't want them to be overridden you would use the following format.
*
* $this->server->example_config_path = $this->server->config_path . '/example.d'
*
......@@ -150,14 +150,13 @@ class provisionConfig_example extends provisionConfig {
* Where the file generated will end up.
*
* It is extremely important that this path is only made up of information
* relative to this class, and not use drush_get_option or the d() accessor.
* relative to this class, and does not use drush_get_option or the d() accessor.
*/
function filename() {
return $this->example_config_path . '/example.conf';
}
/**
* Override the write method.
*/
......
......@@ -3,7 +3,7 @@
/**
* @file
* An example of the provision service api.
* An example of the provision service API.
*
* Declares a new service type and a basic implementation of it.
* It matches the same service definition in the hosting front end.
......@@ -28,8 +28,6 @@ function example_provision_services() {
return array('example' => NULL);
}
/**
* The service type base class.
*
......@@ -51,7 +49,7 @@ class provisionService_example extends provisionService {
* We do not need to use this in our example.
*
* You would extend this if you needed to save values
* for all possible implementation of this service type.
* for all possible implementations of this service type.
*/
}
......@@ -66,7 +64,6 @@ class provisionService_example extends provisionService {
$this->parse_configs();
}
/**
* PUBLIC API!
*
......@@ -125,7 +122,4 @@ class provisionService_example extends provisionService {
function delete_server_config() {
return TRUE;
}
}
......@@ -17,8 +17,8 @@
* In our basic implementation we do not have an implementation
* of this API method, because it wasn't necessary.
*
* If the service implementationd doesn't define this method,
* or no implementation has been selected, nothing will happen.
* If the service implemented doesn't define this method, or
* no implementation has been selected, nothing will happen.
*/
function drush_example_provision_install() {
/**
......@@ -47,7 +47,7 @@ function drush_example_provision_install() {
*
* To call the correct methods, you just need to use the
* the 'service' method with the service type you want
* to call as it's only argument.
* to call as its only argument.
*/
d()->service('example')->create_config('site');
}
......@@ -71,7 +71,7 @@ function drush_example_provision_install_rollback() {
* Implementation of drush_hook_post_provision_install.
*
* We can now perform such operations as restarting the server,
* by calling the public api of the service we have created.
* by calling the public API of the service we have created.
*/
function drush_example_post_provision_install() {
d()->service('example')->parse_configs();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment