mosh_generator 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +7 -0
  2. data/.editorconfig +9 -0
  3. data/.gitignore +3 -0
  4. data/.ruby-gemset +1 -0
  5. data/.ruby-version +1 -0
  6. data/Gemfile +3 -0
  7. data/Gemfile.lock +93 -0
  8. data/LICENSE +21 -0
  9. data/README.md +5 -0
  10. data/bin/mosh_generator +11 -0
  11. data/doc/MoshGenerator/AppBuilder.html +823 -0
  12. data/doc/MoshGenerator/AppGenerator.html +503 -0
  13. data/doc/MoshGenerator.html +151 -0
  14. data/doc/_index.html +132 -0
  15. data/doc/class_list.html +53 -0
  16. data/doc/css/common.css +1 -0
  17. data/doc/css/full_list.css +57 -0
  18. data/doc/css/style.css +338 -0
  19. data/doc/file.README.html +79 -0
  20. data/doc/file_list.html +55 -0
  21. data/doc/frames.html +28 -0
  22. data/doc/index.html +79 -0
  23. data/doc/js/app.js +214 -0
  24. data/doc/js/full_list.js +178 -0
  25. data/doc/js/jquery.js +4 -0
  26. data/doc/method_list.html +142 -0
  27. data/doc/top-level-namespace.html +112 -0
  28. data/lib/mosh_generator/app_builder.rb +137 -0
  29. data/lib/mosh_generator/generators/app_generator.rb +104 -0
  30. data/lib/mosh_generator/version.rb +6 -0
  31. data/lib/mosh_generator.rb +5 -0
  32. data/mosh_generator.gemspec +30 -0
  33. data/templates/.editorconfig +29 -0
  34. data/templates/.gitignore +21 -0
  35. data/templates/.jshintrc +20 -0
  36. data/templates/.ruby-gemset +1 -0
  37. data/templates/.ruby-version +1 -0
  38. data/templates/Gemfile.tt +13 -0
  39. data/templates/Gruntfile.js +80 -0
  40. data/templates/README.md.tt +1 -0
  41. data/templates/app_directory/helpers/application_helper.rb.tt +30 -0
  42. data/templates/app_directory/views/application/_chrome_frame.html +3 -0
  43. data/templates/app_directory/views/application/_google_analytics.html +9 -0
  44. data/templates/app_directory/views/layouts/application.html.erb.tt +52 -0
  45. data/templates/config/database.yml +12 -0
  46. data/templates/package.json.tt +15 -0
  47. data/templates/public_directory/404.html +157 -0
  48. data/templates/public_directory/apple-touch-icon-114x114-precomposed.png +0 -0
  49. data/templates/public_directory/apple-touch-icon-144x144-precomposed.png +0 -0
  50. data/templates/public_directory/apple-touch-icon-57x57-precomposed.png +0 -0
  51. data/templates/public_directory/apple-touch-icon-72x72-precomposed.png +0 -0
  52. data/templates/public_directory/apple-touch-icon-precomposed.png +0 -0
  53. data/templates/public_directory/apple-touch-icon.png +0 -0
  54. data/templates/public_directory/crossdomain.xml +15 -0
  55. data/templates/public_directory/favicon.ico +0 -0
  56. data/templates/public_directory/humans.txt +14 -0
  57. data/templates/public_directory/images/.gitkeep +0 -0
  58. data/templates/public_directory/javascripts/.gitkeep +0 -0
  59. data/templates/public_directory/javascripts/vendor/modernizr.custom.js +4 -0
  60. data/templates/public_directory/javascripts/vendor/respond.min.js +6 -0
  61. data/templates/public_directory/robots.txt +3 -0
  62. data/templates/public_directory/stylesheets/.gitkeep +0 -0
  63. data/templates/public_directory/stylesheets/scss/core/_base.scss +52 -0
  64. data/templates/public_directory/stylesheets/scss/core/_reset.scss +56 -0
  65. data/templates/public_directory/stylesheets/scss/core/_settings.scss +61 -0
  66. data/templates/public_directory/stylesheets/scss/site.scss +21 -0
  67. metadata +143 -0
