Skip to content

Commit

Permalink
Moving features up to BakeTask.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Mar 5, 2010
1 parent 4a6ab01 commit 01ea34f
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 48 deletions.
16 changes: 16 additions & 0 deletions cake/console/libs/tasks/bake.php
Expand Up @@ -25,6 +25,22 @@ class BakeTask extends Shell {
*/
var $name = null;

/**
* Name of plugin
*
* @var string
* @access public
*/
var $plugin = null;

/**
* The db connection being used for baking
*
* @var string
* @access public
*/
var $connection = null;

/**
* Gets the path for output. Checks the plugin property
* and returns the correct path.
Expand Down
7 changes: 0 additions & 7 deletions cake/console/libs/tasks/controller.php
Expand Up @@ -29,13 +29,6 @@
class ControllerTask extends BakeTask {

var $name = 'Controller';
/**
* Name of plugin
*
* @var string
* @access public
*/
var $plugin = null;

/**
* Tasks to be loaded by this Task
Expand Down
20 changes: 2 additions & 18 deletions cake/console/libs/tasks/fixture.php
Expand Up @@ -17,22 +17,14 @@
* @since CakePHP(tm) v 1.3
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/

include_once dirname(__FILE__) . DS . 'bake.php';
/**
* Task class for creating and updating fixtures files.
*
* @package cake
* @subpackage cake.cake.console.libs.tasks
*/
class FixtureTask extends Shell {

/**
* Name of plugin
*
* @var string
* @access public
*/
var $plugin = null;
class FixtureTask extends BakeTask {

/**
* Tasks to be loaded by this Task
Expand All @@ -50,14 +42,6 @@ class FixtureTask extends Shell {
*/
var $path = null;

/**
* The db connection being used for baking
*
* @var string
* @access public
*/
var $connection = null;

/**
* Schema instance
*
Expand Down
15 changes: 0 additions & 15 deletions cake/console/libs/tasks/model.php
Expand Up @@ -29,21 +29,6 @@
class ModelTask extends BakeTask {

var $name = 'Model';
/**
* Name of plugin
*
* @var string
* @access public
*/
var $plugin = null;

/**
* Name of the db connection used.
*
* @var string
* @access public
*/
var $connection = null;

/**
* path to MODELS directory
Expand Down
8 changes: 0 additions & 8 deletions cake/console/libs/tasks/view.php
Expand Up @@ -30,14 +30,6 @@ class ViewTask extends BakeTask {

var $name = 'View';

/**
* Name of plugin
*
* @var string
* @access public
*/
var $plugin = null;

/**
* Tasks to be loaded by this Task
*
Expand Down

0 comments on commit 01ea34f

Please sign in to comment.