Fixing 'no' option when baking projects. Replying no, will enter

iteractive mode now.  Fixes 
This commit is contained in:
mark_story 2011-05-22 08:56:19 -04:00
parent 2b20eb8999
commit 4d76840d44

View file

@ -163,7 +163,8 @@ class ProjectTask extends Shell {
$looksGood = $this->in(__d('cake_console', 'Look okay?'), array('y', 'n', 'q'), 'y');
if (strtolower($looksGood) == 'y') {
switch (strtolower($looksGood)) {
case 'y':
$Folder = new Folder($skel);
if (!empty($this->params['empty'])) {
$skip = array();
@ -183,10 +184,12 @@ class ProjectTask extends Shell {
}
return true;
} elseif (strtolower($looksGood) == 'q') {
$this->out(__d('cake_console', 'Bake Aborted.'));
} else {
$this->execute(false);
case 'n':
unset($this->args[0]);
$this->execute();
return false;
case 'q':
$this->out(__d('cake_console', '<error>Bake Aborted.</error>'));
return false;
}
}