Skip to content
This repository
Browse code

create a skeleton plugin to copy

need to replace __PLUGIN__ __PLURAL__ and __SINGULAR__ in filenames and
content to be flexible
  • Loading branch information...
commit 29489b114636f0441558bcae6fea30b4f3d71a5f 1 parent 45b24ed
Andy Dawson authored April 25, 2012

Showing 24 changed files with 9 additions and 1 deletion. Show diff stats Hide diff stats

  1. 0  .../Templates/plugin/Console/Command/Task/empty b/lib/Cake/Console/Templates/plugin/Console/Command/Task/empty
  2. 0  ...onsole/Templates/plugin/Console/Templates/empty b/lib/Cake/Console/Templates/plugin/Console/Templates/empty
  3. 0  .../Templates/plugin/Controller/Component/empty b/lib/Cake/Console/Templates/plugin/Controller/Component/empty
  4. 0  Cake/Console/Templates/plugin/Lib/empty b/lib/Cake/Console/Templates/plugin/Lib/empty
  5. 0  ...plates/plugin/Locale/eng/LC_MESSAGES/empty b/lib/Cake/Console/Templates/plugin/Locale/eng/LC_MESSAGES/empty
  6. 0  Cake/Console/Templates/plugin/Model/Behavior/empty b/lib/Cake/Console/Templates/plugin/Model/Behavior/empty
  7. 0  .../Console/Templates/plugin/Model/Datasource/empty b/lib/Cake/Console/Templates/plugin/Model/Datasource/empty
  8. 0  ...st/Case/Controller/Component/empty b/lib/Cake/Console/Templates/plugin/Test/Case/Controller/Component/empty
  9. 0  ...es/plugin/Test/Case/Model/Behavior/empty b/lib/Cake/Console/Templates/plugin/Test/Case/Model/Behavior/empty
  10. 0  ...emplates/plugin/Test/Case/View/Helper/empty b/lib/Cake/Console/Templates/plugin/Test/Case/View/Helper/empty
  11. 0  Cake/Console/Templates/plugin/Test/Fixture/empty b/lib/Cake/Console/Templates/plugin/Test/Fixture/empty
  12. 0  Cake/Console/Templates/plugin/Vendor/empty b/lib/Cake/Console/Templates/plugin/Vendor/empty
  13. 0  Cake/Console/Templates/plugin/View/Elements/empty b/lib/Cake/Console/Templates/plugin/View/Elements/empty
  14. 0  Cake/Console/Templates/plugin/View/Helper/empty b/lib/Cake/Console/Templates/plugin/View/Helper/empty
  15. 0  Cake/Console/Templates/plugin/View/__PLUGIN__/empty b/lib/Cake/Console/Templates/plugin/View/__PLUGIN__/empty
  16. 0  Cake/Console/Templates/plugin/webroot/css/empty b/lib/Cake/Console/Templates/plugin/webroot/css/empty
  17. 0  Cake/Console/Templates/plugin/webroot/files/empty b/lib/Cake/Console/Templates/plugin/webroot/files/empty
  18. 0  Cake/Console/Templates/plugin/webroot/img/empty b/lib/Cake/Console/Templates/plugin/webroot/img/empty
  19. 0  Cake/Console/Templates/plugin/webroot/js/empty b/lib/Cake/Console/Templates/plugin/webroot/js/empty
  20. 2  lib/Cake/Console/Command/Task/PluginTask.php
  21. 1  lib/Cake/Console/Templates/plugin/Config/bootstrap.php
  22. 1  lib/Cake/Console/Templates/plugin/Config/routes.php
  23. 3  lib/Cake/Console/Templates/plugin/Controller/__PLUGIN__AppController.php
  24. 3  lib/Cake/Console/Templates/plugin/Model/__PLUGIN__AppModel.php
