mattock 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. data/doc/Specifications +0 -37
  2. data/lib/mattock/cascading-definition.rb +36 -0
  3. data/lib/mattock/configurable.rb +46 -5
  4. data/lib/mattock/tasklib.rb +47 -1
  5. data/lib/mattock/yard_extensions.rb +10 -0
  6. metadata +3 -213
  7. data/doc/FileSandbox.html +0 -537
  8. data/doc/FileSandbox/HaveContents.html +0 -279
  9. data/doc/FileSandbox/Sandbox.html +0 -525
  10. data/doc/FileSandbox/SandboxFile.html +0 -622
  11. data/doc/Mattock.html +0 -137
  12. data/doc/Mattock/CascadingDefinition.html +0 -459
  13. data/doc/Mattock/CommandChain.html +0 -456
  14. data/doc/Mattock/CommandLine.html +0 -1312
  15. data/doc/Mattock/CommandLineExampleGroup.html +0 -282
  16. data/doc/Mattock/CommandLineExampleGroup/Matchers.html +0 -109
  17. data/doc/Mattock/CommandRunResult.html +0 -643
  18. data/doc/Mattock/CommandTask.html +0 -464
  19. data/doc/Mattock/Configurable.html +0 -609
  20. data/doc/Mattock/Configurable/ClassMethods.html +0 -754
  21. data/doc/Mattock/Configurable/Struct.html +0 -148
  22. data/doc/Mattock/FileCreationTask.html +0 -177
  23. data/doc/Mattock/FileTask.html +0 -177
  24. data/doc/Mattock/MockCommandResult.html +0 -445
  25. data/doc/Mattock/MultiTask.html +0 -177
  26. data/doc/Mattock/PipelineChain.html +0 -221
  27. data/doc/Mattock/PrereqChain.html +0 -221
  28. data/doc/Mattock/RakeExampleGroup.html +0 -292
  29. data/doc/Mattock/RakeExampleGroup/Matchers.html +0 -109
  30. data/doc/Mattock/RakeExampleGroup/TaskManager.html +0 -131
  31. data/doc/Mattock/RemoteCommandTask.html +0 -423
  32. data/doc/Mattock/ShellEscaped.html +0 -315
  33. data/doc/Mattock/Task.html +0 -181
  34. data/doc/Mattock/TaskLib.html +0 -755
  35. data/doc/Mattock/TaskMixin.html +0 -668
  36. data/doc/Mattock/TaskMixin/ClassMethods.html +0 -166
  37. data/doc/Mattock/TemplateHost.html +0 -320
  38. data/doc/Mattock/ValiseManager.html +0 -257
  39. data/doc/Mattock/WrappingChain.html +0 -221
  40. data/doc/Mattock/YARDExtensions.html +0 -110
  41. data/doc/Mattock/YARDExtensions/DefineHandler.html +0 -253
  42. data/doc/Mattock/YARDExtensions/NilFieldsHandler.html +0 -258
  43. data/doc/Mattock/YARDExtensions/RequiredFieldsHandler.html +0 -205
  44. data/doc/Mattock/YARDExtensions/SettingHandler.html +0 -529
  45. data/doc/Mattock/YARDExtensions/SettingsHandler.html +0 -207
  46. data/doc/RSpecTest.html +0 -233
  47. data/doc/Ungemmer.html +0 -282
  48. data/doc/_index.html +0 -435
  49. data/doc/class_list.html +0 -47
  50. data/doc/coverage/assets/0.5.3/app.js +0 -88
  51. data/doc/coverage/assets/0.5.3/fancybox/blank.gif +0 -0
  52. data/doc/coverage/assets/0.5.3/fancybox/fancy_close.png +0 -0
  53. data/doc/coverage/assets/0.5.3/fancybox/fancy_loading.png +0 -0
  54. data/doc/coverage/assets/0.5.3/fancybox/fancy_nav_left.png +0 -0
  55. data/doc/coverage/assets/0.5.3/fancybox/fancy_nav_right.png +0 -0
  56. data/doc/coverage/assets/0.5.3/fancybox/fancy_shadow_e.png +0 -0
  57. data/doc/coverage/assets/0.5.3/fancybox/fancy_shadow_n.png +0 -0
  58. data/doc/coverage/assets/0.5.3/fancybox/fancy_shadow_ne.png +0 -0
  59. data/doc/coverage/assets/0.5.3/fancybox/fancy_shadow_nw.png +0 -0
  60. data/doc/coverage/assets/0.5.3/fancybox/fancy_shadow_s.png +0 -0
  61. data/doc/coverage/assets/0.5.3/fancybox/fancy_shadow_se.png +0 -0
  62. data/doc/coverage/assets/0.5.3/fancybox/fancy_shadow_sw.png +0 -0
  63. data/doc/coverage/assets/0.5.3/fancybox/fancy_shadow_w.png +0 -0
  64. data/doc/coverage/assets/0.5.3/fancybox/fancy_title_left.png +0 -0
  65. data/doc/coverage/assets/0.5.3/fancybox/fancy_title_main.png +0 -0
  66. data/doc/coverage/assets/0.5.3/fancybox/fancy_title_over.png +0 -0
  67. data/doc/coverage/assets/0.5.3/fancybox/fancy_title_right.png +0 -0
  68. data/doc/coverage/assets/0.5.3/fancybox/fancybox-x.png +0 -0
  69. data/doc/coverage/assets/0.5.3/fancybox/fancybox-y.png +0 -0
  70. data/doc/coverage/assets/0.5.3/fancybox/fancybox.png +0 -0
  71. data/doc/coverage/assets/0.5.3/fancybox/jquery.fancybox-1.3.1.css +0 -363
  72. data/doc/coverage/assets/0.5.3/fancybox/jquery.fancybox-1.3.1.pack.js +0 -44
  73. data/doc/coverage/assets/0.5.3/favicon_green.png +0 -0
  74. data/doc/coverage/assets/0.5.3/favicon_red.png +0 -0
  75. data/doc/coverage/assets/0.5.3/favicon_yellow.png +0 -0
  76. data/doc/coverage/assets/0.5.3/highlight.css +0 -129
  77. data/doc/coverage/assets/0.5.3/highlight.pack.js +0 -1
  78. data/doc/coverage/assets/0.5.3/jquery-1.6.2.min.js +0 -18
  79. data/doc/coverage/assets/0.5.3/jquery.dataTables.min.js +0 -152
  80. data/doc/coverage/assets/0.5.3/jquery.timeago.js +0 -141
  81. data/doc/coverage/assets/0.5.3/jquery.url.js +0 -174
  82. data/doc/coverage/assets/0.5.3/loading.gif +0 -0
  83. data/doc/coverage/assets/0.5.3/magnify.png +0 -0
  84. data/doc/coverage/assets/0.5.3/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  85. data/doc/coverage/assets/0.5.3/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  86. data/doc/coverage/assets/0.5.3/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  87. data/doc/coverage/assets/0.5.3/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  88. data/doc/coverage/assets/0.5.3/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  89. data/doc/coverage/assets/0.5.3/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  90. data/doc/coverage/assets/0.5.3/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  91. data/doc/coverage/assets/0.5.3/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  92. data/doc/coverage/assets/0.5.3/smoothness/images/ui-icons_222222_256x240.png +0 -0
  93. data/doc/coverage/assets/0.5.3/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  94. data/doc/coverage/assets/0.5.3/smoothness/images/ui-icons_454545_256x240.png +0 -0
  95. data/doc/coverage/assets/0.5.3/smoothness/images/ui-icons_888888_256x240.png +0 -0
  96. data/doc/coverage/assets/0.5.3/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  97. data/doc/coverage/assets/0.5.3/smoothness/jquery-ui-1.8.4.custom.css +0 -295
  98. data/doc/coverage/assets/0.5.3/stylesheet.css +0 -383
  99. data/doc/coverage/index.html +0 -5169
  100. data/doc/css/common.css +0 -1
  101. data/doc/css/full_list.css +0 -55
  102. data/doc/css/style.css +0 -322
  103. data/doc/file.README.html +0 -107
  104. data/doc/file_list.html +0 -49
  105. data/doc/frames.html +0 -13
  106. data/doc/index.html +0 -107
  107. data/doc/js/app.js +0 -205
  108. data/doc/js/full_list.js +0 -173
  109. data/doc/js/jquery.js +0 -16
  110. data/doc/method_list.html +0 -950
  111. data/doc/top-level-namespace.html +0 -107
