ratch 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. data/{log/history → CHANGES} +0 -0
  2. data/{log/todo → TODO} +0 -0
  3. data/bin/manifest +451 -0
  4. data/bin/ratch +3 -3
  5. data/demo/task/config.yaml +4 -0
  6. data/lib/ratch/{batch/argvutils.rb → dsl/argv.rb} +9 -4
  7. data/lib/ratch/dsl/batch.rb +226 -0
  8. data/lib/ratch/{batch → dsl}/build.rb +83 -4
  9. data/lib/ratch/{batch/consoleutils.rb → dsl/console.rb} +13 -5
  10. data/lib/ratch/{batch/emailutils.rb → dsl/email.rb} +21 -25
  11. data/lib/ratch/{batch/fileutils.rb → dsl/file.rb} +56 -56
  12. data/lib/ratch/dsl/meta.rb +132 -0
  13. data/lib/ratch/{batch → dsl}/options.rb +7 -5
  14. data/lib/ratch/dsl/setup.rb +124 -0
  15. data/lib/ratch/{support/signiture.rb → dsl/sign.rb} +9 -18
  16. data/lib/ratch/dsl/stage.rb +147 -0
  17. data/lib/ratch/dsl/task.rb +139 -0
  18. data/lib/ratch/{uploadutils.rb → dsl/upload.rb} +7 -5
  19. data/lib/ratch/{batch/task.rb → dsl/zip.rb} +30 -14
  20. data/lib/ratch/dsl.rb +52 -0
  21. data/lib/ratch/extra/email.rb +5 -0
  22. data/lib/ratch/extra/stage.rb +5 -0
  23. data/lib/ratch/extra/zip.rb +5 -0
  24. data/lib/ratch/manifest.rb +540 -0
  25. data/lib/ratch/{project → metadata}/information.rb +1 -0
  26. data/lib/ratch/{project → metadata}/package.rb +28 -2
  27. data/lib/ratch/{project → metadata}/project.rb +8 -16
  28. data/lib/ratch/{project → metadata}/release.rb +6 -6
  29. data/lib/ratch/support/errors.rb +4 -0
  30. data/lib/ratch/support/filename.rb +18 -0
  31. data/lib/ratch/toolset/ruby/compile +49 -0
  32. data/lib/ratch/toolset/ruby/pack/gem +26 -18
  33. data/lib/ratch/toolset/ruby/pack/tgz +25 -64
  34. data/lib/ratch/toolset/ruby/pack/zip +46 -0
  35. data/lib/ratch/toolset/ruby/publish +23 -24
  36. data/lib/ratch/toolset/ruby/release +8 -0
  37. data/lib/ratch/toolset/ruby/stamp +33 -0
  38. data/lib/ratch/toolset/sandbox +11 -0
  39. data/meta/MANIFEST +101 -23
  40. data/meta/ROLLRC +1 -1
  41. data/meta/config.yaml +10 -0
  42. data/meta/icli.yaml +2 -2
  43. data/meta/project.yaml +9 -10
  44. data/meta/xProjectInfo +41 -0
  45. data/task/release +1 -4
  46. metadata +82 -156
  47. data/demo/task/rdoc +0 -88
  48. data/demo/task/rdoc-old +0 -182
  49. data/doc/images/clipboard.jpg +0 -0
  50. data/doc/images/clipboard2.png +0 -0
  51. data/doc/images/milles-tn.jpg +0 -0
  52. data/doc/images/mints.png +0 -0
  53. data/doc/images/ratch2.png +0 -0
  54. data/doc/images/ruby-sm.png +0 -0
  55. data/doc/images/silver.gif +0 -0
  56. data/doc/images/toolbox.jpg +0 -0
  57. data/doc/index.html +0 -181
  58. data/doc/notes/original.rb +0 -308
  59. data/doc/rdoc/classes/Array.html +0 -194
  60. data/doc/rdoc/classes/Dir.html +0 -317
  61. data/doc/rdoc/classes/Hash.html +0 -217
  62. data/doc/rdoc/classes/Ratch/ArgvUtils/Ext.html +0 -285
  63. data/doc/rdoc/classes/Ratch/ArgvUtils.html +0 -173
  64. data/doc/rdoc/classes/Ratch/BatchFile.html +0 -207
  65. data/doc/rdoc/classes/Ratch/BatchManager.html +0 -250
  66. data/doc/rdoc/classes/Ratch/BatchScript.html +0 -127
  67. data/doc/rdoc/classes/Ratch/Batchable.html +0 -373
  68. data/doc/rdoc/classes/Ratch/Build.html +0 -321
  69. data/doc/rdoc/classes/Ratch/BuildManager.html +0 -319
  70. data/doc/rdoc/classes/Ratch/Buildable.html +0 -202
  71. data/doc/rdoc/classes/Ratch/ConfigUtils.html +0 -281
  72. data/doc/rdoc/classes/Ratch/ConsoleUtils.html +0 -189
  73. data/doc/rdoc/classes/Ratch/EmailUtils.html +0 -209
  74. data/doc/rdoc/classes/Ratch/FileUtils.html +0 -674
  75. data/doc/rdoc/classes/Ratch/GeneralOptions.html +0 -430
  76. data/doc/rdoc/classes/Ratch/Task.html +0 -201
  77. data/doc/rdoc/classes/Ratch/TaskManager.html +0 -330
  78. data/doc/rdoc/classes/Ratch/Taskable.html +0 -231
  79. data/doc/rdoc/classes/Ratch/UploadUtils.html +0 -566
  80. data/doc/rdoc/classes/Ratch.html +0 -201
  81. data/doc/rdoc/created.rid +0 -1
  82. data/doc/rdoc/files/COPYING.html +0 -1003
  83. data/doc/rdoc/files/README.html +0 -143
  84. data/doc/rdoc/files/lib/ratch/argvutils_rb.html +0 -131
  85. data/doc/rdoc/files/lib/ratch/batch_rb.html +0 -155
  86. data/doc/rdoc/files/lib/ratch/batchable_rb.html +0 -131
  87. data/doc/rdoc/files/lib/ratch/batchfile_rb.html +0 -148
  88. data/doc/rdoc/files/lib/ratch/buildable_rb.html +0 -131
  89. data/doc/rdoc/files/lib/ratch/consoleutils_rb.html +0 -131
  90. data/doc/rdoc/files/lib/ratch/emailutils_rb.html +0 -139
  91. data/doc/rdoc/files/lib/ratch/facets/multiglob_rb.html +0 -137
  92. data/doc/rdoc/files/lib/ratch/fileutils_rb.html +0 -139
  93. data/doc/rdoc/files/lib/ratch/options_rb.html +0 -131
  94. data/doc/rdoc/files/lib/ratch/taskable_rb.html +0 -131
  95. data/doc/rdoc/files/lib/ratch/uploadutils_rb.html +0 -150
  96. data/doc/rdoc/fr_class_index.html +0 -48
  97. data/doc/rdoc/fr_file_index.html +0 -41
  98. data/doc/rdoc/fr_method_index.html +0 -133
  99. data/doc/rdoc/index.html +0 -24
  100. data/doc/rdoc/rdoc-style.css +0 -208
  101. data/doc/scrap/flexihead-flip.jpg +0 -0
  102. data/doc/scrap/flexihead.jpg +0 -0
  103. data/doc/scrap/head1.jpg +0 -0
  104. data/doc/scrap/ratch.jpg +0 -0
  105. data/doc/scrap/ratch1.png +0 -0
  106. data/doc/scrap/ratch2.jpg +0 -0
  107. data/doc/scrap/ratch3.png +0 -0
  108. data/doc/scrap/red-ratch.jpg +0 -0
  109. data/doc/scrap/redratchet.jpg +0 -0
  110. data/doc/scrap/ruby-kit/ruby.png +0 -0
  111. data/doc/scrap/scrap.red +0 -256
  112. data/doc/sitemap.yaml +0 -10
  113. data/doc/siteparts/index.red +0 -100
  114. data/doc/siteparts/layout.rhtml +0 -56
  115. data/doc/siteparts/tutorial.red +0 -578
  116. data/doc/style.css +0 -112
  117. data/doc/tutorial.html +0 -722
  118. data/lib/ratch/batch.rb +0 -488
  119. data/lib/ratch/support/setuputils.rb +0 -124
  120. data/lib/ratch/support/stage.rb +0 -292
  121. data/lib/ratch/toolset/ruby/rdoc +0 -88
  122. data/task/rdoc +0 -6
  123. data/work/old/batchfile.rb +0 -95
  124. data/work/project-old.rb +0 -67
  125. data/work/scrap/install +0 -89
  126. data/work/scrap/install.0 +0 -49
  127. data/work/scrap/install.1 +0 -63
  128. data/work/scrap/ludo +0 -25
  129. data/work/scrap/oldtaskable.rb +0 -573
  130. data/work/scrap/ratch.man +0 -39
  131. data/work/scrap/taskable-simple.rb +0 -42
  132. data/work/scrap/taskable.rb +0 -120
