Permalink
Browse files

added flavors

  • Loading branch information...
1 parent f965d3f commit 5454822add9b0aca9b106e825b85434166ecabe6 @dann committed Mar 1, 2009
Showing with 7,043 additions and 28 deletions.
  1. +1 −0 angelos-core/Makefile.PL
  2. +18 −0 angelos-core/bugs/issue-cf1856865b5da9cbf0fc6b063253b7f4d03b564b.yaml
  3. +18 −0 angelos-core/bugs/issue-f589310ea45ca30067558e5414cfee3d65c161b3.yaml
  4. +1 −0 angelos-core/flavors/flavors/app/additional/config.yaml
  5. +7 −0 angelos-core/flavors/flavors/app/config.yaml
  6. +8 −0 angelos-core/flavors/flavors/app/template/.gitignore
  7. +4 −0 angelos-core/flavors/flavors/app/template/Changes
  8. +19 −0 angelos-core/flavors/flavors/app/template/MANIFEST.SKIP
  9. +11 −0 angelos-core/flavors/flavors/app/template/Makefile.PL
  10. +27 −0 angelos-core/flavors/flavors/app/template/README
  11. +8 −0 angelos-core/flavors/flavors/app/template/bin/cli
  12. +25 −0 angelos-core/flavors/flavors/app/template/bin/server
  13. +10 −0 angelos-core/flavors/flavors/app/template/conf/environments/development.yaml
  14. +8 −0 angelos-core/flavors/flavors/app/template/conf/environments/production.yaml
  15. +7 −0 angelos-core/flavors/flavors/app/template/conf/environments/testing.yaml
  16. +18 −0 angelos-core/flavors/flavors/app/template/conf/log.yaml
  17. +6 −0 angelos-core/flavors/flavors/app/template/conf/routes.pl
  18. +41 −0 angelos-core/flavors/flavors/app/template/lib/____var-module_path-var____.pm
  19. +4 −0 angelos-core/flavors/flavors/app/template/lib/____var-module_path-var____/CLI.pm
  20. +36 −0 angelos-core/flavors/flavors/app/template/lib/____var-module_path-var____/CLI/Command/Echo.pm
  21. +11 −0 angelos-core/flavors/flavors/app/template/lib/____var-module_path-var____/Cache.pm
  22. +11 −0 angelos-core/flavors/flavors/app/template/lib/____var-module_path-var____/Config.pm
  23. +6 −0 angelos-core/flavors/flavors/app/template/lib/____var-module_path-var____/Home.pm
  24. +13 −0 angelos-core/flavors/flavors/app/template/lib/____var-module_path-var____/Logger.pm
  25. +9 −0 angelos-core/flavors/flavors/app/template/lib/____var-module_path-var____/Role/Configurable.pm
  26. +9 −0 angelos-core/flavors/flavors/app/template/lib/____var-module_path-var____/Role/HomeAware.pm
  27. +9 −0 angelos-core/flavors/flavors/app/template/lib/____var-module_path-var____/Role/Loggable.pm
  28. +18 −0 angelos-core/flavors/flavors/app/template/lib/____var-module_path-var____/Role/SchemaAware.pm
  29. +27 −0 angelos-core/flavors/flavors/app/template/lib/____var-module_path-var____/Schema.pm
  30. +13 −0 angelos-core/flavors/flavors/app/template/lib/____var-module_path-var____/Web/Controller/Root.pm
  31. +9 −0 angelos-core/flavors/flavors/app/template/lib/____var-module_path-var____/Web/View/TT.pm
  32. 0 angelos-core/flavors/flavors/app/template/log/error.log
  33. 0 angelos-core/flavors/flavors/app/template/log/server.log
  34. +4 −0 angelos-core/flavors/flavors/app/template/share/root/static/css/README
  35. +7 −0 angelos-core/flavors/flavors/app/template/share/root/static/css/fonts-min.css
  36. +134 −0 angelos-core/flavors/flavors/app/template/share/root/static/css/forms.css
  37. +114 −0 angelos-core/flavors/flavors/app/template/share/root/static/css/framework.html
  38. +52 −0 angelos-core/flavors/flavors/app/template/share/root/static/css/layout-1col.css
  39. +56 −0 angelos-core/flavors/flavors/app/template/share/root/static/css/layout-navleft-1col.css
  40. +64 −0 angelos-core/flavors/flavors/app/template/share/root/static/css/layout-navleft-2col.css
  41. +57 −0 angelos-core/flavors/flavors/app/template/share/root/static/css/layout-navtop-1col.css
  42. +68 −0 angelos-core/flavors/flavors/app/template/share/root/static/css/layout-navtop-3col.css
  43. +61 −0 angelos-core/flavors/flavors/app/template/share/root/static/css/layout-navtop-localleft.css
  44. +61 −0 angelos-core/flavors/flavors/app/template/share/root/static/css/layout-navtop-subright.css
  45. +152 −0 angelos-core/flavors/flavors/app/template/share/root/static/css/layout.css
  46. +105 −0 angelos-core/flavors/flavors/app/template/share/root/static/css/nav-horizontal.css
  47. +104 −0 angelos-core/flavors/flavors/app/template/share/root/static/css/nav-vertical.css
  48. +7 −0 angelos-core/flavors/flavors/app/template/share/root/static/css/reset-min.css
  49. +64 −0 angelos-core/flavors/flavors/app/template/share/root/static/css/tools.css
  50. +228 −0 angelos-core/flavors/flavors/app/template/share/root/static/css/typo.css
  51. +32 −0 angelos-core/flavors/flavors/app/template/share/root/static/js/jquery-1.2.6.min.js
  52. +11 −0 angelos-core/flavors/flavors/app/template/share/root/templates/root/index.tt
  53. +12 −0 angelos-core/flavors/flavors/app/template/t/00_load_all.t
  54. +27 −0 angelos-core/flavors/flavors/app/template/t/integration/01_basic.t
  55. +3 −0 angelos-core/flavors/flavors/app/template/tools/autotest
  56. +2 −0 angelos-core/flavors/flavors/app/template/tools/profile_module_memory
  57. +33 −0 angelos-core/flavors/flavors/app/template/tools/profile_module_memory.pl
  58. +9 −0 angelos-core/flavors/flavors/app/template/tools/test_coverage
  59. +2 −0 angelos-core/flavors/flavors/app/template/tools/test_it
  60. +37 −0 angelos-core/flavors/flavors/app/template/tools/test_pt_simple.pl
  61. +3 −0 angelos-core/flavors/flavors/app/template/tools/test_ut
  62. +10 −0 angelos-core/flavors/flavors/app/template/xt/01_podspell.t
  63. +8 −0 angelos-core/flavors/flavors/app/template/xt/02_perlcritic.t
  64. +4 −0 angelos-core/flavors/flavors/app/template/xt/03_pod.t
  65. +2 −0 angelos-core/flavors/flavors/app/template/xt/perlcriticrc
  66. +1 −0 angelos-core/flavors/flavors/default/additional/config.yaml
  67. +6 −0 angelos-core/flavors/flavors/default/config.yaml
  68. +7 −0 angelos-core/flavors/flavors/default/template/.gitignore
  69. +4 −0 angelos-core/flavors/flavors/default/template/Changes
  70. +19 −0 angelos-core/flavors/flavors/default/template/MANIFEST.SKIP
  71. +15 −0 angelos-core/flavors/flavors/default/template/Makefile.PL
  72. +27 −0 angelos-core/flavors/flavors/default/template/README
  73. +25 −0 angelos-core/flavors/flavors/default/template/bin/server
  74. +12 −0 angelos-core/flavors/flavors/default/template/conf/config.yaml
  75. +18 −0 angelos-core/flavors/flavors/default/template/conf/log.yaml
  76. +6 −0 angelos-core/flavors/flavors/default/template/conf/routes.pl
  77. +43 −0 angelos-core/flavors/flavors/default/template/lib/____var-module_path-var____.pm
  78. +14 −0 angelos-core/flavors/flavors/default/template/lib/____var-module_path-var____/Controller/Root.pm
  79. +9 −0 angelos-core/flavors/flavors/default/template/lib/____var-module_path-var____/View/TT.pm
  80. 0 angelos-core/flavors/flavors/default/template/log/error.log
  81. 0 angelos-core/flavors/flavors/default/template/log/server.log
  82. +4 −0 angelos-core/flavors/flavors/default/template/share/root/static/css/README
  83. +7 −0 angelos-core/flavors/flavors/default/template/share/root/static/css/fonts-min.css
  84. +134 −0 angelos-core/flavors/flavors/default/template/share/root/static/css/forms.css
  85. +114 −0 angelos-core/flavors/flavors/default/template/share/root/static/css/framework.html
  86. +52 −0 angelos-core/flavors/flavors/default/template/share/root/static/css/layout-1col.css
  87. +56 −0 angelos-core/flavors/flavors/default/template/share/root/static/css/layout-navleft-1col.css
  88. +64 −0 angelos-core/flavors/flavors/default/template/share/root/static/css/layout-navleft-2col.css
  89. +57 −0 angelos-core/flavors/flavors/default/template/share/root/static/css/layout-navtop-1col.css
  90. +68 −0 angelos-core/flavors/flavors/default/template/share/root/static/css/layout-navtop-3col.css
  91. +61 −0 angelos-core/flavors/flavors/default/template/share/root/static/css/layout-navtop-localleft.css
  92. +61 −0 angelos-core/flavors/flavors/default/template/share/root/static/css/layout-navtop-subright.css
  93. +152 −0 angelos-core/flavors/flavors/default/template/share/root/static/css/layout.css
  94. +105 −0 angelos-core/flavors/flavors/default/template/share/root/static/css/nav-horizontal.css
  95. +104 −0 angelos-core/flavors/flavors/default/template/share/root/static/css/nav-vertical.css
  96. +7 −0 angelos-core/flavors/flavors/default/template/share/root/static/css/reset-min.css
  97. +64 −0 angelos-core/flavors/flavors/default/template/share/root/static/css/tools.css
  98. +228 −0 angelos-core/flavors/flavors/default/template/share/root/static/css/typo.css
  99. +32 −0 angelos-core/flavors/flavors/default/template/share/root/static/js/jquery-1.2.6.min.js
  100. +10 −0 angelos-core/flavors/flavors/default/template/share/root/templates/root/index.tt
  101. +4 −0 angelos-core/flavors/flavors/default/template/t/00_compile.t
  102. +10 −0 angelos-core/flavors/flavors/default/template/xt/01_podspell.t
  103. +8 −0 angelos-core/flavors/flavors/default/template/xt/02_perlcritic.t
  104. +4 −0 angelos-core/flavors/flavors/default/template/xt/03_pod.t
  105. +2 −0 angelos-core/flavors/flavors/default/template/xt/perlcriticrc
  106. +1 −0 angelos-core/flavors/flavors/plugin-controller/additional/config.yaml
  107. +7 −0 angelos-core/flavors/flavors/plugin-controller/config.yaml
  108. +7 −0 angelos-core/flavors/flavors/plugin-controller/template/.gitignore
  109. +4 −0 angelos-core/flavors/flavors/plugin-controller/template/Changes
  110. +19 −0 angelos-core/flavors/flavors/plugin-controller/template/MANIFEST.SKIP
  111. +13 −0 angelos-core/flavors/flavors/plugin-controller/template/Makefile.PL
  112. +27 −0 angelos-core/flavors/flavors/plugin-controller/template/README
  113. +8 −0 angelos-core/flavors/flavors/plugin-controller/template/bin/cli
  114. +25 −0 angelos-core/flavors/flavors/plugin-controller/template/bin/server
  115. +12 −0 angelos-core/flavors/flavors/plugin-controller/template/conf/config.yaml
  116. +18 −0 angelos-core/flavors/flavors/plugin-controller/template/conf/log.yaml
  117. +6 −0 angelos-core/flavors/flavors/plugin-controller/template/conf/routes.pl
  118. +43 −0 angelos-core/flavors/flavors/plugin-controller/template/lib/____var-module_path-var____.pm
  119. +4 −0 angelos-core/flavors/flavors/plugin-controller/template/lib/____var-module_path-var____/CLI.pm
  120. +36 −0 ...re/flavors/flavors/plugin-controller/template/lib/____var-module_path-var____/CLI/Command/Echo.pm
  121. +13 −0 ...flavors/flavors/plugin-controller/template/lib/____var-module_path-var____/Web/Controller/Root.pm
  122. +9 −0 ...os-core/flavors/flavors/plugin-controller/template/lib/____var-module_path-var____/Web/View/TT.pm
  123. 0 angelos-core/flavors/flavors/plugin-controller/template/log/error.log
  124. 0 angelos-core/flavors/flavors/plugin-controller/template/log/server.log
  125. +4 −0 angelos-core/flavors/flavors/plugin-controller/template/share/root/static/css/README
  126. +7 −0 angelos-core/flavors/flavors/plugin-controller/template/share/root/static/css/fonts-min.css
  127. +134 −0 angelos-core/flavors/flavors/plugin-controller/template/share/root/static/css/forms.css
  128. +114 −0 angelos-core/flavors/flavors/plugin-controller/template/share/root/static/css/framework.html
  129. +52 −0 angelos-core/flavors/flavors/plugin-controller/template/share/root/static/css/layout-1col.css
  130. +56 −0 ...los-core/flavors/flavors/plugin-controller/template/share/root/static/css/layout-navleft-1col.css
  131. +64 −0 ...los-core/flavors/flavors/plugin-controller/template/share/root/static/css/layout-navleft-2col.css
  132. +57 −0 angelos-core/flavors/flavors/plugin-controller/template/share/root/static/css/layout-navtop-1col.css
  133. +68 −0 angelos-core/flavors/flavors/plugin-controller/template/share/root/static/css/layout-navtop-3col.css
  134. +61 −0 ...core/flavors/flavors/plugin-controller/template/share/root/static/css/layout-navtop-localleft.css
  135. +61 −0 ...-core/flavors/flavors/plugin-controller/template/share/root/static/css/layout-navtop-subright.css
  136. +152 −0 angelos-core/flavors/flavors/plugin-controller/template/share/root/static/css/layout.css
  137. +105 −0 angelos-core/flavors/flavors/plugin-controller/template/share/root/static/css/nav-horizontal.css
  138. +104 −0 angelos-core/flavors/flavors/plugin-controller/template/share/root/static/css/nav-vertical.css
  139. +7 −0 angelos-core/flavors/flavors/plugin-controller/template/share/root/static/css/reset-min.css
  140. +64 −0 angelos-core/flavors/flavors/plugin-controller/template/share/root/static/css/tools.css
  141. +228 −0 angelos-core/flavors/flavors/plugin-controller/template/share/root/static/css/typo.css
  142. +32 −0 angelos-core/flavors/flavors/plugin-controller/template/share/root/static/js/jquery-1.2.6.min.js
  143. +11 −0 angelos-core/flavors/flavors/plugin-controller/template/share/root/templates/root/index.tt
  144. +4 −0 angelos-core/flavors/flavors/plugin-controller/template/t/00_compile.t
  145. +7 −0 angelos-core/flavors/flavors/plugin-controller/template/t/TestApp/.gitignore
  146. +4 −0 angelos-core/flavors/flavors/plugin-controller/template/t/TestApp/Changes
  147. +19 −0 angelos-core/flavors/flavors/plugin-controller/template/t/TestApp/MANIFEST.SKIP
  148. +13 −0 angelos-core/flavors/flavors/plugin-controller/template/t/TestApp/Makefile.PL
  149. +27 −0 angelos-core/flavors/flavors/plugin-controller/template/t/TestApp/README
  150. +8 −0 angelos-core/flavors/flavors/plugin-controller/template/t/TestApp/bin/cli
  151. +25 −0 angelos-core/flavors/flavors/plugin-controller/template/t/TestApp/bin/server
  152. +32 −0 angelos-core/flavors/flavors/plugin-controller/template/t/TestApp/conf/config.yaml
  153. +18 −0 angelos-core/flavors/flavors/plugin-controller/template/t/TestApp/conf/log.yaml
  154. +6 −0 angelos-core/flavors/flavors/plugin-controller/template/t/TestApp/conf/routes.pl
  155. +41 −0 angelos-core/flavors/flavors/plugin-controller/template/t/TestApp/lib/TestApp.pm
  156. +4 −0 angelos-core/flavors/flavors/plugin-controller/template/t/TestApp/lib/TestApp/CLI.pm
  157. +36 −0 angelos-core/flavors/flavors/plugin-controller/template/t/TestApp/lib/TestApp/CLI/Command/Echo.pm
  158. +14 −0 angelos-core/flavors/flavors/plugin-controller/template/t/TestApp/lib/TestApp/Web/Controller/Root.pm
  159. +9 −0 angelos-core/flavors/flavors/plugin-controller/template/t/TestApp/lib/TestApp/Web/View/TT.pm
  160. 0 angelos-core/flavors/flavors/plugin-controller/template/t/TestApp/log/error.log
  161. 0 angelos-core/flavors/flavors/plugin-controller/template/t/TestApp/log/server.log
  162. +4 −0 angelos-core/flavors/flavors/plugin-controller/template/t/TestApp/share/root/static/css/README
  163. +7 −0 ...los-core/flavors/flavors/plugin-controller/template/t/TestApp/share/root/static/css/fonts-min.css
  164. +134 −0 angelos-core/flavors/flavors/plugin-controller/template/t/TestApp/share/root/static/css/forms.css
  165. +114 −0 ...os-core/flavors/flavors/plugin-controller/template/t/TestApp/share/root/static/css/framework.html
  166. +52 −0 ...s-core/flavors/flavors/plugin-controller/template/t/TestApp/share/root/static/css/layout-1col.css
  167. +56 −0 ...lavors/flavors/plugin-controller/template/t/TestApp/share/root/static/css/layout-navleft-1col.css
  168. +64 −0 ...lavors/flavors/plugin-controller/template/t/TestApp/share/root/static/css/layout-navleft-2col.css
  169. +57 −0 ...flavors/flavors/plugin-controller/template/t/TestApp/share/root/static/css/layout-navtop-1col.css
  170. +68 −0 ...flavors/flavors/plugin-controller/template/t/TestApp/share/root/static/css/layout-navtop-3col.css
  171. +61 −0 ...rs/flavors/plugin-controller/template/t/TestApp/share/root/static/css/layout-navtop-localleft.css
  172. +61 −0 ...ors/flavors/plugin-controller/template/t/TestApp/share/root/static/css/layout-navtop-subright.css
  173. +152 −0 angelos-core/flavors/flavors/plugin-controller/template/t/TestApp/share/root/static/css/layout.css
  174. +105 −0 ...ore/flavors/flavors/plugin-controller/template/t/TestApp/share/root/static/css/nav-horizontal.css
  175. +104 −0 ...-core/flavors/flavors/plugin-controller/template/t/TestApp/share/root/static/css/nav-vertical.css
  176. +7 −0 ...los-core/flavors/flavors/plugin-controller/template/t/TestApp/share/root/static/css/reset-min.css
  177. +64 −0 angelos-core/flavors/flavors/plugin-controller/template/t/TestApp/share/root/static/css/tools.css
  178. +228 −0 angelos-core/flavors/flavors/plugin-controller/template/t/TestApp/share/root/static/css/typo.css
  179. +32 −0 ...ore/flavors/flavors/plugin-controller/template/t/TestApp/share/root/static/js/jquery-1.2.6.min.js
  180. +11 −0 angelos-core/flavors/flavors/plugin-controller/template/t/TestApp/share/root/templates/root/index.tt
  181. +38 −0 angelos-core/flavors/flavors/plugin-controller/template/t/Utils.pm
  182. +22 −0 angelos-core/flavors/flavors/plugin-controller/template/t/basic.t
  183. +10 −0 angelos-core/flavors/flavors/plugin-controller/template/xt/01_podspell.t
  184. +8 −0 angelos-core/flavors/flavors/plugin-controller/template/xt/02_perlcritic.t
  185. +4 −0 angelos-core/flavors/flavors/plugin-controller/template/xt/03_pod.t
  186. +2 −0 angelos-core/flavors/flavors/plugin-controller/template/xt/perlcriticrc
  187. +21 −3 angelos-core/lib/Angelos.pm
  188. +38 −0 angelos-core/lib/Angelos/Cache.pm
  189. +2 −0 angelos-core/lib/Angelos/Plugin.pm
  190. +2 −0 angelos-core/lib/Angelos/Role.pm
  191. +21 −14 angelos-core/lib/Angelos/Script/Command/Generate/Flavor/App.pm
  192. +24 −0 angelos-core/lib/Angelos/ServiceLocator.pm
  193. +1 −1 angelos-core/t/unit/020_engine/basic.t
  194. +1 −1 angelos-core/t/unit/030_dispatcher/basic.t
  195. +1 −1 angelos-core/t/unit/040_configloader/basic.t
  196. +1 −1 angelos-core/t/unit/050_component_loader/basic.t
  197. +1 −1 angelos-core/t/unit/060_model/basic.t
  198. +1 −1 angelos-core/t/unit/070_controller/basic.t
  199. +1 −1 angelos-core/t/unit/080_script/basic.t
  200. +1 −1 angelos-core/t/unit/090_view/basic.t
  201. +1 −1 angelos-core/t/unit/100_cli/basic.t
  202. +1 −1 angelos-core/t/unit/110_i18n/basic.t
  203. +1 −1 angelos-core/t/unit/skelton-testclass.t
