Skip to content
Permalink
Browse files

Removing dead code from the PluginTask.

  • Loading branch information...
markstory committed Oct 19, 2010
1 parent 6f29441 commit de615967fcb255dd7a86f6dfb332dd3eb26e188c
Showing with 0 additions and 10 deletions.
  1. +0 −10 cake/console/shells/tasks/plugin.php
@@ -27,12 +27,6 @@
*/
class PluginTask extends Shell {
/**
* Tasks
*
*/
public $tasks = array('Model', 'Controller', 'View');
/**
* path to CONTROLLERS directory
*
@@ -61,13 +55,9 @@ public function execute() {
if (isset($this->args[0])) {
$plugin = Inflector::camelize($this->args[0]);
$pluginPath = $this->_pluginPath($plugin);
$this->Dispatch->shiftArgs();
if (is_dir($pluginPath)) {
$this->out(sprintf(__('Plugin: %s'), $plugin));
$this->out(sprintf(__('Path: %s'), $pluginPath));
} elseif (isset($this->args[0])) {
$this->err(sprintf(__('%s in path %s not found.'), $plugin, $pluginPath));
$this->_stop();
} else {
$this->_interactive($plugin);
}

0 comments on commit de61596

Please sign in to comment.
You can’t perform that action at this time.