Removing directory checks. Console operations will simply create directories as needed.

This commit is contained in:
Mark Story 2010-03-04 20:44:45 -05:00
parent 3e275494e1
commit 0c6722b191

View file

@ -48,10 +48,6 @@ class BakeShell extends Shell {
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'];
}
@ -64,10 +60,6 @@ class BakeShell extends Shell {
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();
}
}
}