ymdp 0.9.2 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. data/Gemfile +2 -1
  2. data/VERSION +1 -1
  3. data/doc/ActionView.html +175 -0
  4. data/doc/ActionView/Helpers.html +175 -0
  5. data/doc/ActionView/Helpers/TagHelper.html +439 -0
  6. data/doc/Application.html +295 -0
  7. data/doc/LICENSE.html +158 -0
  8. data/doc/Object.html +218 -0
  9. data/doc/README_rdoc.html +147 -0
  10. data/doc/YMDP.html +232 -0
  11. data/doc/YMDP/ApplicationView.html +563 -0
  12. data/doc/YMDP/AssetTagHelper.html +235 -0
  13. data/doc/YMDP/Base.html +560 -0
  14. data/doc/YMDP/Compiler.html +178 -0
  15. data/doc/YMDP/Compiler/Base.html +1181 -0
  16. data/doc/YMDP/Compiler/Domains.html +493 -0
  17. data/doc/YMDP/Compiler/Options.html +265 -0
  18. data/doc/YMDP/Compiler/Template.html +175 -0
  19. data/doc/YMDP/Compiler/Template/Base.html +911 -0
  20. data/doc/YMDP/Compiler/Template/CoffeeScript.html +236 -0
  21. data/doc/YMDP/Compiler/Template/JavaScript.html +237 -0
  22. data/doc/YMDP/Compiler/Template/View.html +495 -0
  23. data/doc/YMDP/Compiler/Template/YRB.html +469 -0
  24. data/doc/YMDP/Configuration.html +175 -0
  25. data/doc/YMDP/Configuration/Base.html +426 -0
  26. data/doc/YMDP/Configuration/Config.html +553 -0
  27. data/doc/YMDP/Configuration/Servers.html +265 -0
  28. data/doc/YMDP/Configuration/Setter.html +580 -0
  29. data/doc/YMDP/FormTagHelper.html +298 -0
  30. data/doc/YMDP/GitHelper.html +298 -0
  31. data/doc/YMDP/LinkTagHelper.html +299 -0
  32. data/doc/YMDP/View.html +239 -0
  33. data/doc/created.rid +18 -0
  34. data/doc/images/add.png +0 -0
  35. data/doc/images/brick.png +0 -0
  36. data/doc/images/brick_link.png +0 -0
  37. data/doc/images/bug.png +0 -0
  38. data/doc/images/bullet_black.png +0 -0
  39. data/doc/images/bullet_toggle_minus.png +0 -0
  40. data/doc/images/bullet_toggle_plus.png +0 -0
  41. data/doc/images/date.png +0 -0
  42. data/doc/images/delete.png +0 -0
  43. data/doc/images/find.png +0 -0
  44. data/doc/images/loadingAnimation.gif +0 -0
  45. data/doc/images/macFFBgHack.png +0 -0
  46. data/doc/images/package.png +0 -0
  47. data/doc/images/page_green.png +0 -0
  48. data/doc/images/page_white_text.png +0 -0
  49. data/doc/images/page_white_width.png +0 -0
  50. data/doc/images/plugin.png +0 -0
  51. data/doc/images/ruby.png +0 -0
  52. data/doc/images/tag_blue.png +0 -0
  53. data/doc/images/tag_green.png +0 -0
  54. data/doc/images/transparent.png +0 -0
  55. data/doc/images/wrench.png +0 -0
  56. data/doc/images/wrench_orange.png +0 -0
  57. data/doc/images/zoom.png +0 -0
  58. data/doc/index.html +134 -0
  59. data/doc/js/darkfish.js +153 -0
  60. data/doc/js/jquery.js +18 -0
  61. data/doc/js/navigation.js +142 -0
  62. data/doc/js/search.js +94 -0
  63. data/doc/js/search_index.js +1 -0
  64. data/doc/js/searcher.js +228 -0
  65. data/doc/rdoc.css +543 -0
  66. data/doc/table_of_contents.html +401 -0
  67. data/lib/ymdp/compiler/template.rb +5 -1
  68. data/lib/ymdp/view/application_view.rb +10 -5
  69. data/ymdp.gemspec +69 -2
  70. metadata +120 -42
