Commit c3afcffe authored by Steven Jones's avatar Steven Jones

Move provisionConfig to an autoload.

parent 214cb2ae
......@@ -6,7 +6,7 @@
* Provision configuration generation classes.
*/
class provisionConfig {
class Provision_Config {
/**
* Template file, a PHP file which will have access to $this and variables
* as defined in $data.
......@@ -227,7 +227,7 @@ class provisionConfig {
* This is based on the drush_save_config code, but has been abstracted
* for our purposes.
*/
class provisionConfig_drushrc extends provisionConfig {
class provisionConfig_drushrc extends Provision_Config {
public $template = 'provision_drushrc.tpl.php';
public $description = 'Drush configuration file';
protected $mode = 0400;
......@@ -325,7 +325,7 @@ class provisionConfig_drushrc_site extends provisionConfig_drushrc {
*
* When we lock the file, we load the latest stored info.
*/
class provisionConfig_data_store extends provisionConfig {
class provisionConfig_data_store extends Provision_Config {
public $template = 'data_store.tpl.php';
public $key = 'record';
......
......@@ -4,7 +4,7 @@
/**
* Base config class for all dns config files.
*/
class provisionConfig_dns extends provisionConfig {
class provisionConfig_dns extends Provision_Config {
public $mode = 0777;
function write() {
parent::write();
......
......@@ -140,7 +140,7 @@ class provisionService_example_basic extends provisionService_example {
*
* Just a file containing the value passed to us.
*/
class provisionConfig_example extends provisionConfig {
class provisionConfig_example extends Provision_Config {
/**
* Template file to load. In the same directory as this class definition.
*/
......
......@@ -13,7 +13,7 @@
* This class will publish the config files to remote
* servers automatically.
*/
class provisionConfig_http extends provisionConfig {
class provisionConfig_http extends Provision_Config {
function write() {
parent::write();
$this->data['server']->sync($this->filename());
......
......@@ -122,7 +122,7 @@ function _provision_drupal_create_settings_file() {
provision_drupal_sync_site();
}
class provisionConfig_drupal_settings extends provisionConfig {
class provisionConfig_drupal_settings extends Provision_Config {
public $template = 'provision_drupal_settings.tpl.php';
public $description = 'Drupal settings.php file';
public $creds = array();
......
......@@ -81,7 +81,7 @@ function drush_provision_drupal_pre_provision_verify() {
}
}
class provisionConfig_global_settings extends provisionConfig {
class provisionConfig_global_settings extends Provision_Config {
public $template = 'global_settings.tpl.php';
public $description = 'Global settings.php file';
......
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