Moving features up to BakeTask.

This commit is contained in:
Mark Story 2010-03-04 21:30:26 -05:00
parent 4a6ab01134
commit 01ea34f452
5 changed files with 18 additions and 48 deletions

View file

@ -25,6 +25,22 @@ class BakeTask extends Shell {
*/ */
var $name = null; 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 * Gets the path for output. Checks the plugin property
* and returns the correct path. * and returns the correct path.

View file

@ -29,13 +29,6 @@ include_once dirname(__FILE__) . DS . 'bake.php';
class ControllerTask extends BakeTask { class ControllerTask extends BakeTask {
var $name = 'Controller'; var $name = 'Controller';
/**
* Name of plugin
*
* @var string
* @access public
*/
var $plugin = null;
/** /**
* Tasks to be loaded by this Task * Tasks to be loaded by this Task

View file

@ -17,22 +17,14 @@
* @since CakePHP(tm) v 1.3 * @since CakePHP(tm) v 1.3
* @license MIT License (http://www.opensource.org/licenses/mit-license.php) * @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. * Task class for creating and updating fixtures files.
* *
* @package cake * @package cake
* @subpackage cake.cake.console.libs.tasks * @subpackage cake.cake.console.libs.tasks
*/ */
class FixtureTask extends Shell { class FixtureTask extends BakeTask {
/**
* Name of plugin
*
* @var string
* @access public
*/
var $plugin = null;
/** /**
* Tasks to be loaded by this Task * Tasks to be loaded by this Task
@ -50,14 +42,6 @@ class FixtureTask extends Shell {
*/ */
var $path = null; var $path = null;
/**
* The db connection being used for baking
*
* @var string
* @access public
*/
var $connection = null;
/** /**
* Schema instance * Schema instance
* *

View file

@ -29,21 +29,6 @@ include_once dirname(__FILE__) . DS . 'bake.php';
class ModelTask extends BakeTask { class ModelTask extends BakeTask {
var $name = 'Model'; 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 * path to MODELS directory

View file

@ -30,14 +30,6 @@ class ViewTask extends BakeTask {
var $name = 'View'; var $name = 'View';
/**
* Name of plugin
*
* @var string
* @access public
*/
var $plugin = null;
/** /**
* Tasks to be loaded by this Task * Tasks to be loaded by this Task
* *