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:
@@ -18,11 +18,17 @@ class Mage_Task_Deploy
|
||||
$this->_startTime = time();
|
||||
$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 Pre-Deployment Tasks
|
||||
$this->_runNonDeploymentTasks('pre-deploy', $config, 'Pre-Deployment');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user