@@ -0,0 +1,503 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Class: MoshGenerator::AppGenerator
8
+
9
+ &mdash; Documentation by YARD 0.8.6.1
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '../';
20
+ framesUrl = "../frames.html#!" + escape(window.location.href);
21
+ </script>
22
+
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+ <a href="../_index.html">Index (A)</a> &raquo;
35
+ <span class='title'><span class='object_link'><a href="../MoshGenerator.html" title="MoshGenerator (module)">MoshGenerator</a></span></span>
36
+ &raquo;
37
+ <span class="title">AppGenerator</span>
38
+
39
+
40
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
+ </div>
42
+
43
+ <div id="search">
44
+
45
+ <a class="full_list_link" id="class_list_link"
46
+ href="../class_list.html">
47
+ Class List
48
+ </a>
49
+
50
+ <a class="full_list_link" id="method_list_link"
51
+ href="../method_list.html">
52
+ Method List
53
+ </a>
54
+
55
+ <a class="full_list_link" id="file_list_link"
56
+ href="../file_list.html">
57
+ File List
58
+ </a>
59
+
60
+ </div>
61
+ <div class="clear"></div>
62
+ </div>
63
+
64
+ <iframe id="search_frame"></iframe>
65
+
66
+ <div id="content"><h1>Class: MoshGenerator::AppGenerator
67
+
68
+
69
+
70
+ </h1>
71
+
72
+ <dl class="box">
73
+
74
+ <dt class="r1">Inherits:</dt>
75
+ <dd class="r1">
76
+ <span class="inheritName">Rails::Generators::AppGenerator</span>
77
+
78
+ <ul class="fullTree">
79
+ <li>Object</li>
80
+
81
+ <li class="next">Rails::Generators::AppGenerator</li>
82
+
83
+ <li class="next">MoshGenerator::AppGenerator</li>
84
+
85
+ </ul>
86
+ <a href="#" class="inheritanceTree">show all</a>
87
+
88
+ </dd>
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+ <dt class="r2 last">Defined in:</dt>
99
+ <dd class="r2 last">lib/mosh_generator/generators/app_generator.rb</dd>
100
+
101
+ </dl>
102
+ <div class="clear"></div>
103
+
104
+ <h2>Overview</h2><div class="docstring">
105
+ <div class="discussion">
106
+
107
+ <p>Override Rails default AppGenerator.</p>
108
+
109
+
110
+ </div>
111
+ </div>
112
+ <div class="tags">
113
+
114
+
115
+ </div>
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+ <h2>
124
+ Class Method Summary
125
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
126
+ </h2>
127
+
128
+ <ul class="summary">
129
+
130
+ <li class="public ">
131
+ <span class="summary_signature">
132
+
133
+ <a href="#banner-class_method" title="banner (class method)">+ (Object) <strong>banner</strong> </a>
134
+
135
+
136
+
137
+ </span>
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+
147
+ <span class="summary_desc"><div class='inline'>
148
+ <p>Banner for the cli.</p>
149
+ </div></span>
150
+
151
+ </li>
152
+
153
+
154
+ </ul>
155
+
156
+ <h2>
157
+ Instance Method Summary
158
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
159
+ </h2>
160
+
161
+ <ul class="summary">
162
+
163
+ <li class="public ">
164
+ <span class="summary_signature">
165
+
166
+ <a href="#create_configuration_files-instance_method" title="#create_configuration_files (instance method)">- (Object) <strong>create_configuration_files</strong> </a>
167
+
168
+
169
+
170
+ </span>
171
+
172
+
173
+
174
+
175
+
176
+
177
+
178
+
179
+
180
+ <span class="summary_desc"><div class='inline'>
181
+ <p>Create some configuration files for tools.</p>
182
+ </div></span>
183
+
184
+ </li>
185
+
186
+
187
+ <li class="public ">
188
+ <span class="summary_signature">
189
+
190
+ <a href="#finish_template-instance_method" title="#finish_template (instance method)">- (Object) <strong>finish_template</strong> </a>
191
+
192
+
193
+
194
+ </span>
195
+
196
+
197
+
198
+
199
+
200
+
201
+
202
+
203
+
204
+ <span class="summary_desc"><div class='inline'>
205
+ <p>Overrides default implementation to run customization code.</p>
206
+ </div></span>
207
+
208
+ </li>
209
+
210
+
211
+ <li class="public ">
212
+ <span class="summary_signature">
213
+
214
+ <a href="#mosh_generator_customization-instance_method" title="#mosh_generator_customization (instance method)">- (Object) <strong>mosh_generator_customization</strong> </a>
215
+
216
+
217
+
218
+ </span>
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+
227
+
228
+ <span class="summary_desc"><div class='inline'>
229
+ <p>Customized generator wrapper.</p>
230
+ </div></span>
231
+
232
+ </li>
233
+
234
+
235
+ <li class="public ">
236
+ <span class="summary_signature">
237
+
238
+ <a href="#remove_files_we_dont_need-instance_method" title="#remove_files_we_dont_need (instance method)">- (Object) <strong>remove_files_we_dont_need</strong> </a>
239
+
240
+
241
+
242
+ </span>
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+
251
+
252
+ <span class="summary_desc"><div class='inline'>
253
+ <p>Do some clean up.</p>
254
+ </div></span>
255
+
256
+ </li>
257
+
258
+
259
+ </ul>
260
+
261
+
262
+
263
+
264
+
265
+ <div id="class_method_details" class="method_details_list">
266
+ <h2>Class Method Details</h2>
267
+
268
+
269
+ <div class="method_details first">
270
+ <h3 class="signature first" id="banner-class_method">
271
+
272
+ + (<tt>Object</tt>) <strong>banner</strong>
273
+
274
+
275
+
276
+
277
+
278
+ </h3><div class="docstring">
279
+ <div class="discussion">
280
+
281
+ <p>Banner for the cli.</p>
282
+
283
+
284
+ </div>
285
+ </div>
286
+ <div class="tags">
287
+
288
+
289
+ </div><table class="source_code">
290
+ <tr>
291
+ <td>
292
+ <pre class="lines">
293
+
294
+
295
+ 15
296
+ 16
297
+ 17</pre>
298
+ </td>
299
+ <td>
300
+ <pre class="code"><span class="info file"># File 'lib/mosh_generator/generators/app_generator.rb', line 15</span>
301
+
302
+ <span class='kw'>def</span> <span class='id identifier rubyid_banner'>banner</span>
303
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>mosh_generator </span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_arguments'>arguments</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='symbol'>:usage</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'> </span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_content'> [options]</span><span class='tstring_end'>&quot;</span></span>
304
+ <span class='kw'>end</span></pre>
305
+ </td>
306
+ </tr>
307
+ </table>
308
+ </div>
309
+
310
+ </div>
311
+
312
+ <div id="instance_method_details" class="method_details_list">
313
+ <h2>Instance Method Details</h2>
314
+
315
+
316
+ <div class="method_details first">
317
+ <h3 class="signature first" id="create_configuration_files-instance_method">
318
+
319
+ - (<tt>Object</tt>) <strong>create_configuration_files</strong>
320
+
321
+
322
+
323
+
324
+
325
+ </h3><div class="docstring">
326
+ <div class="discussion">
327
+
328
+ <p>Create some configuration files for tools.</p>
329
+
330
+
331
+ </div>
332
+ </div>
333
+ <div class="tags">
334
+
335
+
336
+ </div><table class="source_code">
337
+ <tr>
338
+ <td>
339
+ <pre class="lines">
340
+
341
+
342
+ 60
343
+ 61
344
+ 62
345
+ 63
346
+ 64</pre>
347
+ </td>
348
+ <td>
349
+ <pre class="code"><span class="info file"># File 'lib/mosh_generator/generators/app_generator.rb', line 60</span>
350
+
351
+ <span class='kw'>def</span> <span class='id identifier rubyid_create_configuration_files'>create_configuration_files</span>
352
+ <span class='id identifier rubyid_build'>build</span> <span class='symbol'>:create_editorconfig_file</span>
353
+ <span class='id identifier rubyid_build'>build</span> <span class='symbol'>:create_ruby_version_file</span>
354
+ <span class='id identifier rubyid_build'>build</span> <span class='symbol'>:create_ruby_gemset_file</span>
355
+ <span class='kw'>end</span></pre>
356
+ </td>
357
+ </tr>
358
+ </table>
359
+ </div>
360
+
361
+ <div class="method_details ">
362
+ <h3 class="signature " id="finish_template-instance_method">
363
+
364
+ - (<tt>Object</tt>) <strong>finish_template</strong>
365
+
366
+
367
+
368
+
369
+
370
+ </h3><div class="docstring">
371
+ <div class="discussion">
372
+
373
+ <p>Overrides default implementation to run customization code.</p>
374
+
375
+
376
+ </div>
377
+ </div>
378
+ <div class="tags">
379
+
380
+
381
+ </div><table class="source_code">
382
+ <tr>
383
+ <td>
384
+ <pre class="lines">
385
+
386
+
387
+ 35
388
+ 36
389
+ 37
390
+ 38</pre>
391
+ </td>
392
+ <td>
393
+ <pre class="code"><span class="info file"># File 'lib/mosh_generator/generators/app_generator.rb', line 35</span>
394
+
395
+ <span class='kw'>def</span> <span class='id identifier rubyid_finish_template'>finish_template</span>
396
+ <span class='id identifier rubyid_invoke'>invoke</span> <span class='symbol'>:mosh_generator_customization</span>
397
+ <span class='kw'>super</span>
398
+ <span class='kw'>end</span></pre>
399
+ </td>
400
+ </tr>
401
+ </table>
402
+ </div>
403
+
404
+ <div class="method_details ">
405
+ <h3 class="signature " id="mosh_generator_customization-instance_method">
406
+
407
+ - (<tt>Object</tt>) <strong>mosh_generator_customization</strong>
408
+
409
+
410
+
411
+
412
+
413
+ </h3><div class="docstring">
414
+ <div class="discussion">
415
+
416
+ <p>Customized generator wrapper.</p>
417
+
418
+
419
+ </div>
420
+ </div>
421
+ <div class="tags">
422
+
423
+
424
+ </div><table class="source_code">
425
+ <tr>
426
+ <td>
427
+ <pre class="lines">
428
+
429
+
430
+ 43
431
+ 44
432
+ 45
433
+ 46</pre>
434
+ </td>
435
+ <td>
436
+ <pre class="code"><span class="info file"># File 'lib/mosh_generator/generators/app_generator.rb', line 43</span>
437
+
438
+ <span class='kw'>def</span> <span class='id identifier rubyid_mosh_generator_customization'>mosh_generator_customization</span>
439
+ <span class='id identifier rubyid_invoke'>invoke</span> <span class='symbol'>:remove_files_we_dont_need</span>
440
+ <span class='id identifier rubyid_invoke'>invoke</span> <span class='symbol'>:create_configuration_files</span>
441
+ <span class='kw'>end</span></pre>
442
+ </td>
443
+ </tr>
444
+ </table>
445
+ </div>
446
+
447
+ <div class="method_details ">
448
+ <h3 class="signature " id="remove_files_we_dont_need-instance_method">
449
+
450
+ - (<tt>Object</tt>) <strong>remove_files_we_dont_need</strong>
451
+
452
+
453
+
454
+
455
+
456
+ </h3><div class="docstring">
457
+ <div class="discussion">
458
+
459
+ <p>Do some clean up.</p>
460
+
461
+
462
+ </div>
463
+ </div>
464
+ <div class="tags">
465
+
466
+
467
+ </div><table class="source_code">
468
+ <tr>
469
+ <td>
470
+ <pre class="lines">
471
+
472
+
473
+ 51
474
+ 52
475
+ 53
476
+ 54
477
+ 55</pre>
478
+ </td>
479
+ <td>
480
+ <pre class="code"><span class="info file"># File 'lib/mosh_generator/generators/app_generator.rb', line 51</span>
481
+
482
+ <span class='kw'>def</span> <span class='id identifier rubyid_remove_files_we_dont_need'>remove_files_we_dont_need</span>
483
+ <span class='id identifier rubyid_build'>build</span> <span class='symbol'>:remove_public_index</span>
484
+ <span class='id identifier rubyid_build'>build</span> <span class='symbol'>:remove_assets_directories</span>
485
+ <span class='id identifier rubyid_build'>build</span> <span class='symbol'>:remove_doc_directory</span>
486
+ <span class='kw'>end</span></pre>
487
+ </td>
488
+ </tr>
489
+ </table>
490
+ </div>
491
+
492
+ </div>
493
+
494
+ </div>
495
+
496
+ <div id="footer">
497
+ Generated on Tue May 21 11:14:00 2013 by
498
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
499
+ 0.8.6.1 (ruby-2.0.0).
500
+ </div>
501
+
502
+ </body>
503
+ </html>
@@ -0,0 +1,151 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Module: MoshGenerator
8
+
9
+ &mdash; Documentation by YARD 0.8.6.1
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '';
20
+ framesUrl = "frames.html#!" + escape(window.location.href);
21
+ </script>
22
+
23
+
24
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+ <a href="_index.html">Index (M)</a> &raquo;
35
+
36
+
37
+ <span class="title">MoshGenerator</span>
38
+
39
+
40
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
+ </div>
42
+
43
+ <div id="search">
44
+
45
+ <a class="full_list_link" id="class_list_link"
46
+ href="class_list.html">
47
+ Class List
48
+ </a>
49
+
50
+ <a class="full_list_link" id="method_list_link"
51
+ href="method_list.html">
52
+ Method List
53
+ </a>
54
+
55
+ <a class="full_list_link" id="file_list_link"
56
+ href="file_list.html">
57
+ File List
58
+ </a>
59
+
60
+ </div>
61
+ <div class="clear"></div>
62
+ </div>
63
+
64
+ <iframe id="search_frame"></iframe>
65
+
66
+ <div id="content"><h1>Module: MoshGenerator
67
+
68
+
69
+
70
+ </h1>
71
+
72
+ <dl class="box">
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+ <dt class="r1 last">Defined in:</dt>
82
+ <dd class="r1 last">lib/mosh_generator.rb<span class="defines">,<br />
83
+ lib/mosh_generator/version.rb,<br /> lib/mosh_generator/app_builder.rb,<br /> lib/mosh_generator/generators/app_generator.rb</span>
84
+ </dd>
85
+
86
+ </dl>
87
+ <div class="clear"></div>
88
+
89
+ <h2>Overview</h2><div class="docstring">
90
+ <div class="discussion">
91
+
92
+ <p>Root module for the Mosh Generator gem.</p>
93
+
94
+
95
+ </div>
96
+ </div>
97
+ <div class="tags">
98
+
99
+
100
+ </div><h2>Defined Under Namespace</h2>
101
+ <p class="children">
102
+
103
+
104
+
105
+
106
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="MoshGenerator/AppBuilder.html" title="MoshGenerator::AppBuilder (class)">AppBuilder</a></span>, <span class='object_link'><a href="MoshGenerator/AppGenerator.html" title="MoshGenerator::AppGenerator (class)">AppGenerator</a></span>
107
+
108
+
109
+ </p>
110
+
111
+ <h2>Constant Summary</h2>
112
+
113
+ <dl class="constants">
114
+
115
+ <dt id="VERSION-constant" class="">VERSION =
116
+ <div class="docstring">
117
+ <div class="discussion">
118
+
119
+ <p>MoshGenerator version.</p>
120
+
121
+
122
+ </div>
123
+ </div>
124
+ <div class="tags">
125
+
126
+
127
+ </div>
128
+ </dt>
129
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>0.1.0</span><span class='tstring_end'>&#39;</span></span></pre></dd>
130
+
131
+ </dl>
132
+
133
+
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+ </div>
143
+
144
+ <div id="footer">
145
+ Generated on Tue May 21 11:14:00 2013 by
146
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
147
+ 0.8.6.1 (ruby-2.0.0).
148
+ </div>
149
+
150
+ </body>
151
+ </html>