Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Removing directory checks. Console operations will simply create dire…
…ctories as needed.
  • Loading branch information
markstory committed Mar 5, 2010
1 parent 3e27549 commit 0c6722b
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions cake/console/libs/bake.php
Expand Up @@ -48,10 +48,6 @@ function loadTasks() {
parent::loadTasks();
$task = Inflector::classify($this->command);
if (isset($this->{$task}) && !in_array($task, array('Project', 'DbConfig'))) {
if (empty($this->{$task}->path)) {
$path = Inflector::underscore(Inflector::pluralize($this->command));
$this->{$task}->path = $this->params['working'] . DS . $path . DS;
}
if (isset($this->params['connection'])) {
$this->{$task}->connection = $this->params['connection'];
}
Expand All @@ -64,10 +60,6 @@ function loadTasks() {
if (isset($this->params['plugin'])) {
$this->{$task}->plugin = $this->params['plugin'];
}
if (!is_dir($this->{$task}->path)) {
$this->err(sprintf(__("%s directory could not be found.\nBe sure you have created %s", true), $task, $this->{$task}->path));
$this->_stop();
}
}
}

Expand Down

0 comments on commit 0c6722b

Please sign in to comment.