Skip to content

Commit

Permalink
Adding libs dir generation to PluginTask. Baked plugins now come with…
Browse files Browse the repository at this point in the history
… a libs dir.
  • Loading branch information
markstory committed Oct 28, 2009
1 parent 6f2ec8d commit 1e7c2bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cake/console/libs/tasks/plugin.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ function bake($plugin) {
'models' . DS . 'behaviors', 'models' . DS . 'behaviors',
'models' . DS . 'datasources', 'models' . DS . 'datasources',
'controllers' . DS . 'components', 'controllers' . DS . 'components',
'libs',
'views' . DS . 'helpers', 'views' . DS . 'helpers',
'tests' . DS . 'cases' . DS . 'components', 'tests' . DS . 'cases' . DS . 'components',
'tests' . DS . 'cases' . DS . 'helpers', 'tests' . DS . 'cases' . DS . 'helpers',
Expand Down
1 change: 1 addition & 0 deletions cake/tests/cases/console/libs/tasks/plugin.test.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ function testBakeFoldersAndFiles() {
$this->assertTrue(is_dir($path . DS . 'vendors' . DS . 'shells'), 'No vendors shells dir %s'); $this->assertTrue(is_dir($path . DS . 'vendors' . DS . 'shells'), 'No vendors shells dir %s');
$this->assertTrue(is_dir($path . DS . 'vendors' . DS . 'shells' . DS . 'tasks'), 'No vendors shells tasks dir %s'); $this->assertTrue(is_dir($path . DS . 'vendors' . DS . 'shells' . DS . 'tasks'), 'No vendors shells tasks dir %s');
$this->assertTrue(file_exists($path . DS . 'vendors' . DS . 'shells' . DS . 'tasks' . DS . 'empty'), 'No empty file %s'); $this->assertTrue(file_exists($path . DS . 'vendors' . DS . 'shells' . DS . 'tasks' . DS . 'empty'), 'No empty file %s');
$this->assertTrue(is_dir($path . DS . 'libs'), 'No libs dir %s');


$file = $path . DS . 'bake_test_plugin_app_controller.php'; $file = $path . DS . 'bake_test_plugin_app_controller.php';
$this->Task->expectAt(0, 'createFile', array($file, '*'), 'No AppController %s'); $this->Task->expectAt(0, 'createFile', array($file, '*'), 'No AppController %s');
Expand Down

0 comments on commit 1e7c2bb

Please sign in to comment.