add user data and message to lock command

This commit is contained in:
Rodmen
2014-06-26 11:05:00 -03:00
parent b229e69c45
commit 732cc20f1f
5 changed files with 33 additions and 5 deletions
+2 -1
View File
@@ -37,6 +37,7 @@ class ReleasesCommand extends AbstractCommand implements RequiresEnvironment
$lockFile = '.mage/' . $this->getConfig()->getEnvironment() . '.lock';
if (file_exists($lockFile) && ($subcommand == 'rollback')) {
Console::output('<red>This environment is locked!</red>', 1, 2);
echo file_get_contents($lockFile);
return null;
}
@@ -70,4 +71,4 @@ class ReleasesCommand extends AbstractCommand implements RequiresEnvironment
return $result;
}
}
}