mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-08-29 10:38:57 +02:00
New LOCK feature.
This commit is contained in:
@@ -31,11 +31,17 @@ class Mage_Task_Releases
|
||||
{
|
||||
$this->_config = $config;
|
||||
|
||||
if ($config->getEnvironment() == '') {
|
||||
if ($config->getEnvironmentName() == '') {
|
||||
Mage_Console::output('<red>You must specify an environment</red>', 0, 2);
|
||||
return;
|
||||
}
|
||||
|
||||
$lockFile = '.mage/' . $config->getEnvironmentName() . '.lock';
|
||||
if (file_exists($lockFile)) {
|
||||
Mage_Console::output('<red>This environment is locked!</red>', 0, 2);
|
||||
return;
|
||||
}
|
||||
|
||||
// Run Tasks for Deployment
|
||||
$hosts = $config->getHosts();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user