0  ...mplates/plugin/Console/Command/Task/empty b/lib/Cake/Console/Templates/plugin/Console/Command/Task/empty
No changes.
0  ...ole/Templates/plugin/Console/Templates/empty b/lib/Cake/Console/Templates/plugin/Console/Templates/empty
No changes.
0  ...mplates/plugin/Controller/Component/empty b/lib/Cake/Console/Templates/plugin/Controller/Component/empty
No changes.
0  Cake/Console/Templates/plugin/Lib/empty b/lib/Cake/Console/Templates/plugin/Lib/empty
No changes.
0  ...tes/plugin/Locale/eng/LC_MESSAGES/empty b/lib/Cake/Console/Templates/plugin/Locale/eng/LC_MESSAGES/empty
No changes.
0  Cake/Console/Templates/plugin/Model/Behavior/empty b/lib/Cake/Console/Templates/plugin/Model/Behavior/empty
No changes.
0  ...nsole/Templates/plugin/Model/Datasource/empty b/lib/Cake/Console/Templates/plugin/Model/Datasource/empty
No changes.
0  ...Case/Controller/Component/empty b/lib/Cake/Console/Templates/plugin/Test/Case/Controller/Component/empty
No changes.
0  ...plugin/Test/Case/Model/Behavior/empty b/lib/Cake/Console/Templates/plugin/Test/Case/Model/Behavior/empty
No changes.
0  ...lates/plugin/Test/Case/View/Helper/empty b/lib/Cake/Console/Templates/plugin/Test/Case/View/Helper/empty
No changes.
0  Cake/Console/Templates/plugin/Test/Fixture/empty b/lib/Cake/Console/Templates/plugin/Test/Fixture/empty
No changes.
0  Cake/Console/Templates/plugin/Vendor/empty b/lib/Cake/Console/Templates/plugin/Vendor/empty
No changes.
0  Cake/Console/Templates/plugin/View/Elements/empty b/lib/Cake/Console/Templates/plugin/View/Elements/empty
No changes.
0  Cake/Console/Templates/plugin/View/Helper/empty b/lib/Cake/Console/Templates/plugin/View/Helper/empty
No changes.
0  ...Console/Templates/plugin/View/__PLUGIN__/empty b/lib/Cake/Console/Templates/plugin/View/__PLUGIN__/empty
No changes.
0  Cake/Console/Templates/plugin/webroot/css/empty b/lib/Cake/Console/Templates/plugin/webroot/css/empty
No changes.
0  Cake/Console/Templates/plugin/webroot/files/empty b/lib/Cake/Console/Templates/plugin/webroot/files/empty
No changes.
0  Cake/Console/Templates/plugin/webroot/img/empty b/lib/Cake/Console/Templates/plugin/webroot/img/empty
No changes.
0  Cake/Console/Templates/plugin/webroot/js/empty b/lib/Cake/Console/Templates/plugin/webroot/js/empty
No changes.
2  lib/Cake/Console/Command/Task/PluginTask.php
@@ -98,7 +98,7 @@ public function bake($plugin, $skel = null, $skip = array('empty')) {
98 98
 			$skel = $this->in(
99 99
 				__d('cake_console', "What is the path to the directory layout you wish to copy?"),
100 100
 				null,
101  
-				CAKE . 'Console' . DS . 'Templates' . DS . 'skel'
  101
+                    CAKE . 'Console' . DS . 'Templates' . DS . 'plugin'
102 102
 			);
103 103
 			if (!$skel) {
104 104
 				$this->err(__d('cake_console', 'The directory path you supplied was empty. Please try again.'));
1  lib/Cake/Console/Templates/plugin/Config/bootstrap.php
... ...
@@ -0,0 +1 @@
  1
+<?php
1  lib/Cake/Console/Templates/plugin/Config/routes.php
... ...
@@ -0,0 +1 @@
  1
+<?php
3  lib/Cake/Console/Templates/plugin/Controller/__PLUGIN__AppController.php
... ...
@@ -0,0 +1,3 @@
  1
+<?php
  2
+class __PLUGIN__AppController extends Controller {
  3
+}
3  lib/Cake/Console/Templates/plugin/Model/__PLUGIN__AppModel.php
... ...
@@ -0,0 +1,3 @@
  1
+<?php
  2
+class __PLUGIN__AppModel extends Model {
  3
+}

0 notes on commit 29489b1

Please sign in to comment.
Something went wrong with that request. Please try again.