mirror of
https://github.com/hauke68/Magallanes.git
synced 2025-09-13 20:50:18 +02:00
Changes configuration files extensions.
From "yaml" to "yml"
This commit is contained in:
parent
b65632d628
commit
5359a7afbd
@ -9,22 +9,22 @@ class Mage_Config
|
|||||||
|
|
||||||
public function loadEnvironment($environment)
|
public function loadEnvironment($environment)
|
||||||
{
|
{
|
||||||
if (($environment != '') && file_exists('.mage/config/environment/' . $environment . '.yaml')) {
|
if (($environment != '') && file_exists('.mage/config/environment/' . $environment . '.yml')) {
|
||||||
$this->_environment = @yaml_parse_file('.mage/config/environment/' . $environment . '.yaml');
|
$this->_environment = @yaml_parse_file('.mage/config/environment/' . $environment . '.yml');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function loadSCM()
|
public function loadSCM()
|
||||||
{
|
{
|
||||||
if (file_exists('.mage/config/scm.yaml')) {
|
if (file_exists('.mage/config/scm.yml')) {
|
||||||
$this->_scm = @yaml_parse_file('.mage/config/scm.yaml');
|
$this->_scm = @yaml_parse_file('.mage/config/scm.yml');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function loadGeneral()
|
public function loadGeneral()
|
||||||
{
|
{
|
||||||
if (file_exists('.mage/config/general.yaml')) {
|
if (file_exists('.mage/config/general.yml')) {
|
||||||
$this->_general = @yaml_parse_file('.mage/config/general.yaml');
|
$this->_general = @yaml_parse_file('.mage/config/general.yml');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ class Mage_Task_Add
|
|||||||
public function environment($environmentName, $withRelases = false)
|
public function environment($environmentName, $withRelases = false)
|
||||||
{
|
{
|
||||||
$environmentName = strtolower($environmentName);
|
$environmentName = strtolower($environmentName);
|
||||||
$environmentConfigFile = '.mage/config/environment/' . $environmentName . '.yaml';
|
$environmentConfigFile = '.mage/config/environment/' . $environmentName . '.yml';
|
||||||
|
|
||||||
Mage_Console::output('Adding new environment: <dark_gray>' . $environmentName . '</dark_gray>');
|
Mage_Console::output('Adding new environment: <dark_gray>' . $environmentName . '</dark_gray>');
|
||||||
|
|
||||||
|
@ -17,8 +17,8 @@ class Mage_Task_Init
|
|||||||
$results[] = mkdir($configDir . '/tasks');
|
$results[] = mkdir($configDir . '/tasks');
|
||||||
$results[] = mkdir($configDir . '/config');
|
$results[] = mkdir($configDir . '/config');
|
||||||
$results[] = mkdir($configDir . '/config/environment');
|
$results[] = mkdir($configDir . '/config/environment');
|
||||||
$results[] = file_put_contents($configDir . '/config/global.yaml', '#global settings' . PHP_EOL . PHP_EOL);
|
$results[] = file_put_contents($configDir . '/config/global.yml', '#global settings' . PHP_EOL . PHP_EOL);
|
||||||
$results[] = file_put_contents($configDir . '/config/scm.yaml', '#scm settings' . PHP_EOL . PHP_EOL);
|
$results[] = file_put_contents($configDir . '/config/scm.yml', '#scm settings' . PHP_EOL . PHP_EOL);
|
||||||
|
|
||||||
if (!in_array(false, $results)) {
|
if (!in_array(false, $results)) {
|
||||||
Mage_Console::output('<light_green>Success!!</light_green> The configuration for <dark_gray>Magallanes</dark_gray> has been generated at <blue>.mage</blue> directory.');
|
Mage_Console::output('<light_green>Success!!</light_green> The configuration for <dark_gray>Magallanes</dark_gray> has been generated at <blue>.mage</blue> directory.');
|
||||||
|
Loading…
Reference in New Issue
Block a user