View
@@ -53,6 +53,7 @@ requires(
'Params::Validate' => 0,
'Data::Util' => 0,
'Class::Singleton' => 0,
+ 'CHI' => '0.10',
# Angelos Plugins
'Text::SimpleTable' => 0,
@@ -0,0 +1,18 @@
+--- !ditz.rubyforge.org,2008-03-06/issue
+title: "Locator\xE3\x81\xAE\xE6\xA4\x9C\xE8\xA8\x8E\xEF\xBC\x88Logger, Config, I18N\xE3\x81\xAFServiceLocator\xE3\x81\x8B\xE3\x82\x89\xE3\x81\xA8\xE3\x81\xA3\xE3\x81\x9F\xE3\x82\xA4\xE3\x83\xB3\xE3\x82\xB9\xE3\x82\xBF\xE3\x83\xB3\xE3\x82\xB9\xE3\x82\x92\xE4\xBD\xBF\xE3\x81\x86\xE3\x82\x88\xE3\x81\x86\xE3\x81\xAB\xE3\x81\x97\xE3\x81\xA6\xE3\x82\x82\xE3\x82\x88\xE3\x81\x8B\xE3\x81\xA3\xE3\x81\x9F\xE3\x81\x8B\xE3\x82\x82\xE3\x81\x97\xE3\x82\x8C\xE3\x81\xAA\xE3\x81\x84\xEF\xBC\x89"
+desc: ""
+type: :task
+component: angelos
+release: "0.01"
+reporter: dann <techmemo@gmail.com>
+status: :unstarted
+disposition:
+creation_time: 2009-02-28 10:13:27.828153 Z
+references: []
+
+id: cf1856865b5da9cbf0fc6b063253b7f4d03b564b
+log_events:
+- - 2009-02-28 10:13:28.244737 Z
+ - dann <techmemo@gmail.com>
+ - created
+ - ""
@@ -0,0 +1,18 @@
+--- !ditz.rubyforge.org,2008-03-06/issue
+title: "Context\xE3\x82\x92CLI\xE3\x81\xAA\xE3\x81\xA9\xE3\x81\xA7\xE3\x82\x82\xE4\xBD\xBF\xE3\x81\x88\xE3\x82\x8B\xE3\x82\x88\xE3\x81\x86\xE3\x81\xAB\xE3\x81\x99\xE3\x82\x8B"
+desc: ""
+type: :task
+component: angelos
+release: "0.01"
+reporter: dann <techmemo@gmail.com>
+status: :unstarted
+disposition:
+creation_time: 2009-02-28 10:28:41.119495 Z
+references: []
+
+id: f589310ea45ca30067558e5414cfee3d65c161b3
+log_events:
+- - 2009-02-28 10:28:41.759853 Z
+ - dann <techmemo@gmail.com>
+ - created
+ - ""
@@ -0,0 +1 @@
+--- {}
@@ -0,0 +1,7 @@
+---
+author: Your Name
+class: Angelos::Script::Command::Generate::Flavor::App
+email: 'default {at} example.com'
+plugins:
+ - Template
+# - +Angelos::Script::Command::Generate::Plugin::MakeScriptsExecutable
@@ -0,0 +1,8 @@
+cover_db
+META.yml
+Makefile
+blib
+inc
+pm_to_blib
+Makefile.old
+
@@ -0,0 +1,4 @@
+Revision history for Perl extension [% module %]
+
+0.01 [% localtime %]
+ - original version
@@ -0,0 +1,19 @@
+\bRCS\b
+\bCVS\b
+^MANIFEST\.
+^Makefile$
+~$
+^#
+\.old$
+^blib/
+^pm_to_blib
+^MakeMaker-\d
+\.gz$
+\.cvsignore
+^t/9\d_.*\.t
+^t/perlcritic
+^tools/
+\.svn/
+^[^/]+\.yaml$
+^[^/]+\.pl$
+^\.shipit$
@@ -0,0 +1,11 @@
+use inc::Module::Install;
+name '[% dist %]';
+all_from 'lib/[% module_path %].pm';
+
+tests 't/*.t t/unit/*.t t/integration/*.t';
+#author_tests 'xt';
+
+build_requires 'Test::More';
+use_test_base;
+auto_include;
+WriteAll;
@@ -0,0 +1,27 @@
+This is Perl module [% module %].
+
+INSTALLATION
+
+[% module %] installation is straightforward. If your CPAN shell is set up,
+you should just be able to do
+
+ % cpan [% module %]
+
+Download it, unpack it, then build it as per the usual:
+
+ % perl Makefile.PL
+ % make && make test
+
+Then install it:
+
+ % make install
+
+DOCUMENTATION
+
+[% module %] documentation is available as in POD. So you can do:
+
+ % perldoc [% module %]
+
+to read the documentation online with your favorite pager.
+
+[% config.author %]
@@ -0,0 +1,8 @@
+#!/usr/bin/env perl
+use strict;
+use warnings;
+use FindBin::libs;
+
+use [% module %]::CLI;
+[% module %]::CLI->run;
+
@@ -0,0 +1,25 @@
+#!/usr/bin/perl
+use strict;
+use warnings;
+use FindBin::libs;
+use Angelos::Script::Server;
+
+my $app = Angelos::Script::Server->new_with_options(app=> "[% module %]");
+$app->run;
+
+__END__
+
+=head1 NAME
+
+bin/server - a command-line interface to angelos
+
+=head1 SYNOPSIS
+
+ bin/server [--host=192.168.0.100] [--port 3001] [--server ServerSimple] [--debug]
+
+=head1 AUTHOR
+
+Takatoshi Kitano
+
+=cut
+
@@ -0,0 +1,10 @@
+---
+components:
+ controller:
+ - module: A
+
+middlewares:
+ - module: Encode
+ - module: MethodOverride
+ - module: Static
+
@@ -0,0 +1,8 @@
+---
+components:
+ controller:
+ - module: A
+
+middlewares:
+ - module: Encode
+ - module: MethodOverride
@@ -0,0 +1,7 @@
+---
+components:
+ controller:
+ - module: A
+
+middlewares:
+ - module: Encode
@@ -0,0 +1,18 @@
+---
+dispatchers:
+ - screen
+
+screen:
+ class: Log::Dispatch::Colorful
+ min_level: debug
+ stderr: 1
+ format: '[%d] [%p] %m at %F line %L%n'
+ color:
+ info:
+ text: green
+ debug:
+ text: red
+ background: black
+ error:
+ text: yellow
+ background: red
@@ -0,0 +1,6 @@
+HTTP::Router->define(
+ sub {
+ $_->match('/')->to( { controller => 'Root', action => 'index' } );
+ }
+);
+
@@ -0,0 +1,41 @@
+package [% module %];
+use Angelos::Class;
+extends 'Angelos';
+
+our $VERSION = '0.01';
+
+__END_OF_CLASS__
+
+__END__
+
+=head1 NAME
+
+[% module %] -
+
+=head1 SYNOPSIS
+
+ use [% module %];
+
+=head1 DESCRIPTION
+
+[% module %] is
+
+=head1 AUTHOR
+
+[% config.author %] E<lt>[% config.email %]E<gt>
+
+=head1 SEE ALSO
+
+=head1 REPOSITORY
+
+ svn co http://svn.coderepos.org/share/lang/perl/[% dist %]/trunk [% dist %]
+
+[% module %] is Subversion repository is hosted at L<http://coderepos.org/share/>.
+patches and collaborators are welcome.
+
+=head1 LICENSE
+
+This library is free software; you can redistribute it and/or modify
+it under the same terms as Perl itself.
+
+=cut
@@ -0,0 +1,4 @@
+package [% module %]::CLI;
+use base qw(Angelos::CLI);
+
+1;
@@ -0,0 +1,36 @@
+package [% module %]::CLI::Command::Echo;
+use base qw(Angelos::CLI::Command);
+
+=head1 NAME
+
+[% module %]::CLI::Command::Echo - echo command
+
+=head1 DESCRIPTION
+
+ % cli echo --name Yamada
+
+=cut
+
+sub opt_spec {
+ return (
+ [ "name=s", "your name" ],
+ );
+}
+
+sub validate_args {
+ my ( $self, $opt, $arg ) = @_;
+
+ return if $opt->{name};
+
+ my $name = $opt->{name};
+ die "You need to give your name with name option\n"
+ unless $name;
+}
+
+sub run {
+ my ( $self, $opt, $arg ) = @_;
+ my $name = $opt->{name};
+ print $name . "\n";
+}
+
+1;
@@ -0,0 +1,11 @@
+package [% module %]::Cache;
+use strict;
+use warnings;
+use [% module %]::Config;
+use base 'Angelos::Cache';
+
+sub config {
+ [% module %]::Config->instance->global('cache') || { driver => 'Memory' };
+}
+
+1;
@@ -0,0 +1,11 @@
+package [% module %]::Config;
+use base 'Angelos::Config';
+use Angelos::ProjectStructure;
+
+sub config_file_path {
+ my $self = shift;
+ Angelos::ProjectStructure->new( home => [% module %]::Home->instance )
+ ->config_file_path;
+}
+
+1;
@@ -0,0 +1,6 @@
+package [% module %]::Home;
+use base 'Angelos::Home';
+
+sub app_class { '[% module %]'; }
+
+1;
@@ -0,0 +1,13 @@
+package [% module %]::Logger;
+use base 'Angelos::Logger';
+use Angelos::ProjectStructure;
+use [% module %]::Home;
+
+sub app_class { '[% module %]'; }
+
+sub logger_config_file_path {
+ Angelos::ProjectStructure->new( home => [% module %]::Home->instance )
+ ->logger_config_file_path;
+}
+
+1;
@@ -0,0 +1,9 @@
+package [% module %]::Role::Configurable;
+use Mouse::Role;
+use [% module %]::Config;
+
+sub config {
+ [% module %]::Config->instance;
+}
+
+1;
@@ -0,0 +1,9 @@
+package [% module %]::Role::HomeAware;
+use Mouse::Role;
+use [% module %]::Home;
+
+sub home {
+ [% module %]::Home->instance;
+}
+
+1;
@@ -0,0 +1,9 @@
+package TestApp::Role::Loggable;
+use Mouse::Role;
+use [% module %]::Logger;
+
+sub log {
+ [% module %]::Logger->instance;
+}
+
+1;
@@ -0,0 +1,18 @@
+package [% module %]::Role::SchemaAware;
+use Mouse::Role;
+
+has 'schema' => (
+ is => 'rw',
+ default => sub {
+ [% module %]::Schema->master;
+ },
+);
+
+has 'slave_schema' => (
+ is => 'rw',
+ default => sub {
+ [% module %]::Schema->slave;
+ },
+);
+
+1;
Oops, something went wrong.

0 comments on commit 5454822

Please sign in to comment.