Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Turning off interactive for bake all commands.

  • Loading branch information...
commit f7a7b077408926e0c46fafa63e5b14c2a7e4cdc8 1 parent 1291d4f
@markstory markstory authored
View
5 cake/console/libs/tasks/controller.php
@@ -106,10 +106,10 @@ function execute() {
**/
function all() {
$ds = 'default';
- $ds = 'default';
if (isset($this->params['connection'])) {
$ds = $this->params['connection'];
}
+ $this->interactive = false;
$controllers = $this->listAll($ds, false);
foreach ($this->__tables as $table) {
$model = $this->_modelName($table);
@@ -547,6 +547,7 @@ function listAll($useDbConfig = 'default', $interactive = true) {
}
return $this->_controllerNames;
}
+ return $this->__tables;
}
/**
@@ -557,7 +558,7 @@ function listAll($useDbConfig = 'default', $interactive = true) {
*/
function getName() {
$useDbConfig = 'default';
- $controllers = $this->listAll($useDbConfig, 'Controllers');
+ $controllers = $this->listAll($useDbConfig);
$enteredController = '';
while ($enteredController == '') {
View
2  cake/console/libs/tasks/model.php
@@ -86,6 +86,8 @@ function all() {
$ds = $this->params['connection'];
}
$this->listAll($ds, false);
+ $this->interactive = false;
+
foreach ($this->__tables as $table) {
$modelClass = Inflector::classify($table);
$this->out(sprintf(__('Baking %s', true), $modelClass));
View
1  cake/console/libs/tasks/view.php
@@ -159,6 +159,7 @@ function all() {
$ds = 'default';
$actions = $this->scaffoldActions;
$tables = $this->Controller->listAll($ds, false);
+ $this->interactive = false;
foreach ($tables as $table) {
$model = $this->_modelName($table);
$this->controllerName = $this->_controllerName($model);
Please sign in to comment.
Something went wrong with that request. Please try again.