Permalink
Browse files

Turning off interactive for bake all commands.

  • Loading branch information...
1 parent 1291d4f commit f7a7b077408926e0c46fafa63e5b14c2a7e4cdc8 @markstory markstory committed Apr 28, 2009
@@ -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 == '') {
@@ -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));
@@ -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);

0 comments on commit f7a7b07

Please sign in to comment.