@@ -0,0 +1,493 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>class YMDP::Compiler::Domains - RDoc Documentation</title>
8
+
9
+ <link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "../../";
13
+ </script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
16
+ <script type="text/javascript" charset="utf-8" src="../../js/navigation.js"></script>
17
+ <script type="text/javascript" charset="utf-8" src="../../js/search_index.js"></script>
18
+ <script type="text/javascript" charset="utf-8" src="../../js/search.js"></script>
19
+ <script type="text/javascript" charset="utf-8" src="../../js/searcher.js"></script>
20
+ <script type="text/javascript" charset="utf-8" src="../../js/darkfish.js"></script>
21
+
22
+
23
+ <body id="top" class="class">
24
+ <nav id="metadata">
25
+ <nav id="home-section" class="section">
26
+ <h3 class="section-header">
27
+ <a href="../../index.html">Home</a>
28
+ <a href="../../table_of_contents.html#classes">Classes</a>
29
+ <a href="../../table_of_contents.html#methods">Methods</a>
30
+ </h3>
31
+ </nav>
32
+
33
+
34
+ <nav id="search-section" class="section project-section" class="initially-hidden">
35
+ <form action="#" method="get" accept-charset="utf-8">
36
+ <h3 class="section-header">
37
+ <input type="text" name="search" placeholder="Search" id="search-field"
38
+ title="Type to search, Up and Down to navigate, Enter to load">
39
+ </h3>
40
+ </form>
41
+
42
+ <ul id="search-results" class="initially-hidden"></ul>
43
+ </nav>
44
+
45
+
46
+ <div id="file-metadata">
47
+ <nav id="file-list-section" class="section">
48
+ <h3 class="section-header">Defined In</h3>
49
+ <ul>
50
+ <li>lib/ymdp/compiler/domains.rb
51
+ </ul>
52
+ </nav>
53
+
54
+
55
+ </div>
56
+
57
+ <div id="class-metadata">
58
+
59
+ <nav id="parent-class-section" class="section">
60
+ <h3 class="section-header">Parent</h3>
61
+
62
+ <p class="link"><a href="../Base.html">YMDP::Base</a>
63
+
64
+ </nav>
65
+
66
+
67
+ <!-- Method Quickref -->
68
+ <nav id="method-list-section" class="section">
69
+ <h3 class="section-header">Methods</h3>
70
+
71
+ <ul class="link-list">
72
+
73
+ <li><a href="#method-c-new">::new</a>
74
+
75
+ <li><a href="#method-i-all_domains">#all_domains</a>
76
+
77
+ <li><a href="#method-i-clean_tmp_dir">#clean_tmp_dir</a>
78
+
79
+ <li><a href="#method-i-commit">#commit</a>
80
+
81
+ <li><a href="#method-i-compile">#compile</a>
82
+
83
+ <li><a href="#method-i-process_domains">#process_domains</a>
84
+
85
+ </ul>
86
+ </nav>
87
+
88
+ </div>
89
+
90
+ <div id="project-metadata">
91
+ <nav id="fileindex-section" class="section project-section">
92
+ <h3 class="section-header">Pages</h3>
93
+
94
+ <ul>
95
+
96
+ <li class="file"><a href="../../LICENSE.html">LICENSE</a>
97
+
98
+ <li class="file"><a href="../../README_rdoc.html">README</a>
99
+
100
+ </ul>
101
+ </nav>
102
+
103
+ <nav id="classindex-section" class="section project-section">
104
+ <h3 class="section-header">Class and Module Index</h3>
105
+
106
+ <ul class="link-list">
107
+
108
+ <li><a href="../../YMDP.html">YMDP</a>
109
+
110
+ <li><a href="../../YMDP/ApplicationView.html">YMDP::ApplicationView</a>
111
+
112
+ <li><a href="../../YMDP/AssetTagHelper.html">YMDP::AssetTagHelper</a>
113
+
114
+ <li><a href="../../YMDP/Base.html">YMDP::Base</a>
115
+
116
+ <li><a href="../../YMDP/Compiler.html">YMDP::Compiler</a>
117
+
118
+ <li><a href="../../YMDP/Compiler/Base.html">YMDP::Compiler::Base</a>
119
+
120
+ <li><a href="../../YMDP/Compiler/Domains.html">YMDP::Compiler::Domains</a>
121
+
122
+ <li><a href="../../YMDP/Compiler/Options.html">YMDP::Compiler::Options</a>
123
+
124
+ <li><a href="../../YMDP/Compiler/Template.html">YMDP::Compiler::Template</a>
125
+
126
+ <li><a href="../../YMDP/Compiler/Template/Base.html">YMDP::Compiler::Template::Base</a>
127
+
128
+ <li><a href="../../YMDP/Compiler/Template/CoffeeScript.html">YMDP::Compiler::Template::CoffeeScript</a>
129
+
130
+ <li><a href="../../YMDP/Compiler/Template/JavaScript.html">YMDP::Compiler::Template::JavaScript</a>
131
+
132
+ <li><a href="../../YMDP/Compiler/Template/View.html">YMDP::Compiler::Template::View</a>
133
+
134
+ <li><a href="../../YMDP/Compiler/Template/YRB.html">YMDP::Compiler::Template::YRB</a>
135
+
136
+ <li><a href="../../YMDP/Configuration.html">YMDP::Configuration</a>
137
+
138
+ <li><a href="../../YMDP/Configuration/Base.html">YMDP::Configuration::Base</a>
139
+
140
+ <li><a href="../../YMDP/Configuration/Config.html">YMDP::Configuration::Config</a>
141
+
142
+ <li><a href="../../YMDP/Configuration/Servers.html">YMDP::Configuration::Servers</a>
143
+
144
+ <li><a href="../../YMDP/Configuration/Setter.html">YMDP::Configuration::Setter</a>
145
+
146
+ <li><a href="../../YMDP/FormTagHelper.html">YMDP::FormTagHelper</a>
147
+
148
+ <li><a href="../../YMDP/GitHelper.html">YMDP::GitHelper</a>
149
+
150
+ <li><a href="../../YMDP/LinkTagHelper.html">YMDP::LinkTagHelper</a>
151
+
152
+ <li><a href="../../YMDP/View.html">YMDP::View</a>
153
+
154
+ <li><a href="../../ActionView.html">ActionView</a>
155
+
156
+ <li><a href="../../ActionView/Helpers.html">ActionView::Helpers</a>
157
+
158
+ <li><a href="../../ActionView/Helpers/TagHelper.html">ActionView::Helpers::TagHelper</a>
159
+
160
+ <li><a href="../../Application.html">Application</a>
161
+
162
+ <li><a href="../../Object.html">Object</a>
163
+
164
+ </ul>
165
+ </nav>
166
+
167
+ </div>
168
+ </nav>
169
+
170
+ <div id="documentation">
171
+ <h1 class="class">class YMDP::Compiler::Domains</h1>
172
+
173
+ <div id="description" class="description">
174
+
175
+ <p>Covers all the domains and the actions that are taken on all domains at
176
+ once.</p>
177
+
178
+ </div><!-- description -->
179
+
180
+
181
+
182
+
183
+ <section id="5Buntitled-5D" class="documentation-section">
184
+
185
+
186
+
187
+
188
+
189
+
190
+
191
+ <!-- Attributes -->
192
+ <section id="attribute-method-details" class="method-section section">
193
+ <h3 class="section-header">Attributes</h3>
194
+
195
+
196
+ <div id="attribute-i-domains" class="method-detail">
197
+ <div class="method-heading attribute-method-heading">
198
+ <span class="method-name">domains</span><span
199
+ class="attribute-access-type">[RW]</span>
200
+ </div>
201
+
202
+ <div class="method-description">
203
+
204
+
205
+
206
+ </div>
207
+ </div>
208
+
209
+ <div id="attribute-i-git" class="method-detail">
210
+ <div class="method-heading attribute-method-heading">
211
+ <span class="method-name">git</span><span
212
+ class="attribute-access-type">[RW]</span>
213
+ </div>
214
+
215
+ <div class="method-description">
216
+
217
+
218
+
219
+ </div>
220
+ </div>
221
+
222
+ <div id="attribute-i-git_hash" class="method-detail">
223
+ <div class="method-heading attribute-method-heading">
224
+ <span class="method-name">git_hash</span><span
225
+ class="attribute-access-type">[RW]</span>
226
+ </div>
227
+
228
+ <div class="method-description">
229
+
230
+
231
+
232
+ </div>
233
+ </div>
234
+
235
+ <div id="attribute-i-message" class="method-detail">
236
+ <div class="method-heading attribute-method-heading">
237
+ <span class="method-name">message</span><span
238
+ class="attribute-access-type">[RW]</span>
239
+ </div>
240
+
241
+ <div class="method-description">
242
+
243
+
244
+
245
+ </div>
246
+ </div>
247
+
248
+ <div id="attribute-i-options" class="method-detail">
249
+ <div class="method-heading attribute-method-heading">
250
+ <span class="method-name">options</span><span
251
+ class="attribute-access-type">[RW]</span>
252
+ </div>
253
+
254
+ <div class="method-description">
255
+
256
+
257
+
258
+ </div>
259
+ </div>
260
+
261
+ </section><!-- attribute-method-details -->
262
+
263
+
264
+ <!-- Methods -->
265
+
266
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
267
+ <h3 class="section-header">Public Class Methods</h3>
268
+
269
+
270
+ <div id="method-c-new" class="method-detail ">
271
+
272
+ <div class="method-heading">
273
+ <span class="method-name">new</span><span
274
+ class="method-args">(options=nil)</span>
275
+ <span class="method-click-advice">click to toggle source</span>
276
+ </div>
277
+
278
+
279
+ <div class="method-description">
280
+
281
+
282
+
283
+
284
+
285
+ <div class="method-source-code" id="new-source">
286
+ <pre><span class="ruby-comment"># File lib/ymdp/compiler/domains.rb, line 20</span>
287
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">options</span>=<span class="ruby-keyword">nil</span>)
288
+ <span class="ruby-ivar">@options</span> = <span class="ruby-identifier">options</span>
289
+ <span class="ruby-ivar">@servers</span> = <span class="ruby-ivar">@options</span>[<span class="ruby-value">:servers</span>]
290
+ <span class="ruby-ivar">@domains</span> = <span class="ruby-ivar">@options</span>[<span class="ruby-value">:domain</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">all_domains</span>
291
+ <span class="ruby-ivar">@domains</span> = <span class="ruby-ivar">@domains</span>.<span class="ruby-identifier">to_a</span>
292
+ <span class="ruby-ivar">@message</span> = <span class="ruby-ivar">@options</span>[<span class="ruby-value">:message</span>]
293
+
294
+ <span class="ruby-identifier">commit</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@options</span>[<span class="ruby-value">:commit</span>]
295
+ <span class="ruby-keyword">end</span></pre>
296
+ </div><!-- new-source -->
297
+
298
+ </div>
299
+
300
+
301
+
302
+
303
+ </div><!-- new-method -->
304
+
305
+
306
+ </section><!-- public-class-method-details -->
307
+
308
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
309
+ <h3 class="section-header">Public Instance Methods</h3>
310
+
311
+
312
+ <div id="method-i-all_domains" class="method-detail ">
313
+
314
+ <div class="method-heading">
315
+ <span class="method-name">all_domains</span><span
316
+ class="method-args">()</span>
317
+ <span class="method-click-advice">click to toggle source</span>
318
+ </div>
319
+
320
+
321
+ <div class="method-description">
322
+
323
+ <p>Returns all domains.</p>
324
+
325
+
326
+
327
+ <div class="method-source-code" id="all_domains-source">
328
+ <pre><span class="ruby-comment"># File lib/ymdp/compiler/domains.rb, line 42</span>
329
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">all_domains</span>
330
+ <span class="ruby-identifier">servers</span>.<span class="ruby-identifier">servers</span>.<span class="ruby-identifier">keys</span>
331
+ <span class="ruby-keyword">end</span></pre>
332
+ </div><!-- all_domains-source -->
333
+
334
+ </div>
335
+
336
+
337
+
338
+
339
+ </div><!-- all_domains-method -->
340
+
341
+
342
+ <div id="method-i-clean_tmp_dir" class="method-detail ">
343
+
344
+ <div class="method-heading">
345
+ <span class="method-name">clean_tmp_dir</span><span
346
+ class="method-args">() { || ... }</span>
347
+ <span class="method-click-advice">click to toggle source</span>
348
+ </div>
349
+
350
+
351
+ <div class="method-description">
352
+
353
+ <p>Perform a block, starting with a clean ‘tmp’ directory and ending with
354
+ one.</p>
355
+
356
+
357
+
358
+ <div class="method-source-code" id="clean_tmp_dir-source">
359
+ <pre><span class="ruby-comment"># File lib/ymdp/compiler/domains.rb, line 69</span>
360
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">clean_tmp_dir</span>
361
+ <span class="ruby-identifier">system</span> <span class="ruby-node">&quot;rm -rf #{TMP_PATH}&quot;</span>
362
+ <span class="ruby-identifier">system</span> <span class="ruby-node">&quot;mkdir #{TMP_PATH}&quot;</span>
363
+ <span class="ruby-keyword">yield</span>
364
+ <span class="ruby-identifier">system</span> <span class="ruby-node">&quot;rm -rf #{TMP_PATH}&quot;</span>
365
+ <span class="ruby-identifier">system</span> <span class="ruby-node">&quot;mkdir #{TMP_PATH}&quot;</span>
366
+ <span class="ruby-keyword">end</span></pre>
367
+ </div><!-- clean_tmp_dir-source -->
368
+
369
+ </div>
370
+
371
+
372
+
373
+
374
+ </div><!-- clean_tmp_dir-method -->
375
+
376
+
377
+ <div id="method-i-commit" class="method-detail ">
378
+
379
+ <div class="method-heading">
380
+ <span class="method-name">commit</span><span
381
+ class="method-args">()</span>
382
+ <span class="method-click-advice">click to toggle source</span>
383
+ </div>
384
+
385
+
386
+ <div class="method-description">
387
+
388
+ <p>Commit to git and store the hash of the commit.</p>
389
+
390
+
391
+
392
+ <div class="method-source-code" id="commit-source">
393
+ <pre><span class="ruby-comment"># File lib/ymdp/compiler/domains.rb, line 48</span>
394
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">commit</span>
395
+ <span class="ruby-ivar">@git</span> = <span class="ruby-constant">YMDP</span><span class="ruby-operator">::</span><span class="ruby-constant">GitHelper</span>.<span class="ruby-identifier">new</span>
396
+ <span class="ruby-ivar">@git</span>.<span class="ruby-identifier">do_commit</span>(<span class="ruby-ivar">@message</span>)
397
+ <span class="ruby-ivar">@git_hash</span> = <span class="ruby-identifier">git</span>.<span class="ruby-identifier">get_hash</span>(<span class="ruby-identifier">options</span>[<span class="ruby-value">:branch</span>])
398
+ <span class="ruby-keyword">end</span></pre>
399
+ </div><!-- commit-source -->
400
+
401
+ </div>
402
+
403
+
404
+
405
+
406
+ </div><!-- commit-method -->
407
+
408
+
409
+ <div id="method-i-compile" class="method-detail ">
410
+
411
+ <div class="method-heading">
412
+ <span class="method-name">compile</span><span
413
+ class="method-args">()</span>
414
+ <span class="method-click-advice">click to toggle source</span>
415
+ </div>
416
+
417
+
418
+ <div class="method-description">
419
+
420
+ <p>Compile the source code for all domains into their usable destination
421
+ files.</p>
422
+
423
+
424
+
425
+ <div class="method-source-code" id="compile-source">
426
+ <pre><span class="ruby-comment"># File lib/ymdp/compiler/domains.rb, line 32</span>
427
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">compile</span>
428
+ <span class="ruby-constant">Timer</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:title</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-string">&quot;YMDP&quot;</span>).<span class="ruby-identifier">time</span> <span class="ruby-keyword">do</span>
429
+ <span class="ruby-identifier">clean_tmp_dir</span> <span class="ruby-keyword">do</span>
430
+ <span class="ruby-identifier">process_domains</span>
431
+ <span class="ruby-keyword">end</span>
432
+ <span class="ruby-keyword">end</span>
433
+ <span class="ruby-keyword">end</span></pre>
434
+ </div><!-- compile-source -->
435
+
436
+ </div>
437
+
438
+
439
+
440
+
441
+ </div><!-- compile-method -->
442
+
443
+
444
+ <div id="method-i-process_domains" class="method-detail ">
445
+
446
+ <div class="method-heading">
447
+ <span class="method-name">process_domains</span><span
448
+ class="method-args">()</span>
449
+ <span class="method-click-advice">click to toggle source</span>
450
+ </div>
451
+
452
+
453
+ <div class="method-description">
454
+
455
+ <p>Process source code for each domain in turn.</p>
456
+
457
+
458
+
459
+ <div class="method-source-code" id="process_domains-source">
460
+ <pre><span class="ruby-comment"># File lib/ymdp/compiler/domains.rb, line 56</span>
461
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">process_domains</span>
462
+ <span class="ruby-identifier">domains</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">domain</span><span class="ruby-operator">|</span>
463
+ <span class="ruby-identifier">params</span> = <span class="ruby-identifier">options</span>
464
+ <span class="ruby-identifier">params</span>[<span class="ruby-value">:host</span>] = <span class="ruby-identifier">configuration</span>.<span class="ruby-identifier">host</span>
465
+ <span class="ruby-identifier">params</span>[<span class="ruby-value">:server</span>] = <span class="ruby-identifier">servers</span>[<span class="ruby-identifier">domain</span>][<span class="ruby-string">&quot;server&quot;</span>]
466
+ <span class="ruby-identifier">compiler</span> = <span class="ruby-constant">YMDP</span><span class="ruby-operator">::</span><span class="ruby-constant">Compiler</span><span class="ruby-operator">::</span><span class="ruby-constant">Base</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">domain</span>, <span class="ruby-identifier">git_hash</span>, <span class="ruby-identifier">params</span>)
467
+
468
+ <span class="ruby-identifier">compiler</span>.<span class="ruby-identifier">process_all</span>
469
+ <span class="ruby-keyword">end</span>
470
+ <span class="ruby-keyword">end</span></pre>
471
+ </div><!-- process_domains-source -->
472
+
473
+ </div>
474
+
475
+
476
+
477
+
478
+ </div><!-- process_domains-method -->
479
+
480
+
481
+ </section><!-- public-instance-method-details -->
482
+
483
+ </section><!-- 5Buntitled-5D -->
484
+
485
+ </div><!-- documentation -->
486
+
487
+
488
+ <footer id="validator-badges">
489
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
490
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
491
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
492
+ </footer>
493
+