Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
@AD7six AD7six authored
Showing with 9 additions and 1 deletion.
  1. +1 −1  lib/Cake/Console/Command/Task/PluginTask.php
  2. +1 −0  lib/Cake/Console/Templates/plugin/Config/bootstrap.php
  3. +1 −0  lib/Cake/Console/Templates/plugin/Config/routes.php
  4. 0  lib/Cake/Console/Templates/plugin/Console/Command/Task/empty
  5. 0  lib/Cake/Console/Templates/plugin/Console/Templates/empty
  6. 0  lib/Cake/Console/Templates/plugin/Controller/Component/empty
  7. +3 −0  lib/Cake/Console/Templates/plugin/Controller/__PLUGIN__AppController.php
  8. 0  lib/Cake/Console/Templates/plugin/Lib/empty
  9. 0  lib/Cake/Console/Templates/plugin/Locale/eng/LC_MESSAGES/empty
  10. 0  lib/Cake/Console/Templates/plugin/Model/Behavior/empty
  11. 0  lib/Cake/Console/Templates/plugin/Model/Datasource/empty
  12. +3 −0  lib/Cake/Console/Templates/plugin/Model/__PLUGIN__AppModel.php
  13. 0  lib/Cake/Console/Templates/plugin/Test/Case/Controller/Component/empty
  14. 0  lib/Cake/Console/Templates/plugin/Test/Case/Model/Behavior/empty
  15. 0  lib/Cake/Console/Templates/plugin/Test/Case/View/Helper/empty
  16. 0  lib/Cake/Console/Templates/plugin/Test/Fixture/empty
  17. 0  lib/Cake/Console/Templates/plugin/Vendor/empty
  18. 0  lib/Cake/Console/Templates/plugin/View/Elements/empty
  19. 0  lib/Cake/Console/Templates/plugin/View/Helper/empty
  20. 0  lib/Cake/Console/Templates/plugin/View/__PLUGIN__/empty
  21. 0  lib/Cake/Console/Templates/plugin/webroot/css/empty
  22. 0  lib/Cake/Console/Templates/plugin/webroot/files/empty
  23. 0  lib/Cake/Console/Templates/plugin/webroot/img/empty
  24. 0  lib/Cake/Console/Templates/plugin/webroot/js/empty
View
2  lib/Cake/Console/Command/Task/PluginTask.php
@@ -98,7 +98,7 @@ public function bake($plugin, $skel = null, $skip = array('empty')) {
$skel = $this->in(
__d('cake_console', "What is the path to the directory layout you wish to copy?"),
null,
- CAKE . 'Console' . DS . 'Templates' . DS . 'skel'
+ CAKE . 'Console' . DS . 'Templates' . DS . 'plugin'
);
if (!$skel) {
$this->err(__d('cake_console', 'The directory path you supplied was empty. Please try again.'));
View
1  lib/Cake/Console/Templates/plugin/Config/bootstrap.php
@@ -0,0 +1 @@
+<?php
View
1  lib/Cake/Console/Templates/plugin/Config/routes.php
@@ -0,0 +1 @@
+<?php
View
0  lib/Cake/Console/Templates/plugin/Console/Command/Task/empty
No changes.
View
0  lib/Cake/Console/Templates/plugin/Console/Templates/empty
No changes.
View
0  lib/Cake/Console/Templates/plugin/Controller/Component/empty
No changes.
View
3  lib/Cake/Console/Templates/plugin/Controller/__PLUGIN__AppController.php
@@ -0,0 +1,3 @@
+<?php
+class __PLUGIN__AppController extends Controller {
+}
View
0  lib/Cake/Console/Templates/plugin/Lib/empty
No changes.
View
0  lib/Cake/Console/Templates/plugin/Locale/eng/LC_MESSAGES/empty
No changes.
View
0  lib/Cake/Console/Templates/plugin/Model/Behavior/empty
No changes.
View
0  lib/Cake/Console/Templates/plugin/Model/Datasource/empty
No changes.
View
3  lib/Cake/Console/Templates/plugin/Model/__PLUGIN__AppModel.php
@@ -0,0 +1,3 @@
+<?php
+class __PLUGIN__AppModel extends Model {
+}
View
0  lib/Cake/Console/Templates/plugin/Test/Case/Controller/Component/empty
No changes.
View
0  lib/Cake/Console/Templates/plugin/Test/Case/Model/Behavior/empty
No changes.
View
0  lib/Cake/Console/Templates/plugin/Test/Case/View/Helper/empty
No changes.
View
0  lib/Cake/Console/Templates/plugin/Test/Fixture/empty
No changes.
View
0  lib/Cake/Console/Templates/plugin/Vendor/empty
No changes.
View
0  lib/Cake/Console/Templates/plugin/View/Elements/empty
No changes.
View
0  lib/Cake/Console/Templates/plugin/View/Helper/empty
No changes.
View
0  lib/Cake/Console/Templates/plugin/View/__PLUGIN__/empty
No changes.
View
0  lib/Cake/Console/Templates/plugin/webroot/css/empty
No changes.
View
0  lib/Cake/Console/Templates/plugin/webroot/files/empty
No changes.
View
0  lib/Cake/Console/Templates/plugin/webroot/img/empty
No changes.
View
0  lib/Cake/Console/Templates/plugin/webroot/js/empty
No changes.
Please sign in to comment.
Something went wrong with that request. Please try again.