@@ -1,430 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Module: Ratch::GeneralOptions</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Module</strong></td>
53
- <td class="class-name-in-header">Ratch::GeneralOptions</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../files/lib/ratch/options_rb.html">
59
- lib/ratch/options.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- </table>
66
- </div>
67
- <!-- banner header -->
68
-
69
- <div id="bodyContent">
70
-
71
-
72
-
73
- <div id="contextContent">
74
-
75
- <div id="description">
76
- <p>
77
- General Options
78
- </p>
79
-
80
- </div>
81
-
82
-
83
- </div>
84
-
85
- <div id="method-list">
86
- <h3 class="section-bar">Methods</h3>
87
-
88
- <div class="name-list">
89
- <a href="#M000010">argv</a>&nbsp;&nbsp;
90
- <a href="#M000011">command_parameters</a>&nbsp;&nbsp;
91
- <a href="#M000012">debug?</a>&nbsp;&nbsp;
92
- <a href="#M000020">dryrun!</a>&nbsp;&nbsp;
93
- <a href="#M000018">dryrun?</a>&nbsp;&nbsp;
94
- <a href="#M000022">force!</a>&nbsp;&nbsp;
95
- <a href="#M000021">force?</a>&nbsp;&nbsp;
96
- <a href="#M000019">noharm!</a>&nbsp;&nbsp;
97
- <a href="#M000017">noharm?</a>&nbsp;&nbsp;
98
- <a href="#M000016">trace!</a>&nbsp;&nbsp;
99
- <a href="#M000015">trace?</a>&nbsp;&nbsp;
100
- <a href="#M000014">verbose!</a>&nbsp;&nbsp;
101
- <a href="#M000013">verbose?</a>&nbsp;&nbsp;
102
- </div>
103
- </div>
104
-
105
- </div>
106
-
107
-
108
- <!-- if includes -->
109
-
110
- <div id="section">
111
-
112
-
113
-
114
-
115
-
116
-
117
-
118
-
119
- <!-- if method_list -->
120
- <div id="methods">
121
- <h3 class="section-bar">Public Instance methods</h3>
122
-
123
- <div id="method-M000010" class="method-detail">
124
- <a name="M000010"></a>
125
-
126
- <div class="method-heading">
127
- <a href="#M000010" class="method-signature">
128
- <span class="method-name">argv</span><span class="method-args">()</span>
129
- </a>
130
- </div>
131
-
132
- <div class="method-description">
133
- <p>
134
- Duplicate of ARGV.
135
- </p>
136
- <p><a class="source-toggle" href="#"
137
- onclick="toggleCode('M000010-source');return false;">[Source]</a></p>
138
- <div class="method-source-code" id="M000010-source">
139
- <pre>
140
- <span class="ruby-comment cmt"># File lib/ratch/options.rb, line 32</span>
141
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">argv</span>
142
- <span class="ruby-ivar">@argv</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">ARGV</span>.<span class="ruby-identifier">dup</span>
143
- <span class="ruby-keyword kw">end</span>
144
- </pre>
145
- </div>
146
- </div>
147
- </div>
148
-
149
- <div id="method-M000011" class="method-detail">
150
- <a name="M000011"></a>
151
-
152
- <div class="method-heading">
153
- <a href="#M000011" class="method-signature">
154
- <span class="method-name">command_parameters</span><span class="method-args">()</span>
155
- </a>
156
- </div>
157
-
158
- <div class="method-description">
159
- <p>
160
- Convert command line <a href="GeneralOptions.html#M000010">argv</a> to
161
- args.
162
- </p>
163
- <p>
164
- TODO Is this implmented as expected?
165
- </p>
166
- <p><a class="source-toggle" href="#"
167
- onclick="toggleCode('M000011-source');return false;">[Source]</a></p>
168
- <div class="method-source-code" id="M000011-source">
169
- <pre>
170
- <span class="ruby-comment cmt"># File lib/ratch/options.rb, line 40</span>
171
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">command_parameters</span>
172
- <span class="ruby-identifier">argv</span>.<span class="ruby-identifier">to_params</span>
173
- <span class="ruby-keyword kw">end</span>
174
- </pre>
175
- </div>
176
- </div>
177
- </div>
178
-
179
- <div id="method-M000012" class="method-detail">
180
- <a name="M000012"></a>
181
-
182
- <div class="method-heading">
183
- <a href="#M000012" class="method-signature">
184
- <span class="method-name">debug?</span><span class="method-args">()</span>
185
- </a>
186
- </div>
187
-
188
- <div class="method-description">
189
- <p>
190
- Debug mode.
191
- </p>
192
- <p><a class="source-toggle" href="#"
193
- onclick="toggleCode('M000012-source');return false;">[Source]</a></p>
194
- <div class="method-source-code" id="M000012-source">
195
- <pre>
196
- <span class="ruby-comment cmt"># File lib/ratch/options.rb, line 46</span>
197
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">debug?</span>
198
- <span class="ruby-ivar">@debug</span> <span class="ruby-operator">||=</span> <span class="ruby-node">%w{--debug}</span>.<span class="ruby-identifier">any?</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span> <span class="ruby-identifier">argv</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">a</span>)}
199
- <span class="ruby-keyword kw">end</span>
200
- </pre>
201
- </div>
202
- </div>
203
- </div>
204
-
205
- <div id="method-M000020" class="method-detail">
206
- <a name="M000020"></a>
207
-
208
- <div class="method-heading">
209
- <span class="method-name">dryrun!</span><span class="method-args">()</span>
210
- </div>
211
-
212
- <div class="method-description">
213
- <p>
214
- Alias for noharm!
215
- </p>
216
- </div>
217
- </div>
218
-
219
- <div id="method-M000018" class="method-detail">
220
- <a name="M000018"></a>
221
-
222
- <div class="method-heading">
223
- <span class="method-name">dryrun?</span><span class="method-args">()</span>
224
- </div>
225
-
226
- <div class="method-description">
227
- <p>
228
- Alias for noharm?
229
- </p>
230
- </div>
231
- </div>
232
-
233
- <div id="method-M000022" class="method-detail">
234
- <a name="M000022"></a>
235
-
236
- <div class="method-heading">
237
- <a href="#M000022" class="method-signature">
238
- <span class="method-name">force!</span><span class="method-args">()</span>
239
- </a>
240
- </div>
241
-
242
- <div class="method-description">
243
- <p><a class="source-toggle" href="#"
244
- onclick="toggleCode('M000022-source');return false;">[Source]</a></p>
245
- <div class="method-source-code" id="M000022-source">
246
- <pre>
247
- <span class="ruby-comment cmt"># File lib/ratch/options.rb, line 92</span>
248
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">force!</span> ; <span class="ruby-ivar">@force</span> = <span class="ruby-keyword kw">true</span> ; <span class="ruby-keyword kw">end</span>
249
- </pre>
250
- </div>
251
- </div>
252
- </div>
253
-
254
- <div id="method-M000021" class="method-detail">
255
- <a name="M000021"></a>
256
-
257
- <div class="method-heading">
258
- <a href="#M000021" class="method-signature">
259
- <span class="method-name">force?</span><span class="method-args">()</span>
260
- </a>
261
- </div>
262
-
263
- <div class="method-description">
264
- <p>
265
- Force mode.
266
- </p>
267
- <p><a class="source-toggle" href="#"
268
- onclick="toggleCode('M000021-source');return false;">[Source]</a></p>
269
- <div class="method-source-code" id="M000021-source">
270
- <pre>
271
- <span class="ruby-comment cmt"># File lib/ratch/options.rb, line 88</span>
272
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">force?</span>
273
- <span class="ruby-ivar">@force</span> <span class="ruby-operator">||=</span> <span class="ruby-node">%w{--force}</span>.<span class="ruby-identifier">any?</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span> <span class="ruby-identifier">argv</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">a</span>)}
274
- <span class="ruby-keyword kw">end</span>
275
- </pre>
276
- </div>
277
- </div>
278
- </div>
279
-
280
- <div id="method-M000019" class="method-detail">
281
- <a name="M000019"></a>
282
-
283
- <div class="method-heading">
284
- <a href="#M000019" class="method-signature">
285
- <span class="method-name">noharm!</span><span class="method-args">()</span>
286
- </a>
287
- </div>
288
-
289
- <div class="method-description">
290
- <p><a class="source-toggle" href="#"
291
- onclick="toggleCode('M000019-source');return false;">[Source]</a></p>
292
- <div class="method-source-code" id="M000019-source">
293
- <pre>
294
- <span class="ruby-comment cmt"># File lib/ratch/options.rb, line 81</span>
295
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">noharm!</span>
296
- <span class="ruby-ivar">@noharm</span> = <span class="ruby-keyword kw">true</span>
297
- <span class="ruby-keyword kw">end</span>
298
- </pre>
299
- </div>
300
- </div>
301
- </div>
302
-
303
- <div id="method-M000017" class="method-detail">
304
- <a name="M000017"></a>
305
-
306
- <div class="method-heading">
307
- <a href="#M000017" class="method-signature">
308
- <span class="method-name">noharm?</span><span class="method-args">()</span>
309
- </a>
310
- </div>
311
-
312
- <div class="method-description">
313
- <p><a class="source-toggle" href="#"
314
- onclick="toggleCode('M000017-source');return false;">[Source]</a></p>
315
- <div class="method-source-code" id="M000017-source">
316
- <pre>
317
- <span class="ruby-comment cmt"># File lib/ratch/options.rb, line 76</span>
318
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">noharm?</span>
319
- <span class="ruby-ivar">@noharm</span> <span class="ruby-operator">||=</span> <span class="ruby-node">%w{--dryrun --dry-run --noharm}</span>.<span class="ruby-identifier">any?</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span> <span class="ruby-identifier">argv</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">a</span>)}
320
- <span class="ruby-keyword kw">end</span>
321
- </pre>
322
- </div>
323
- </div>
324
- </div>
325
-
326
- <div id="method-M000016" class="method-detail">
327
- <a name="M000016"></a>
328
-
329
- <div class="method-heading">
330
- <a href="#M000016" class="method-signature">
331
- <span class="method-name">trace!</span><span class="method-args">()</span>
332
- </a>
333
- </div>
334
-
335
- <div class="method-description">
336
- <p><a class="source-toggle" href="#"
337
- onclick="toggleCode('M000016-source');return false;">[Source]</a></p>
338
- <div class="method-source-code" id="M000016-source">
339
- <pre>
340
- <span class="ruby-comment cmt"># File lib/ratch/options.rb, line 70</span>
341
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">trace!</span>
342
- <span class="ruby-ivar">@trace</span> = <span class="ruby-keyword kw">true</span>
343
- <span class="ruby-keyword kw">end</span>
344
- </pre>
345
- </div>
346
- </div>
347
- </div>
348
-
349
- <div id="method-M000015" class="method-detail">
350
- <a name="M000015"></a>
351
-
352
- <div class="method-heading">
353
- <a href="#M000015" class="method-signature">
354
- <span class="method-name">trace?</span><span class="method-args">()</span>
355
- </a>
356
- </div>
357
-
358
- <div class="method-description">
359
- <p><a class="source-toggle" href="#"
360
- onclick="toggleCode('M000015-source');return false;">[Source]</a></p>
361
- <div class="method-source-code" id="M000015-source">
362
- <pre>
363
- <span class="ruby-comment cmt"># File lib/ratch/options.rb, line 64</span>
364
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">trace?</span>
365
- <span class="ruby-ivar">@trace</span> <span class="ruby-operator">||=</span> <span class="ruby-node">%w{--trace}</span>.<span class="ruby-identifier">any?</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span> <span class="ruby-identifier">argv</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">a</span>)}
366
- <span class="ruby-keyword kw">end</span>
367
- </pre>
368
- </div>
369
- </div>
370
- </div>
371
-
372
- <div id="method-M000014" class="method-detail">
373
- <a name="M000014"></a>
374
-
375
- <div class="method-heading">
376
- <a href="#M000014" class="method-signature">
377
- <span class="method-name">verbose!</span><span class="method-args">()</span>
378
- </a>
379
- </div>
380
-
381
- <div class="method-description">
382
- <p><a class="source-toggle" href="#"
383
- onclick="toggleCode('M000014-source');return false;">[Source]</a></p>
384
- <div class="method-source-code" id="M000014-source">
385
- <pre>
386
- <span class="ruby-comment cmt"># File lib/ratch/options.rb, line 58</span>
387
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">verbose!</span>
388
- <span class="ruby-ivar">@verbose</span> = <span class="ruby-keyword kw">true</span>
389
- <span class="ruby-keyword kw">end</span>
390
- </pre>
391
- </div>
392
- </div>
393
- </div>
394
-
395
- <div id="method-M000013" class="method-detail">
396
- <a name="M000013"></a>
397
-
398
- <div class="method-heading">
399
- <a href="#M000013" class="method-signature">
400
- <span class="method-name">verbose?</span><span class="method-args">()</span>
401
- </a>
402
- </div>
403
-
404
- <div class="method-description">
405
- <p><a class="source-toggle" href="#"
406
- onclick="toggleCode('M000013-source');return false;">[Source]</a></p>
407
- <div class="method-source-code" id="M000013-source">
408
- <pre>
409
- <span class="ruby-comment cmt"># File lib/ratch/options.rb, line 52</span>
410
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">verbose?</span>
411
- <span class="ruby-ivar">@verbose</span> <span class="ruby-operator">||=</span> <span class="ruby-node">%w{--verbose}</span>.<span class="ruby-identifier">any?</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span> <span class="ruby-identifier">argv</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">a</span>)}
412
- <span class="ruby-keyword kw">end</span>
413
- </pre>
414
- </div>
415
- </div>
416
- </div>
417
-
418
-
419
- </div>
420
-
421
-
422
- </div>
423
-
424
-
425
- <div id="validator-badges">
426
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
427
- </div>
428
-
429
- </body>
430
- </html>
@@ -1,201 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: Ratch::Task</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">Ratch::Task</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../files/lib/ratch/taskable_rb.html">
59
- lib/ratch/taskable.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- Object
69
- </td>
70
- </tr>
71
- </table>
72
- </div>
73
- <!-- banner header -->
74
-
75
- <div id="bodyContent">
76
-
77
-
78
-
79
- <div id="contextContent">
80
-
81
- <div id="description">
82
- <h1><a href="Task.html">Task</a> class</h1>
83
-
84
- </div>
85
-
86
-
87
- </div>
88
-
89
- <div id="method-list">
90
- <h3 class="section-bar">Methods</h3>
91
-
92
- <div class="name-list">
93
- <a href="#M000098">call</a>&nbsp;&nbsp;
94
- <a href="#M000097">new</a>&nbsp;&nbsp;
95
- </div>
96
- </div>
97
-
98
- </div>
99
-
100
-
101
- <!-- if includes -->
102
-
103
- <div id="section">
104
-
105
-
106
-
107
-
108
-
109
- <div id="attribute-list">
110
- <h3 class="section-bar">Attributes</h3>
111
-
112
- <div class="name-list">
113
- <table>
114
- <tr class="top-aligned-row context-row">
115
- <td class="context-item-name">action</td>
116
- <td class="context-item-value">&nbsp;[R]&nbsp;</td>
117
- <td class="context-item-desc"></td>
118
- </tr>
119
- <tr class="top-aligned-row context-row">
120
- <td class="context-item-name">name</td>
121
- <td class="context-item-value">&nbsp;[R]&nbsp;</td>
122
- <td class="context-item-desc"></td>
123
- </tr>
124
- <tr class="top-aligned-row context-row">
125
- <td class="context-item-name">needs</td>
126
- <td class="context-item-value">&nbsp;[R]&nbsp;</td>
127
- <td class="context-item-desc"></td>
128
- </tr>
129
- </table>
130
- </div>
131
- </div>
132
-
133
-
134
-
135
- <!-- if method_list -->
136
- <div id="methods">
137
- <h3 class="section-bar">Public Class methods</h3>
138
-
139
- <div id="method-M000097" class="method-detail">
140
- <a name="M000097"></a>
141
-
142
- <div class="method-heading">
143
- <a href="#M000097" class="method-signature">
144
- <span class="method-name">new</span><span class="method-args">(name, *needs, &amp;action)</span>
145
- </a>
146
- </div>
147
-
148
- <div class="method-description">
149
- <p><a class="source-toggle" href="#"
150
- onclick="toggleCode('M000097-source');return false;">[Source]</a></p>
151
- <div class="method-source-code" id="M000097-source">
152
- <pre>
153
- <span class="ruby-comment cmt"># File lib/ratch/taskable.rb, line 139</span>
154
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">name</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">needs</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">action</span>)
155
- <span class="ruby-ivar">@name</span> = <span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_s</span>
156
- <span class="ruby-ivar">@needs</span> = <span class="ruby-identifier">needs</span>
157
- <span class="ruby-ivar">@action</span> = <span class="ruby-identifier">action</span>
158
- <span class="ruby-keyword kw">end</span>
159
- </pre>
160
- </div>
161
- </div>
162
- </div>
163
-
164
- <h3 class="section-bar">Public Instance methods</h3>
165
-
166
- <div id="method-M000098" class="method-detail">
167
- <a name="M000098"></a>
168
-
169
- <div class="method-heading">
170
- <a href="#M000098" class="method-signature">
171
- <span class="method-name">call</span><span class="method-args">()</span>
172
- </a>
173
- </div>
174
-
175
- <div class="method-description">
176
- <p><a class="source-toggle" href="#"
177
- onclick="toggleCode('M000098-source');return false;">[Source]</a></p>
178
- <div class="method-source-code" id="M000098-source">
179
- <pre>
180
- <span class="ruby-comment cmt"># File lib/ratch/taskable.rb, line 146</span>
181
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">call</span>
182
- <span class="ruby-ivar">@action</span>.<span class="ruby-identifier">call</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@action</span>
183
- <span class="ruby-keyword kw">end</span>
184
- </pre>
185
- </div>
186
- </div>
187
- </div>
188
-
189
-
190
- </div>
191
-
192
-
193
- </div>
194
-
195
-
196
- <div id="validator-badges">
197
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
198
- </div>
199
-
200
- </body>
201
- </html>