@@ -1,755 +0,0 @@
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: Mattock::TaskLib
8
-
9
- &mdash; Documentation by YARD 0.7.5
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- relpath = '..';
19
- if (relpath != '') relpath += '/';
20
- </script>
21
-
22
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
23
-
24
- <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
25
-
26
-
27
- </head>
28
- <body>
29
- <script type="text/javascript" charset="utf-8">
30
- if (window.top.frames.main) document.body.className = 'frames';
31
- </script>
32
-
33
- <div id="header">
34
- <div id="menu">
35
-
36
- <a href="../_index.html">Index (T)</a> &raquo;
37
- <span class='title'><span class='object_link'><a href="../Mattock.html" title="Mattock (module)">Mattock</a></span></span>
38
- &raquo;
39
- <span class="title">TaskLib</span>
40
-
41
-
42
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
- </div>
44
-
45
- <div id="search">
46
-
47
- <a id="class_list_link" href="#">Class List</a>
48
-
49
- <a id="method_list_link" href="#">Method List</a>
50
-
51
- <a id="file_list_link" href="#">File List</a>
52
-
53
- </div>
54
- <div class="clear"></div>
55
- </div>
56
-
57
- <iframe id="search_frame"></iframe>
58
-
59
- <div id="content"><h1>Class: Mattock::TaskLib
60
-
61
-
62
-
63
- </h1>
64
-
65
- <dl class="box">
66
-
67
- <dt class="r1">Inherits:</dt>
68
- <dd class="r1">
69
- <span class="inheritName">Rake::TaskLib</span>
70
-
71
- <ul class="fullTree">
72
- <li>Object</li>
73
-
74
- <li class="next">Rake::TaskLib</li>
75
-
76
- <li class="next">Mattock::TaskLib</li>
77
-
78
- </ul>
79
- <a href="#" class="inheritanceTree">show all</a>
80
-
81
- </dd>
82
-
83
-
84
-
85
-
86
-
87
-
88
- <dt class="r2">Includes:</dt>
89
- <dd class="r2"><span class='object_link'><a href="CascadingDefinition.html" title="Mattock::CascadingDefinition (module)">CascadingDefinition</a></span></dd>
90
-
91
-
92
-
93
-
94
-
95
- <dt class="r1 last">Defined in:</dt>
96
- <dd class="r1 last">lib/mattock/tasklib.rb</dd>
97
-
98
- </dl>
99
- <div class="clear"></div>
100
-
101
-
102
-
103
- <h2>Constant Summary</h2>
104
-
105
-
106
-
107
-
108
- <h2>Constant Summary</h2>
109
-
110
- <h3 class="inherited">Constants included
111
- from <span class='object_link'><a href="Configurable.html" title="Mattock::Configurable (module)">Configurable</a></span></h3>
112
- <p class="inherited"><span class='object_link'><a href="Configurable.html#RequiredField-constant" title="Mattock::Configurable::RequiredField (constant)">Configurable::RequiredField</a></span></p>
113
-
114
-
115
-
116
- <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
117
- <ul class="summary">
118
-
119
- <li class="public ">
120
- <span class="summary_signature">
121
-
122
- <a href="#namespace_name%3D-instance_method" title="#namespace_name= (instance method)">- (Object) <strong>namespace_name</strong> </a>
123
-
124
-
125
-
126
- </span>
127
-
128
-
129
-
130
- <span class="note title writeonly">writeonly</span>
131
-
132
-
133
-
134
-
135
-
136
-
137
-
138
- <span class="summary_desc"><div class='inline'>
139
- <p>Sets the attribute namespace_name.</p>
140
- </div></span>
141
-
142
- </li>
143
-
144
-
145
- <li class="public ">
146
- <span class="summary_signature">
147
-
148
- <a href="#tasks-instance_method" title="#tasks (instance method)">- (Object) <strong>tasks</strong> </a>
149
-
150
-
151
-
152
- </span>
153
-
154
-
155
- <span class="note title readonly">readonly</span>
156
-
157
-
158
-
159
-
160
-
161
-
162
-
163
-
164
- <span class="summary_desc"><div class='inline'>
165
- <p>Returns the value of attribute tasks.</p>
166
- </div></span>
167
-
168
- </li>
169
-
170
-
171
- </ul>
172
-
173
-
174
-
175
-
176
-
177
- <h2>
178
- Class Method Summary
179
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
180
- </h2>
181
-
182
- <ul class="summary">
183
-
184
- <li class="public ">
185
- <span class="summary_signature">
186
-
187
- <a href="#default_namespace-class_method" title="default_namespace (class method)">+ (Object) <strong>default_namespace</strong>(name) </a>
188
-
189
-
190
-
191
- </span>
192
-
193
-
194
-
195
-
196
-
197
-
198
-
199
-
200
- <span class="summary_desc"><div class='inline'></div></span>
201
-
202
- </li>
203
-
204
-
205
- </ul>
206
-
207
- <h2>
208
- Instance Method Summary
209
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
210
- </h2>
211
-
212
- <ul class="summary">
213
-
214
- <li class="public ">
215
- <span class="summary_signature">
216
-
217
- <a href="#%5B%5D-instance_method" title="#[] (instance method)">- (Object) <strong>[]</strong>(taskname) </a>
218
-
219
-
220
-
221
- </span>
222
-
223
-
224
-
225
-
226
-
227
-
228
-
229
-
230
- <span class="summary_desc"><div class='inline'></div></span>
231
-
232
- </li>
233
-
234
-
235
- <li class="public ">
236
- <span class="summary_signature">
237
-
238
- <a href="#default_namespace-instance_method" title="#default_namespace (instance method)">- (Object) <strong>default_namespace</strong> </a>
239
-
240
-
241
-
242
- </span>
243
-
244
-
245
-
246
-
247
-
248
-
249
-
250
-
251
- <span class="summary_desc"><div class='inline'></div></span>
252
-
253
- </li>
254
-
255
-
256
- <li class="public ">
257
- <span class="summary_signature">
258
-
259
- <a href="#in_namespace-instance_method" title="#in_namespace (instance method)">- (Object) <strong>in_namespace</strong>(*tasknames) </a>
260
-
261
-
262
-
263
- </span>
264
-
265
-
266
-
267
-
268
-
269
-
270
-
271
-
272
- <span class="summary_desc"><div class='inline'></div></span>
273
-
274
- </li>
275
-
276
-
277
- <li class="public ">
278
- <span class="summary_signature">
279
-
280
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (TaskLib) <strong>initialize</strong>(*toolkits) </a>
281
-
282
-
283
-
284
- </span>
285
-
286
- <span class="note title constructor">constructor</span>
287
-
288
-
289
-
290
-
291
-
292
-
293
-
294
-
295
- <span class="summary_desc"><div class='inline'>
296
- <p>A new instance of TaskLib.</p>
297
- </div></span>
298
-
299
- </li>
300
-
301
-
302
- <li class="public ">
303
- <span class="summary_signature">
304
-
305
- <a href="#root_task-instance_method" title="#root_task (instance method)">- (Object) <strong>root_task</strong> </a>
306
-
307
-
308
-
309
- </span>
310
-
311
-
312
-
313
-
314
-
315
-
316
-
317
-
318
- <span class="summary_desc"><div class='inline'></div></span>
319
-
320
- </li>
321
-
322
-
323
- <li class="public ">
324
- <span class="summary_signature">
325
-
326
- <a href="#task-instance_method" title="#task (instance method)">- (Object) <strong>task</strong>(*args) </a>
327
-
328
-
329
-
330
- </span>
331
-
332
-
333
-
334
-
335
-
336
-
337
-
338
-
339
- <span class="summary_desc"><div class='inline'></div></span>
340
-
341
- </li>
342
-
343
-
344
- </ul>
345
-
346
-
347
-
348
-
349
-
350
-
351
-
352
-
353
-
354
-
355
- <h3 class="inherited">Methods included from <span class='object_link'><a href="CascadingDefinition.html" title="Mattock::CascadingDefinition (module)">CascadingDefinition</a></span></h3>
356
- <p class="inherited"><span class='object_link'><a href="CascadingDefinition.html#confirm_configuration-instance_method" title="Mattock::CascadingDefinition#confirm_configuration (method)">#confirm_configuration</a></span>, <span class='object_link'><a href="CascadingDefinition.html#default_configuration-instance_method" title="Mattock::CascadingDefinition#default_configuration (method)">#default_configuration</a></span>, <span class='object_link'><a href="CascadingDefinition.html#define-instance_method" title="Mattock::CascadingDefinition#define (method)">#define</a></span>, <span class='object_link'><a href="CascadingDefinition.html#resolve_configuration-instance_method" title="Mattock::CascadingDefinition#resolve_configuration (method)">#resolve_configuration</a></span></p>
357
-
358
-
359
-
360
-
361
-
362
-
363
-
364
-
365
- <h3 class="inherited">Methods included from <span class='object_link'><a href="Configurable.html" title="Mattock::Configurable (module)">Configurable</a></span></h3>
366
- <p class="inherited"><span class='object_link'><a href="Configurable.html#check_required-instance_method" title="Mattock::Configurable#check_required (method)">#check_required</a></span>, <span class='object_link'><a href="Configurable.html#copy_settings_to-instance_method" title="Mattock::Configurable#copy_settings_to (method)">#copy_settings_to</a></span>, <span class='object_link'><a href="Configurable.html#nil_fields-instance_method" title="Mattock::Configurable#nil_fields (method)">#nil_fields</a></span>, <span class='object_link'><a href="Configurable.html#required_fields-instance_method" title="Mattock::Configurable#required_fields (method)">#required_fields</a></span>, <span class='object_link'><a href="Configurable.html#setting-instance_method" title="Mattock::Configurable#setting (method)">#setting</a></span>, <span class='object_link'><a href="Configurable.html#settings-instance_method" title="Mattock::Configurable#settings (method)">#settings</a></span>, <span class='object_link'><a href="Configurable.html#setup_defaults-instance_method" title="Mattock::Configurable#setup_defaults (method)">#setup_defaults</a></span>, <span class='object_link'><a href="Configurable.html#unset%3F-instance_method" title="Mattock::Configurable#unset? (method)">#unset?</a></span></p>
367
-
368
-
369
-
370
-
371
-
372
-
373
-
374
-
375
- <h3 class="inherited">Methods included from <span class='object_link'><a href="Configurable/ClassMethods.html" title="Mattock::Configurable::ClassMethods (module)">Configurable::ClassMethods</a></span></h3>
376
- <p class="inherited"><span class='object_link'><a href="Configurable/ClassMethods.html#copy_settings-instance_method" title="Mattock::Configurable::ClassMethods#copy_settings (method)">#copy_settings</a></span>, <span class='object_link'><a href="Configurable/ClassMethods.html#default_values-instance_method" title="Mattock::Configurable::ClassMethods#default_values (method)">#default_values</a></span>, <span class='object_link'><a href="Configurable/ClassMethods.html#included-instance_method" title="Mattock::Configurable::ClassMethods#included (method)">#included</a></span>, <span class='object_link'><a href="Configurable/ClassMethods.html#missing_required_fields_on-instance_method" title="Mattock::Configurable::ClassMethods#missing_required_fields_on (method)">#missing_required_fields_on</a></span>, <span class='object_link'><a href="Configurable/ClassMethods.html#nested-instance_method" title="Mattock::Configurable::ClassMethods#nested (method)">#nested</a></span>, <span class='object_link'><a href="Configurable/ClassMethods.html#nil_fields-instance_method" title="Mattock::Configurable::ClassMethods#nil_fields (method)">#nil_fields</a></span>, <span class='object_link'><a href="Configurable/ClassMethods.html#required_fields-instance_method" title="Mattock::Configurable::ClassMethods#required_fields (method)">#required_fields</a></span>, <span class='object_link'><a href="Configurable/ClassMethods.html#set_defaults_on-instance_method" title="Mattock::Configurable::ClassMethods#set_defaults_on (method)">#set_defaults_on</a></span>, <span class='object_link'><a href="Configurable/ClassMethods.html#setting-instance_method" title="Mattock::Configurable::ClassMethods#setting (method)">#setting</a></span>, <span class='object_link'><a href="Configurable/ClassMethods.html#settings-instance_method" title="Mattock::Configurable::ClassMethods#settings (method)">#settings</a></span></p>
377
-
378
- <div id="constructor_details" class="method_details_list">
379
- <h2>Constructor Details</h2>
380
-
381
- <div class="method_details first">
382
- <p class="signature first" id="initialize-instance_method">
383
-
384
- - (<tt><span class='object_link'><a href="" title="Mattock::TaskLib (class)">TaskLib</a></span></tt>) <strong>initialize</strong>(*toolkits)
385
-
386
-
387
-
388
- </p><div class="docstring">
389
- <div class="discussion">
390
-
391
- <p>A new instance of TaskLib</p>
392
-
393
-
394
- </div>
395
- </div>
396
- <div class="tags">
397
-
398
-
399
- </div><table class="source_code">
400
- <tr>
401
- <td>
402
- <pre class="lines">
403
-
404
-
405
- 15
406
- 16
407
- 17
408
- 18</pre>
409
- </td>
410
- <td>
411
- <pre class="code"><span class="info file"># File 'lib/mattock/tasklib.rb', line 15</span>
412
-
413
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_toolkits'>toolkits</span><span class='rparen'>)</span>
414
- <span class='ivar'>@tasks</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
415
- <span class='kw'>super</span>
416
- <span class='kw'>end</span></pre>
417
- </td>
418
- </tr>
419
- </table>
420
- </div>
421
-
422
- </div>
423
-
424
- <div id="instance_attr_details" class="attr_details">
425
- <h2>Instance Attribute Details</h2>
426
-
427
-
428
- <span id="namespace_name=-instance_method"></span>
429
- <span id=""></span>
430
- <div class="method_details first">
431
- <p class="signature first" id="namespace_name=-instance_method">
432
-
433
- - (<tt>Object</tt>) <strong>namespace_name=</strong>(value) <span class="extras">(writeonly)</span>
434
-
435
-
436
-
437
- </p><div class="docstring">
438
- <div class="discussion">
439
-
440
- <p>Sets the attribute namespace_name</p>
441
-
442
-
443
- </div>
444
- </div>
445
- <div class="tags">
446
- <h3>Parameters:</h3>
447
- <ul class="param">
448
-
449
- <li>
450
-
451
- <span class='name'>value</span>
452
-
453
-
454
- <span class='type'></span>
455
-
456
-
457
-
458
- &mdash;
459
- <div class='inline'>
460
- <p>the value to set the attribute namespace_name to.</p>
461
- </div>
462
-
463
- </li>
464
-
465
- </ul>
466
-
467
-
468
- </div><table class="source_code">
469
- <tr>
470
- <td>
471
- <pre class="lines">
472
-
473
-
474
- 8
475
- 9
476
- 10</pre>
477
- </td>
478
- <td>
479
- <pre class="code"><span class="info file"># File 'lib/mattock/tasklib.rb', line 8</span>
480
-
481
- <span class='kw'>def</span> <span class='id identifier rubyid_namespace_name='>namespace_name=</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
482
- <span class='ivar'>@namespace_name</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span>
483
- <span class='kw'>end</span></pre>
484
- </td>
485
- </tr>
486
- </table>
487
- </div>
488
-
489
-
490
- <span id=""></span>
491
- <span id="tasks-instance_method"></span>
492
- <div class="method_details ">
493
- <p class="signature " id="tasks-instance_method">
494
-
495
- - (<tt>Object</tt>) <strong>tasks</strong> <span class="extras">(readonly)</span>
496
-
497
-
498
-
499
- </p><div class="docstring">
500
- <div class="discussion">
501
-
502
- <p>Returns the value of attribute tasks</p>
503
-
504
-
505
- </div>
506
- </div>
507
- <div class="tags">
508
-
509
-
510
- </div><table class="source_code">
511
- <tr>
512
- <td>
513
- <pre class="lines">
514
-
515
-
516
- 13
517
- 14
518
- 15</pre>
519
- </td>
520
- <td>
521
- <pre class="code"><span class="info file"># File 'lib/mattock/tasklib.rb', line 13</span>
522
-
523
- <span class='kw'>def</span> <span class='id identifier rubyid_tasks'>tasks</span>
524
- <span class='ivar'>@tasks</span>
525
- <span class='kw'>end</span></pre>
526
- </td>
527
- </tr>
528
- </table>
529
- </div>
530
-
531
- </div>
532
-
533
-
534
- <div id="class_method_details" class="method_details_list">
535
- <h2>Class Method Details</h2>
536
-
537
-
538
- <div class="method_details first">
539
- <p class="signature first" id="default_namespace-class_method">
540
-
541
- + (<tt>Object</tt>) <strong>default_namespace</strong>(name)
542
-
543
-
544
-
545
- </p><table class="source_code">
546
- <tr>
547
- <td>
548
- <pre class="lines">
549
-
550
-
551
- 9
552
- 10
553
- 11</pre>
554
- </td>
555
- <td>
556
- <pre class="code"><span class="info file"># File 'lib/mattock/tasklib.rb', line 9</span>
557
-
558
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_default_namespace'>default_namespace</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
559
- <span class='id identifier rubyid_setting'>setting</span><span class='lparen'>(</span><span class='symbol'>:namespace_name</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
560
- <span class='kw'>end</span></pre>
561
- </td>
562
- </tr>
563
- </table>
564
- </div>
565
-
566
- </div>
567
-
568
- <div id="instance_method_details" class="method_details_list">
569
- <h2>Instance Method Details</h2>
570
-
571
-
572
- <div class="method_details first">
573
- <p class="signature first" id="[]-instance_method">
574
-
575
- - (<tt>Object</tt>) <strong>[]</strong>(taskname)
576
-
577
-
578
-
579
- </p><table class="source_code">
580
- <tr>
581
- <td>
582
- <pre class="lines">
583
-
584
-
585
- 52
586
- 53
587
- 54</pre>
588
- </td>
589
- <td>
590
- <pre class="code"><span class="info file"># File 'lib/mattock/tasklib.rb', line 52</span>
591
-
592
- <span class='kw'>def</span> <span class='op'>[]</span><span class='lparen'>(</span><span class='id identifier rubyid_taskname'>taskname</span><span class='rparen'>)</span>
593
- <span class='id identifier rubyid_in_namespace'>in_namespace</span><span class='lparen'>(</span><span class='id identifier rubyid_taskname'>taskname</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span>
594
- <span class='kw'>end</span></pre>
595
- </td>
596
- </tr>
597
- </table>
598
- </div>
599
-
600
- <div class="method_details ">
601
- <p class="signature " id="default_namespace-instance_method">
602
-
603
- - (<tt>Object</tt>) <strong>default_namespace</strong>
604
-
605
-
606
-
607
- </p><table class="source_code">
608
- <tr>
609
- <td>
610
- <pre class="lines">
611
-
612
-
613
- 48
614
- 49
615
- 50</pre>
616
- </td>
617
- <td>
618
- <pre class="code"><span class="info file"># File 'lib/mattock/tasklib.rb', line 48</span>
619
-
620
- <span class='kw'>def</span> <span class='id identifier rubyid_default_namespace'>default_namespace</span>
621
- <span class='kw'>nil</span>
622
- <span class='kw'>end</span></pre>
623
- </td>
624
- </tr>
625
- </table>
626
- </div>
627
-
628
- <div class="method_details ">
629
- <p class="signature " id="in_namespace-instance_method">
630
-
631
- - (<tt>Object</tt>) <strong>in_namespace</strong>(*tasknames)
632
-
633
-
634
-
635
- </p><table class="source_code">
636
- <tr>
637
- <td>
638
- <pre class="lines">
639
-
640
-
641
- 26
642
- 27
643
- 28
644
- 29
645
- 30
646
- 31
647
- 32
648
- 33
649
- 34
650
- 35
651
- 36
652
- 37
653
- 38
654
- 39
655
- 40
656
- 41
657
- 42</pre>
658
- </td>
659
- <td>
660
- <pre class="code"><span class="info file"># File 'lib/mattock/tasklib.rb', line 26</span>
661
-
662
- <span class='kw'>def</span> <span class='id identifier rubyid_in_namespace'>in_namespace</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_tasknames'>tasknames</span><span class='rparen'>)</span>
663
- <span class='kw'>if</span> <span class='id identifier rubyid_tasknames'>tasknames</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
664
- <span class='kw'>if</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
665
- <span class='kw'>if</span> <span class='ivar'>@namespace_name</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
666
- <span class='kw'>yield</span>
667
- <span class='kw'>else</span>
668
- <span class='id identifier rubyid_namespace'>namespace</span> <span class='ivar'>@namespace_name</span> <span class='kw'>do</span>
669
- <span class='kw'>yield</span>
670
- <span class='kw'>end</span>
671
- <span class='kw'>end</span>
672
- <span class='kw'>end</span>
673
- <span class='kw'>else</span>
674
- <span class='id identifier rubyid_tasknames'>tasknames</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_taskname'>taskname</span><span class='op'>|</span>
675
- <span class='lbracket'>[</span><span class='ivar'>@namespace_name</span><span class='comma'>,</span> <span class='id identifier rubyid_taskname'>taskname</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_compact'>compact</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>:</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
676
- <span class='kw'>end</span>
677
- <span class='kw'>end</span>
678
- <span class='kw'>end</span></pre>
679
- </td>
680
- </tr>
681
- </table>
682
- </div>
683
-
684
- <div class="method_details ">
685
- <p class="signature " id="root_task-instance_method">
686
-
687
- - (<tt>Object</tt>) <strong>root_task</strong>
688
-
689
-
690
-
691
- </p><table class="source_code">
692
- <tr>
693
- <td>
694
- <pre class="lines">
695
-
696
-
697
- 44
698
- 45
699
- 46</pre>
700
- </td>
701
- <td>
702
- <pre class="code"><span class="info file"># File 'lib/mattock/tasklib.rb', line 44</span>
703
-
704
- <span class='kw'>def</span> <span class='id identifier rubyid_root_task'>root_task</span>
705
- <span class='ivar'>@namespace_name</span> <span class='op'>||</span> <span class='symbol'>:default</span>
706
- <span class='kw'>end</span></pre>
707
- </td>
708
- </tr>
709
- </table>
710
- </div>
711
-
712
- <div class="method_details ">
713
- <p class="signature " id="task-instance_method">
714
-
715
- - (<tt>Object</tt>) <strong>task</strong>(*args)
716
-
717
-
718
-
719
- </p><table class="source_code">
720
- <tr>
721
- <td>
722
- <pre class="lines">
723
-
724
-
725
- 20
726
- 21
727
- 22
728
- 23
729
- 24</pre>
730
- </td>
731
- <td>
732
- <pre class="code"><span class="info file"># File 'lib/mattock/tasklib.rb', line 20</span>
733
-
734
- <span class='kw'>def</span> <span class='id identifier rubyid_task'>task</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
735
- <span class='id identifier rubyid_a_task'>a_task</span> <span class='op'>=</span> <span class='kw'>super</span>
736
- <span class='ivar'>@tasks</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_a_task'>a_task</span>
737
- <span class='kw'>return</span> <span class='id identifier rubyid_a_task'>a_task</span>
738
- <span class='kw'>end</span></pre>
739
- </td>
740
- </tr>
741
- </table>
742
- </div>
743
-
744
- </div>
745
-
746
- </div>
747
-
748
- <div id="footer">
749
- Generated on Tue Mar 6 02:47:28 2012 by
750
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
751
- 0.7.5 (ruby-1.9.2).
752
- </div>
753
-
754
- </body>
755
- </html>