rubu 0.0.1 → 0.0.2
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.
- checksums.yaml +4 -4
- data/CHANGELOG.rdoc +3 -0
- data/README.rdoc +236 -8
- data/doc/Array.html +103 -38
- data/doc/Rubu.html +2 -2
- data/doc/Rubu/AgedStep.html +275 -0
- data/doc/Rubu/AlwaysStep.html +275 -0
- data/doc/Rubu/Fork.html +20 -20
- data/doc/Rubu/Info.html +39 -13
- data/doc/Rubu/Mark.html +318 -110
- data/doc/Rubu/MarkStep.html +275 -0
- data/doc/Rubu/Move.html +937 -0
- data/doc/Rubu/MoveStyles.html +403 -0
- data/doc/Rubu/Order.html +39 -13
- data/doc/Rubu/RubyCommand.html +39 -26
- data/doc/Rubu/ShellCommand.html +37 -24
- data/doc/Rubu/State.html +135 -38
- data/doc/Rubu/Step.html +1859 -0
- data/doc/Rubu/StepAged.html +279 -0
- data/doc/Rubu/StepAlways.html +279 -0
- data/doc/Rubu/StepMark.html +279 -0
- data/doc/Rubu/Trail.html +1022 -0
- data/doc/Rubu/TrailRun.html +377 -0
- data/doc/Rubu/Var.html +39 -13
- data/doc/Rubu/Walk.html +16 -16
- data/doc/_index.html +51 -59
- data/doc/class_list.html +1 -1
- data/doc/file.CHANGELOG.html +5 -2
- data/doc/file.README.html +255 -8
- data/doc/index.html +255 -8
- data/doc/method_list.html +88 -88
- data/doc/top-level-namespace.html +1 -1
- data/example/bin/rubu_example +49 -51
- data/example/build/hello +0 -0
- data/example/build/hello_world.o +0 -0
- data/example/build/world.c +6 -0
- data/example/build/world.o +0 -0
- data/lib/rubu.rb +168 -85
- data/lib/version.rb +1 -1
- metadata +17 -2
data/doc/Rubu/Step.html
ADDED
@@ -0,0 +1,1859 @@
|
|
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: Rubu::Step
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.7.6
|
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#!Rubu/Step.html";
|
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 (S)</a> »
|
35
|
+
<span class='title'><span class='object_link'><a href="../Rubu.html" title="Rubu (module)">Rubu</a></span></span>
|
36
|
+
»
|
37
|
+
<span class="title">Step</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: Rubu::Step
|
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"><span class='object_link'><a href="Move.html" title="Rubu::Move (class)">Move</a></span></span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next"><span class='object_link'><a href="Move.html" title="Rubu::Move (class)">Move</a></span></li>
|
82
|
+
|
83
|
+
<li class="next">Rubu::Step</li>
|
84
|
+
|
85
|
+
</ul>
|
86
|
+
<a href="#" class="inheritanceTree">show all</a>
|
87
|
+
|
88
|
+
</dd>
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
<dt class="r2">Includes:</dt>
|
96
|
+
<dd class="r2"><span class='object_link'><a href="MoveStyles.html" title="Rubu::MoveStyles (module)">MoveStyles</a></span></dd>
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
<dt class="r1 last">Defined in:</dt>
|
103
|
+
<dd class="r1 last">lib/rubu.rb</dd>
|
104
|
+
|
105
|
+
</dl>
|
106
|
+
<div class="clear"></div>
|
107
|
+
|
108
|
+
<h2>Overview</h2><div class="docstring">
|
109
|
+
<div class="discussion">
|
110
|
+
|
111
|
+
<p>Step in Trail. Step takes one or more sources, and turns them into one or
|
112
|
+
more targets.</p>
|
113
|
+
|
114
|
+
|
115
|
+
</div>
|
116
|
+
</div>
|
117
|
+
<div class="tags">
|
118
|
+
|
119
|
+
|
120
|
+
</div><div id="subclasses">
|
121
|
+
<h2>Direct Known Subclasses</h2>
|
122
|
+
<p class="children"><span class='object_link'><a href="StepAged.html" title="Rubu::StepAged (class)">StepAged</a></span>, <span class='object_link'><a href="StepAlways.html" title="Rubu::StepAlways (class)">StepAlways</a></span>, <span class='object_link'><a href="StepMark.html" title="Rubu::StepMark (class)">StepMark</a></span></p>
|
123
|
+
</div>
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
129
|
+
<ul class="summary">
|
130
|
+
|
131
|
+
<li class="public ">
|
132
|
+
<span class="summary_signature">
|
133
|
+
|
134
|
+
<a href="#sources-instance_method" title="#sources (instance method)">- (Object) <strong>sources</strong> </a>
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
</span>
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
<span class="note title readonly">readonly</span>
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
<span class="summary_desc"><div class='inline'>
|
154
|
+
<p>Returns the value of attribute sources.</p>
|
155
|
+
</div></span>
|
156
|
+
|
157
|
+
</li>
|
158
|
+
|
159
|
+
|
160
|
+
<li class="public ">
|
161
|
+
<span class="summary_signature">
|
162
|
+
|
163
|
+
<a href="#targets-instance_method" title="#targets (instance method)">- (Object) <strong>targets</strong> </a>
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
</span>
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
<span class="note title readonly">readonly</span>
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
<span class="summary_desc"><div class='inline'>
|
183
|
+
<p>Returns the value of attribute targets.</p>
|
184
|
+
</div></span>
|
185
|
+
|
186
|
+
</li>
|
187
|
+
|
188
|
+
|
189
|
+
</ul>
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Move.html" title="Rubu::Move (class)">Move</a></span></h3>
|
196
|
+
<p class="inherited"><span class='object_link'><a href="Move.html#errmsg-instance_method" title="Rubu::Move#errmsg (method)">#errmsg</a></span>, <span class='object_link'><a href="Move.html#output-instance_method" title="Rubu::Move#output (method)">#output</a></span>, <span class='object_link'><a href="Move.html#status-instance_method" title="Rubu::Move#status (method)">#status</a></span>, <span class='object_link'><a href="Move.html#subs-instance_method" title="Rubu::Move#subs (method)">#subs</a></span></p>
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
<h2>
|
201
|
+
Class Method Summary
|
202
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
203
|
+
</h2>
|
204
|
+
|
205
|
+
<ul class="summary">
|
206
|
+
|
207
|
+
<li class="public ">
|
208
|
+
<span class="summary_signature">
|
209
|
+
|
210
|
+
<a href="#use-class_method" title="use (class method)">+ (Object) <strong>use</strong>(sources = [], targets = []) </a>
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
</span>
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
<span class="summary_desc"><div class='inline'>
|
225
|
+
<p>Create Move and register.</p>
|
226
|
+
</div></span>
|
227
|
+
|
228
|
+
</li>
|
229
|
+
|
230
|
+
|
231
|
+
<li class="public ">
|
232
|
+
<span class="summary_signature">
|
233
|
+
|
234
|
+
<a href="#usezip-class_method" title="usezip (class method)">+ (Object) <strong>usezip</strong>(sources, targets) </a>
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
</span>
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
<span class="summary_desc"><div class='inline'>
|
249
|
+
<p>Combine list of sources and targets to source/target pairs and register.</p>
|
250
|
+
</div></span>
|
251
|
+
|
252
|
+
</li>
|
253
|
+
|
254
|
+
|
255
|
+
<li class="public ">
|
256
|
+
<span class="summary_signature">
|
257
|
+
|
258
|
+
<a href="#zip-class_method" title="zip (class method)">+ (Object) <strong>zip</strong>(sources, targets) </a>
|
259
|
+
|
260
|
+
|
261
|
+
|
262
|
+
</span>
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
<span class="summary_desc"><div class='inline'>
|
273
|
+
<p>Combine list of sources and targets to source/target pairs.</p>
|
274
|
+
</div></span>
|
275
|
+
|
276
|
+
</li>
|
277
|
+
|
278
|
+
|
279
|
+
</ul>
|
280
|
+
|
281
|
+
<h2>
|
282
|
+
Instance Method Summary
|
283
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
284
|
+
</h2>
|
285
|
+
|
286
|
+
<ul class="summary">
|
287
|
+
|
288
|
+
<li class="public ">
|
289
|
+
<span class="summary_signature">
|
290
|
+
|
291
|
+
<a href="#date_update%3F-instance_method" title="#date_update? (instance method)">- (Boolean) <strong>date_update?</strong> </a>
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
</span>
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
<span class="summary_desc"><div class='inline'>
|
306
|
+
<p>Check for date (timestamp) based update needs.</p>
|
307
|
+
</div></span>
|
308
|
+
|
309
|
+
</li>
|
310
|
+
|
311
|
+
|
312
|
+
<li class="public ">
|
313
|
+
<span class="summary_signature">
|
314
|
+
|
315
|
+
<a href="#fork-instance_method" title="#fork (instance method)">- (Object) <strong>fork</strong>(&blk) </a>
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
</span>
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
<span class="summary_desc"><div class='inline'>
|
330
|
+
<p>Execute commands (from block) in parallel.</p>
|
331
|
+
</div></span>
|
332
|
+
|
333
|
+
</li>
|
334
|
+
|
335
|
+
|
336
|
+
<li class="public ">
|
337
|
+
<span class="summary_signature">
|
338
|
+
|
339
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Step) <strong>initialize</strong>(sources = [], targets = []) </a>
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
</span>
|
344
|
+
|
345
|
+
|
346
|
+
<span class="note title constructor">constructor</span>
|
347
|
+
|
348
|
+
|
349
|
+
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
|
354
|
+
|
355
|
+
<span class="summary_desc"><div class='inline'>
|
356
|
+
<p>Create Step object.</p>
|
357
|
+
</div></span>
|
358
|
+
|
359
|
+
</li>
|
360
|
+
|
361
|
+
|
362
|
+
<li class="public ">
|
363
|
+
<span class="summary_signature">
|
364
|
+
|
365
|
+
<a href="#mark_update%3F-instance_method" title="#mark_update? (instance method)">- (Boolean) <strong>mark_update?</strong> </a>
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
</span>
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
|
374
|
+
|
375
|
+
|
376
|
+
|
377
|
+
|
378
|
+
|
379
|
+
<span class="summary_desc"><div class='inline'>
|
380
|
+
<p>Check for mark (checksum) based update needs.</p>
|
381
|
+
</div></span>
|
382
|
+
|
383
|
+
</li>
|
384
|
+
|
385
|
+
|
386
|
+
<li class="public ">
|
387
|
+
<span class="summary_signature">
|
388
|
+
|
389
|
+
<a href="#rbrun-instance_method" title="#rbrun (instance method)">- (Object) <strong>rbrun</strong>(desc = nil, &cmd) </a>
|
390
|
+
|
391
|
+
|
392
|
+
|
393
|
+
</span>
|
394
|
+
|
395
|
+
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
|
400
|
+
|
401
|
+
|
402
|
+
|
403
|
+
<span class="summary_desc"><div class='inline'>
|
404
|
+
<p>Define and run Ruby command.</p>
|
405
|
+
</div></span>
|
406
|
+
|
407
|
+
</li>
|
408
|
+
|
409
|
+
|
410
|
+
<li class="public ">
|
411
|
+
<span class="summary_signature">
|
412
|
+
|
413
|
+
<a href="#rbuse-instance_method" title="#rbuse (instance method)">- (Object) <strong>rbuse</strong>(desc = nil, &cmd) </a>
|
414
|
+
|
415
|
+
|
416
|
+
|
417
|
+
</span>
|
418
|
+
|
419
|
+
|
420
|
+
|
421
|
+
|
422
|
+
|
423
|
+
|
424
|
+
|
425
|
+
|
426
|
+
|
427
|
+
<span class="summary_desc"><div class='inline'>
|
428
|
+
<p>Define and register Ruby command.</p>
|
429
|
+
</div></span>
|
430
|
+
|
431
|
+
</li>
|
432
|
+
|
433
|
+
|
434
|
+
<li class="public ">
|
435
|
+
<span class="summary_signature">
|
436
|
+
|
437
|
+
<a href="#run-instance_method" title="#run (instance method)">- (Object) <strong>run</strong> </a>
|
438
|
+
|
439
|
+
|
440
|
+
|
441
|
+
</span>
|
442
|
+
|
443
|
+
|
444
|
+
|
445
|
+
|
446
|
+
|
447
|
+
|
448
|
+
|
449
|
+
|
450
|
+
|
451
|
+
<span class="summary_desc"><div class='inline'>
|
452
|
+
<p>Run Step and capture status.</p>
|
453
|
+
</div></span>
|
454
|
+
|
455
|
+
</li>
|
456
|
+
|
457
|
+
|
458
|
+
<li class="public ">
|
459
|
+
<span class="summary_signature">
|
460
|
+
|
461
|
+
<a href="#setup-instance_method" title="#setup (instance method)">- (Object) <strong>setup</strong> </a>
|
462
|
+
|
463
|
+
|
464
|
+
|
465
|
+
</span>
|
466
|
+
|
467
|
+
|
468
|
+
|
469
|
+
|
470
|
+
|
471
|
+
|
472
|
+
|
473
|
+
|
474
|
+
|
475
|
+
<span class="summary_desc"><div class='inline'>
|
476
|
+
<p>Setup variables for Step.</p>
|
477
|
+
</div></span>
|
478
|
+
|
479
|
+
</li>
|
480
|
+
|
481
|
+
|
482
|
+
<li class="public ">
|
483
|
+
<span class="summary_signature">
|
484
|
+
|
485
|
+
<a href="#shrun-instance_method" title="#shrun (instance method)">- (Object) <strong>shrun</strong>(cmd) </a>
|
486
|
+
|
487
|
+
|
488
|
+
|
489
|
+
</span>
|
490
|
+
|
491
|
+
|
492
|
+
|
493
|
+
|
494
|
+
|
495
|
+
|
496
|
+
|
497
|
+
|
498
|
+
|
499
|
+
<span class="summary_desc"><div class='inline'>
|
500
|
+
<p>Define and run Shell command.</p>
|
501
|
+
</div></span>
|
502
|
+
|
503
|
+
</li>
|
504
|
+
|
505
|
+
|
506
|
+
<li class="public ">
|
507
|
+
<span class="summary_signature">
|
508
|
+
|
509
|
+
<a href="#shuse-instance_method" title="#shuse (instance method)">- (Object) <strong>shuse</strong>(cmd) </a>
|
510
|
+
|
511
|
+
|
512
|
+
|
513
|
+
</span>
|
514
|
+
|
515
|
+
|
516
|
+
|
517
|
+
|
518
|
+
|
519
|
+
|
520
|
+
|
521
|
+
|
522
|
+
|
523
|
+
<span class="summary_desc"><div class='inline'>
|
524
|
+
<p>Define and register Shell command.</p>
|
525
|
+
</div></span>
|
526
|
+
|
527
|
+
</li>
|
528
|
+
|
529
|
+
|
530
|
+
<li class="public ">
|
531
|
+
<span class="summary_signature">
|
532
|
+
|
533
|
+
<a href="#source-instance_method" title="#source (instance method)">- (Object) <strong>source</strong> </a>
|
534
|
+
|
535
|
+
|
536
|
+
|
537
|
+
</span>
|
538
|
+
|
539
|
+
|
540
|
+
|
541
|
+
|
542
|
+
|
543
|
+
|
544
|
+
|
545
|
+
|
546
|
+
|
547
|
+
<span class="summary_desc"><div class='inline'>
|
548
|
+
<p>Main/only (first) source file.</p>
|
549
|
+
</div></span>
|
550
|
+
|
551
|
+
</li>
|
552
|
+
|
553
|
+
|
554
|
+
<li class="public ">
|
555
|
+
<span class="summary_signature">
|
556
|
+
|
557
|
+
<a href="#target-instance_method" title="#target (instance method)">- (Object) <strong>target</strong> </a>
|
558
|
+
|
559
|
+
|
560
|
+
|
561
|
+
</span>
|
562
|
+
|
563
|
+
|
564
|
+
|
565
|
+
|
566
|
+
|
567
|
+
|
568
|
+
|
569
|
+
|
570
|
+
|
571
|
+
<span class="summary_desc"><div class='inline'>
|
572
|
+
<p>Main/only (first) target file.</p>
|
573
|
+
</div></span>
|
574
|
+
|
575
|
+
</li>
|
576
|
+
|
577
|
+
|
578
|
+
<li class="public ">
|
579
|
+
<span class="summary_signature">
|
580
|
+
|
581
|
+
<a href="#update%3F-instance_method" title="#update? (instance method)">- (Boolean) <strong>update?</strong> </a>
|
582
|
+
|
583
|
+
|
584
|
+
|
585
|
+
</span>
|
586
|
+
|
587
|
+
|
588
|
+
|
589
|
+
|
590
|
+
|
591
|
+
|
592
|
+
|
593
|
+
|
594
|
+
|
595
|
+
<span class="summary_desc"><div class='inline'>
|
596
|
+
<p>Default update.</p>
|
597
|
+
</div></span>
|
598
|
+
|
599
|
+
</li>
|
600
|
+
|
601
|
+
|
602
|
+
<li class="public ">
|
603
|
+
<span class="summary_signature">
|
604
|
+
|
605
|
+
<a href="#walk-instance_method" title="#walk (instance method)">- (Object) <strong>walk</strong>(&blk) </a>
|
606
|
+
|
607
|
+
|
608
|
+
|
609
|
+
</span>
|
610
|
+
|
611
|
+
|
612
|
+
|
613
|
+
|
614
|
+
|
615
|
+
|
616
|
+
|
617
|
+
|
618
|
+
|
619
|
+
<span class="summary_desc"><div class='inline'>
|
620
|
+
<p>Execute commands (from block) in sequence.</p>
|
621
|
+
</div></span>
|
622
|
+
|
623
|
+
</li>
|
624
|
+
|
625
|
+
|
626
|
+
</ul>
|
627
|
+
|
628
|
+
|
629
|
+
|
630
|
+
|
631
|
+
|
632
|
+
|
633
|
+
|
634
|
+
|
635
|
+
|
636
|
+
|
637
|
+
|
638
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="MoveStyles.html" title="Rubu::MoveStyles (module)">MoveStyles</a></span></h3>
|
639
|
+
<p class="inherited"><span class='object_link'><a href="MoveStyles.html#parallel_run-instance_method" title="Rubu::MoveStyles#parallel_run (method)">#parallel_run</a></span>, <span class='object_link'><a href="MoveStyles.html#serial_run-instance_method" title="Rubu::MoveStyles#serial_run (method)">#serial_run</a></span></p>
|
640
|
+
|
641
|
+
|
642
|
+
|
643
|
+
|
644
|
+
|
645
|
+
|
646
|
+
|
647
|
+
|
648
|
+
|
649
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Move.html" title="Rubu::Move (class)">Move</a></span></h3>
|
650
|
+
<p class="inherited"><span class='object_link'><a href="Move.html#display-instance_method" title="Rubu::Move#display (method)">#display</a></span>, <span class='object_link'><a href="Move.html#error-instance_method" title="Rubu::Move#error (method)">#error</a></span>, <span class='object_link'><a href="Move.html#host-instance_method" title="Rubu::Move#host (method)">#host</a></span>, <span class='object_link'><a href="Move.html#host_in-instance_method" title="Rubu::Move#host_in (method)">#host_in</a></span>, <span class='object_link'><a href="Move.html#host_out-instance_method" title="Rubu::Move#host_out (method)">#host_out</a></span>, <span class='object_link'><a href="Move.html#use-instance_method" title="Rubu::Move#use (method)">#use</a></span></p>
|
651
|
+
<div id="constructor_details" class="method_details_list">
|
652
|
+
<h2>Constructor Details</h2>
|
653
|
+
|
654
|
+
<div class="method_details first">
|
655
|
+
<h3 class="signature first" id="initialize-instance_method">
|
656
|
+
|
657
|
+
- (<tt><span class='object_link'><a href="" title="Rubu::Step (class)">Step</a></span></tt>) <strong>initialize</strong>(sources = [], targets = [])
|
658
|
+
|
659
|
+
|
660
|
+
|
661
|
+
|
662
|
+
|
663
|
+
</h3><div class="docstring">
|
664
|
+
<div class="discussion">
|
665
|
+
|
666
|
+
<p>Create Step object.</p>
|
667
|
+
|
668
|
+
|
669
|
+
</div>
|
670
|
+
</div>
|
671
|
+
<div class="tags">
|
672
|
+
<p class="tag_title">Parameters:</p>
|
673
|
+
<ul class="param">
|
674
|
+
|
675
|
+
<li>
|
676
|
+
|
677
|
+
<span class='name'>sources</span>
|
678
|
+
|
679
|
+
|
680
|
+
<span class='type'></span>
|
681
|
+
|
682
|
+
|
683
|
+
<em class="default">(defaults to: <tt>[]</tt>)</em>
|
684
|
+
|
685
|
+
|
686
|
+
—
|
687
|
+
<div class='inline'>
|
688
|
+
<p>One or more sources.</p>
|
689
|
+
</div>
|
690
|
+
|
691
|
+
</li>
|
692
|
+
|
693
|
+
<li>
|
694
|
+
|
695
|
+
<span class='name'>targets</span>
|
696
|
+
|
697
|
+
|
698
|
+
<span class='type'></span>
|
699
|
+
|
700
|
+
|
701
|
+
<em class="default">(defaults to: <tt>[]</tt>)</em>
|
702
|
+
|
703
|
+
|
704
|
+
—
|
705
|
+
<div class='inline'>
|
706
|
+
<p>One or more targets.</p>
|
707
|
+
</div>
|
708
|
+
|
709
|
+
</li>
|
710
|
+
|
711
|
+
</ul>
|
712
|
+
|
713
|
+
|
714
|
+
</div><table class="source_code">
|
715
|
+
<tr>
|
716
|
+
<td>
|
717
|
+
<pre class="lines">
|
718
|
+
|
719
|
+
|
720
|
+
500
|
721
|
+
501
|
722
|
+
502
|
723
|
+
503
|
724
|
+
504
|
725
|
+
505
|
726
|
+
506
|
727
|
+
507
|
728
|
+
508
|
729
|
+
509
|
730
|
+
510
|
731
|
+
511
|
732
|
+
512
|
733
|
+
513
|
734
|
+
514
|
735
|
+
515
|
736
|
+
516</pre>
|
737
|
+
</td>
|
738
|
+
<td>
|
739
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 500</span>
|
740
|
+
|
741
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span> <span class='id identifier rubyid_sources'>sources</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_targets'>targets</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span> <span class='rparen'>)</span>
|
742
|
+
<span class='kw'>super</span><span class='lparen'>(</span><span class='rparen'>)</span>
|
743
|
+
|
744
|
+
<span class='kw'>unless</span> <span class='id identifier rubyid_sources'>sources</span><span class='period'>.</span><span class='id identifier rubyid_kind_of?'>kind_of?</span> <span class='const'>Array</span>
|
745
|
+
<span class='ivar'>@sources</span> <span class='op'>=</span> <span class='lbracket'>[</span> <span class='id identifier rubyid_sources'>sources</span> <span class='rbracket'>]</span>
|
746
|
+
<span class='kw'>else</span>
|
747
|
+
<span class='ivar'>@sources</span> <span class='op'>=</span> <span class='id identifier rubyid_sources'>sources</span>
|
748
|
+
<span class='kw'>end</span>
|
749
|
+
|
750
|
+
<span class='kw'>unless</span> <span class='id identifier rubyid_targets'>targets</span><span class='period'>.</span><span class='id identifier rubyid_kind_of?'>kind_of?</span> <span class='const'>Array</span>
|
751
|
+
<span class='ivar'>@targets</span> <span class='op'>=</span> <span class='lbracket'>[</span> <span class='id identifier rubyid_targets'>targets</span> <span class='rbracket'>]</span>
|
752
|
+
<span class='kw'>else</span>
|
753
|
+
<span class='ivar'>@targets</span> <span class='op'>=</span> <span class='id identifier rubyid_targets'>targets</span>
|
754
|
+
<span class='kw'>end</span>
|
755
|
+
|
756
|
+
<span class='id identifier rubyid_setup'>setup</span>
|
757
|
+
<span class='kw'>end</span></pre>
|
758
|
+
</td>
|
759
|
+
</tr>
|
760
|
+
</table>
|
761
|
+
</div>
|
762
|
+
|
763
|
+
</div>
|
764
|
+
|
765
|
+
<div id="instance_attr_details" class="attr_details">
|
766
|
+
<h2>Instance Attribute Details</h2>
|
767
|
+
|
768
|
+
|
769
|
+
<span id=""></span>
|
770
|
+
<div class="method_details first">
|
771
|
+
<h3 class="signature first" id="sources-instance_method">
|
772
|
+
|
773
|
+
- (<tt>Object</tt>) <strong>sources</strong> <span class="extras">(readonly)</span>
|
774
|
+
|
775
|
+
|
776
|
+
|
777
|
+
|
778
|
+
|
779
|
+
</h3><div class="docstring">
|
780
|
+
<div class="discussion">
|
781
|
+
|
782
|
+
<p>Returns the value of attribute sources</p>
|
783
|
+
|
784
|
+
|
785
|
+
</div>
|
786
|
+
</div>
|
787
|
+
<div class="tags">
|
788
|
+
|
789
|
+
|
790
|
+
</div><table class="source_code">
|
791
|
+
<tr>
|
792
|
+
<td>
|
793
|
+
<pre class="lines">
|
794
|
+
|
795
|
+
|
796
|
+
493
|
797
|
+
494
|
798
|
+
495</pre>
|
799
|
+
</td>
|
800
|
+
<td>
|
801
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 493</span>
|
802
|
+
|
803
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_sources'>sources</span>
|
804
|
+
<span class='ivar'>@sources</span>
|
805
|
+
<span class='kw'>end</span></pre>
|
806
|
+
</td>
|
807
|
+
</tr>
|
808
|
+
</table>
|
809
|
+
</div>
|
810
|
+
|
811
|
+
|
812
|
+
<span id=""></span>
|
813
|
+
<div class="method_details ">
|
814
|
+
<h3 class="signature " id="targets-instance_method">
|
815
|
+
|
816
|
+
- (<tt>Object</tt>) <strong>targets</strong> <span class="extras">(readonly)</span>
|
817
|
+
|
818
|
+
|
819
|
+
|
820
|
+
|
821
|
+
|
822
|
+
</h3><div class="docstring">
|
823
|
+
<div class="discussion">
|
824
|
+
|
825
|
+
<p>Returns the value of attribute targets</p>
|
826
|
+
|
827
|
+
|
828
|
+
</div>
|
829
|
+
</div>
|
830
|
+
<div class="tags">
|
831
|
+
|
832
|
+
|
833
|
+
</div><table class="source_code">
|
834
|
+
<tr>
|
835
|
+
<td>
|
836
|
+
<pre class="lines">
|
837
|
+
|
838
|
+
|
839
|
+
494
|
840
|
+
495
|
841
|
+
496</pre>
|
842
|
+
</td>
|
843
|
+
<td>
|
844
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 494</span>
|
845
|
+
|
846
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_targets'>targets</span>
|
847
|
+
<span class='ivar'>@targets</span>
|
848
|
+
<span class='kw'>end</span></pre>
|
849
|
+
</td>
|
850
|
+
</tr>
|
851
|
+
</table>
|
852
|
+
</div>
|
853
|
+
|
854
|
+
</div>
|
855
|
+
|
856
|
+
|
857
|
+
<div id="class_method_details" class="method_details_list">
|
858
|
+
<h2>Class Method Details</h2>
|
859
|
+
|
860
|
+
|
861
|
+
<div class="method_details first">
|
862
|
+
<h3 class="signature first" id="use-class_method">
|
863
|
+
|
864
|
+
+ (<tt>Object</tt>) <strong>use</strong>(sources = [], targets = [])
|
865
|
+
|
866
|
+
|
867
|
+
|
868
|
+
|
869
|
+
|
870
|
+
</h3><div class="docstring">
|
871
|
+
<div class="discussion">
|
872
|
+
|
873
|
+
<p>Create Move and register.</p>
|
874
|
+
|
875
|
+
|
876
|
+
</div>
|
877
|
+
</div>
|
878
|
+
<div class="tags">
|
879
|
+
<p class="tag_title">Parameters:</p>
|
880
|
+
<ul class="param">
|
881
|
+
|
882
|
+
<li>
|
883
|
+
|
884
|
+
<span class='name'>sources</span>
|
885
|
+
|
886
|
+
|
887
|
+
<span class='type'></span>
|
888
|
+
|
889
|
+
|
890
|
+
<em class="default">(defaults to: <tt>[]</tt>)</em>
|
891
|
+
|
892
|
+
|
893
|
+
—
|
894
|
+
<div class='inline'>
|
895
|
+
<p>One or more sources.</p>
|
896
|
+
</div>
|
897
|
+
|
898
|
+
</li>
|
899
|
+
|
900
|
+
<li>
|
901
|
+
|
902
|
+
<span class='name'>targets</span>
|
903
|
+
|
904
|
+
|
905
|
+
<span class='type'></span>
|
906
|
+
|
907
|
+
|
908
|
+
<em class="default">(defaults to: <tt>[]</tt>)</em>
|
909
|
+
|
910
|
+
|
911
|
+
—
|
912
|
+
<div class='inline'>
|
913
|
+
<p>One or more targets.</p>
|
914
|
+
</div>
|
915
|
+
|
916
|
+
</li>
|
917
|
+
|
918
|
+
</ul>
|
919
|
+
|
920
|
+
|
921
|
+
</div><table class="source_code">
|
922
|
+
<tr>
|
923
|
+
<td>
|
924
|
+
<pre class="lines">
|
925
|
+
|
926
|
+
|
927
|
+
467
|
928
|
+
468
|
929
|
+
469</pre>
|
930
|
+
</td>
|
931
|
+
<td>
|
932
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 467</span>
|
933
|
+
|
934
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_use'>use</span><span class='lparen'>(</span> <span class='id identifier rubyid_sources'>sources</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_targets'>targets</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span> <span class='rparen'>)</span>
|
935
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span> <span class='id identifier rubyid_sources'>sources</span><span class='comma'>,</span> <span class='id identifier rubyid_targets'>targets</span> <span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_use'>use</span>
|
936
|
+
<span class='kw'>end</span></pre>
|
937
|
+
</td>
|
938
|
+
</tr>
|
939
|
+
</table>
|
940
|
+
</div>
|
941
|
+
|
942
|
+
<div class="method_details ">
|
943
|
+
<h3 class="signature " id="usezip-class_method">
|
944
|
+
|
945
|
+
+ (<tt>Object</tt>) <strong>usezip</strong>(sources, targets)
|
946
|
+
|
947
|
+
|
948
|
+
|
949
|
+
|
950
|
+
|
951
|
+
</h3><div class="docstring">
|
952
|
+
<div class="discussion">
|
953
|
+
|
954
|
+
<p>Combine list of sources and targets to source/target pairs and register.</p>
|
955
|
+
|
956
|
+
|
957
|
+
</div>
|
958
|
+
</div>
|
959
|
+
<div class="tags">
|
960
|
+
<p class="tag_title">Parameters:</p>
|
961
|
+
<ul class="param">
|
962
|
+
|
963
|
+
<li>
|
964
|
+
|
965
|
+
<span class='name'>sources</span>
|
966
|
+
|
967
|
+
|
968
|
+
<span class='type'></span>
|
969
|
+
|
970
|
+
|
971
|
+
|
972
|
+
—
|
973
|
+
<div class='inline'>
|
974
|
+
<p>List of sources.</p>
|
975
|
+
</div>
|
976
|
+
|
977
|
+
</li>
|
978
|
+
|
979
|
+
<li>
|
980
|
+
|
981
|
+
<span class='name'>targets</span>
|
982
|
+
|
983
|
+
|
984
|
+
<span class='type'></span>
|
985
|
+
|
986
|
+
|
987
|
+
|
988
|
+
—
|
989
|
+
<div class='inline'>
|
990
|
+
<p>List of targets.</p>
|
991
|
+
</div>
|
992
|
+
|
993
|
+
</li>
|
994
|
+
|
995
|
+
</ul>
|
996
|
+
|
997
|
+
|
998
|
+
</div><table class="source_code">
|
999
|
+
<tr>
|
1000
|
+
<td>
|
1001
|
+
<pre class="lines">
|
1002
|
+
|
1003
|
+
|
1004
|
+
486
|
1005
|
+
487
|
1006
|
+
488
|
1007
|
+
489
|
1008
|
+
490</pre>
|
1009
|
+
</td>
|
1010
|
+
<td>
|
1011
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 486</span>
|
1012
|
+
|
1013
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_usezip'>usezip</span><span class='lparen'>(</span> <span class='id identifier rubyid_sources'>sources</span><span class='comma'>,</span> <span class='id identifier rubyid_targets'>targets</span> <span class='rparen'>)</span>
|
1014
|
+
<span class='id identifier rubyid_sources'>sources</span><span class='period'>.</span><span class='id identifier rubyid_zip'>zip</span><span class='lparen'>(</span> <span class='id identifier rubyid_targets'>targets</span> <span class='rparen'>)</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_pair'>pair</span><span class='op'>|</span>
|
1015
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_pair'>pair</span> <span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_use'>use</span>
|
1016
|
+
<span class='kw'>end</span>
|
1017
|
+
<span class='kw'>end</span></pre>
|
1018
|
+
</td>
|
1019
|
+
</tr>
|
1020
|
+
</table>
|
1021
|
+
</div>
|
1022
|
+
|
1023
|
+
<div class="method_details ">
|
1024
|
+
<h3 class="signature " id="zip-class_method">
|
1025
|
+
|
1026
|
+
+ (<tt>Object</tt>) <strong>zip</strong>(sources, targets)
|
1027
|
+
|
1028
|
+
|
1029
|
+
|
1030
|
+
|
1031
|
+
|
1032
|
+
</h3><div class="docstring">
|
1033
|
+
<div class="discussion">
|
1034
|
+
|
1035
|
+
<p>Combine list of sources and targets to source/target pairs.</p>
|
1036
|
+
|
1037
|
+
|
1038
|
+
</div>
|
1039
|
+
</div>
|
1040
|
+
<div class="tags">
|
1041
|
+
<p class="tag_title">Parameters:</p>
|
1042
|
+
<ul class="param">
|
1043
|
+
|
1044
|
+
<li>
|
1045
|
+
|
1046
|
+
<span class='name'>sources</span>
|
1047
|
+
|
1048
|
+
|
1049
|
+
<span class='type'></span>
|
1050
|
+
|
1051
|
+
|
1052
|
+
|
1053
|
+
—
|
1054
|
+
<div class='inline'>
|
1055
|
+
<p>List of sources.</p>
|
1056
|
+
</div>
|
1057
|
+
|
1058
|
+
</li>
|
1059
|
+
|
1060
|
+
<li>
|
1061
|
+
|
1062
|
+
<span class='name'>targets</span>
|
1063
|
+
|
1064
|
+
|
1065
|
+
<span class='type'></span>
|
1066
|
+
|
1067
|
+
|
1068
|
+
|
1069
|
+
—
|
1070
|
+
<div class='inline'>
|
1071
|
+
<p>List of targets.</p>
|
1072
|
+
</div>
|
1073
|
+
|
1074
|
+
</li>
|
1075
|
+
|
1076
|
+
</ul>
|
1077
|
+
|
1078
|
+
|
1079
|
+
</div><table class="source_code">
|
1080
|
+
<tr>
|
1081
|
+
<td>
|
1082
|
+
<pre class="lines">
|
1083
|
+
|
1084
|
+
|
1085
|
+
475
|
1086
|
+
476
|
1087
|
+
477
|
1088
|
+
478
|
1089
|
+
479</pre>
|
1090
|
+
</td>
|
1091
|
+
<td>
|
1092
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 475</span>
|
1093
|
+
|
1094
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_zip'>zip</span><span class='lparen'>(</span> <span class='id identifier rubyid_sources'>sources</span><span class='comma'>,</span> <span class='id identifier rubyid_targets'>targets</span> <span class='rparen'>)</span>
|
1095
|
+
<span class='id identifier rubyid_sources'>sources</span><span class='period'>.</span><span class='id identifier rubyid_zip'>zip</span><span class='lparen'>(</span> <span class='id identifier rubyid_targets'>targets</span> <span class='rparen'>)</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_pair'>pair</span><span class='op'>|</span>
|
1096
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span> <span class='op'>*</span><span class='id identifier rubyid_pair'>pair</span> <span class='rparen'>)</span>
|
1097
|
+
<span class='kw'>end</span>
|
1098
|
+
<span class='kw'>end</span></pre>
|
1099
|
+
</td>
|
1100
|
+
</tr>
|
1101
|
+
</table>
|
1102
|
+
</div>
|
1103
|
+
|
1104
|
+
</div>
|
1105
|
+
|
1106
|
+
<div id="instance_method_details" class="method_details_list">
|
1107
|
+
<h2>Instance Method Details</h2>
|
1108
|
+
|
1109
|
+
|
1110
|
+
<div class="method_details first">
|
1111
|
+
<h3 class="signature first" id="date_update?-instance_method">
|
1112
|
+
|
1113
|
+
- (<tt>Boolean</tt>) <strong>date_update?</strong>
|
1114
|
+
|
1115
|
+
|
1116
|
+
|
1117
|
+
|
1118
|
+
|
1119
|
+
</h3><div class="docstring">
|
1120
|
+
<div class="discussion">
|
1121
|
+
|
1122
|
+
<p>Check for date (timestamp) based update needs.</p>
|
1123
|
+
|
1124
|
+
|
1125
|
+
</div>
|
1126
|
+
</div>
|
1127
|
+
<div class="tags">
|
1128
|
+
|
1129
|
+
<p class="tag_title">Returns:</p>
|
1130
|
+
<ul class="return">
|
1131
|
+
|
1132
|
+
<li>
|
1133
|
+
|
1134
|
+
|
1135
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
1136
|
+
|
1137
|
+
|
1138
|
+
|
1139
|
+
</li>
|
1140
|
+
|
1141
|
+
</ul>
|
1142
|
+
|
1143
|
+
</div><table class="source_code">
|
1144
|
+
<tr>
|
1145
|
+
<td>
|
1146
|
+
<pre class="lines">
|
1147
|
+
|
1148
|
+
|
1149
|
+
543
|
1150
|
+
544
|
1151
|
+
545
|
1152
|
+
546
|
1153
|
+
547
|
1154
|
+
548
|
1155
|
+
549
|
1156
|
+
550
|
1157
|
+
551
|
1158
|
+
552
|
1159
|
+
553
|
1160
|
+
554
|
1161
|
+
555
|
1162
|
+
556
|
1163
|
+
557
|
1164
|
+
558
|
1165
|
+
559
|
1166
|
+
560
|
1167
|
+
561
|
1168
|
+
562
|
1169
|
+
563
|
1170
|
+
564
|
1171
|
+
565
|
1172
|
+
566
|
1173
|
+
567
|
1174
|
+
568
|
1175
|
+
569</pre>
|
1176
|
+
</td>
|
1177
|
+
<td>
|
1178
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 543</span>
|
1179
|
+
|
1180
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_date_update?'>date_update?</span>
|
1181
|
+
|
1182
|
+
<span class='comment'># Check if targets are missing.
|
1183
|
+
</span> <span class='ivar'>@targets</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_target'>target</span><span class='op'>|</span>
|
1184
|
+
<span class='kw'>unless</span> <span class='id identifier rubyid_target'>target</span><span class='period'>.</span><span class='id identifier rubyid_exist?'>exist?</span>
|
1185
|
+
<span class='kw'>return</span> <span class='kw'>true</span>
|
1186
|
+
<span class='kw'>end</span>
|
1187
|
+
<span class='kw'>end</span>
|
1188
|
+
|
1189
|
+
<span class='comment'># Check if source(s) are newer than target(s).
|
1190
|
+
</span>
|
1191
|
+
<span class='id identifier rubyid_newest_source'>newest_source</span> <span class='op'>=</span> <span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span> <span class='int'>0</span> <span class='rparen'>)</span>
|
1192
|
+
<span class='ivar'>@sources</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_source'>source</span><span class='op'>|</span>
|
1193
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_source'>source</span><span class='period'>.</span><span class='id identifier rubyid_time'>time</span> <span class='op'>></span> <span class='id identifier rubyid_newest_source'>newest_source</span> <span class='op'>&&</span> <span class='op'>!</span><span class='id identifier rubyid_source'>source</span><span class='period'>.</span><span class='id identifier rubyid_skip'>skip</span>
|
1194
|
+
<span class='id identifier rubyid_newest_source'>newest_source</span> <span class='op'>=</span> <span class='id identifier rubyid_source'>source</span><span class='period'>.</span><span class='id identifier rubyid_time'>time</span>
|
1195
|
+
<span class='kw'>end</span>
|
1196
|
+
<span class='kw'>end</span>
|
1197
|
+
|
1198
|
+
<span class='id identifier rubyid_oldest_target'>oldest_target</span> <span class='op'>=</span> <span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span>
|
1199
|
+
<span class='ivar'>@targets</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_target'>target</span><span class='op'>|</span>
|
1200
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_target'>target</span><span class='period'>.</span><span class='id identifier rubyid_time'>time</span> <span class='op'><</span> <span class='id identifier rubyid_oldest_target'>oldest_target</span>
|
1201
|
+
<span class='id identifier rubyid_oldest_target'>oldest_target</span> <span class='op'>=</span> <span class='id identifier rubyid_target'>target</span><span class='period'>.</span><span class='id identifier rubyid_time'>time</span>
|
1202
|
+
<span class='kw'>end</span>
|
1203
|
+
<span class='kw'>end</span>
|
1204
|
+
|
1205
|
+
<span class='kw'>return</span> <span class='id identifier rubyid_newest_source'>newest_source</span> <span class='op'>></span> <span class='id identifier rubyid_oldest_target'>oldest_target</span>
|
1206
|
+
<span class='kw'>end</span></pre>
|
1207
|
+
</td>
|
1208
|
+
</tr>
|
1209
|
+
</table>
|
1210
|
+
</div>
|
1211
|
+
|
1212
|
+
<div class="method_details ">
|
1213
|
+
<h3 class="signature " id="fork-instance_method">
|
1214
|
+
|
1215
|
+
- (<tt>Object</tt>) <strong>fork</strong>(&blk)
|
1216
|
+
|
1217
|
+
|
1218
|
+
|
1219
|
+
|
1220
|
+
|
1221
|
+
</h3><div class="docstring">
|
1222
|
+
<div class="discussion">
|
1223
|
+
|
1224
|
+
<p>Execute commands (from block) in parallel.</p>
|
1225
|
+
|
1226
|
+
|
1227
|
+
</div>
|
1228
|
+
</div>
|
1229
|
+
<div class="tags">
|
1230
|
+
|
1231
|
+
|
1232
|
+
</div><table class="source_code">
|
1233
|
+
<tr>
|
1234
|
+
<td>
|
1235
|
+
<pre class="lines">
|
1236
|
+
|
1237
|
+
|
1238
|
+
640
|
1239
|
+
641
|
1240
|
+
642
|
1241
|
+
643
|
1242
|
+
644
|
1243
|
+
645</pre>
|
1244
|
+
</td>
|
1245
|
+
<td>
|
1246
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 640</span>
|
1247
|
+
|
1248
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_fork'>fork</span><span class='lparen'>(</span> <span class='op'>&</span><span class='id identifier rubyid_blk'>blk</span> <span class='rparen'>)</span>
|
1249
|
+
<span class='id identifier rubyid_host_in'>host_in</span>
|
1250
|
+
<span class='id identifier rubyid_instance_eval'>instance_eval</span> <span class='op'>&</span><span class='id identifier rubyid_blk'>blk</span>
|
1251
|
+
<span class='id identifier rubyid_host_out'>host_out</span>
|
1252
|
+
<span class='id identifier rubyid_parallel_run'>parallel_run</span>
|
1253
|
+
<span class='kw'>end</span></pre>
|
1254
|
+
</td>
|
1255
|
+
</tr>
|
1256
|
+
</table>
|
1257
|
+
</div>
|
1258
|
+
|
1259
|
+
<div class="method_details ">
|
1260
|
+
<h3 class="signature " id="mark_update?-instance_method">
|
1261
|
+
|
1262
|
+
- (<tt>Boolean</tt>) <strong>mark_update?</strong>
|
1263
|
+
|
1264
|
+
|
1265
|
+
|
1266
|
+
|
1267
|
+
|
1268
|
+
</h3><div class="docstring">
|
1269
|
+
<div class="discussion">
|
1270
|
+
|
1271
|
+
<p>Check for mark (checksum) based update needs.</p>
|
1272
|
+
|
1273
|
+
|
1274
|
+
</div>
|
1275
|
+
</div>
|
1276
|
+
<div class="tags">
|
1277
|
+
|
1278
|
+
<p class="tag_title">Returns:</p>
|
1279
|
+
<ul class="return">
|
1280
|
+
|
1281
|
+
<li>
|
1282
|
+
|
1283
|
+
|
1284
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
1285
|
+
|
1286
|
+
|
1287
|
+
|
1288
|
+
</li>
|
1289
|
+
|
1290
|
+
</ul>
|
1291
|
+
|
1292
|
+
</div><table class="source_code">
|
1293
|
+
<tr>
|
1294
|
+
<td>
|
1295
|
+
<pre class="lines">
|
1296
|
+
|
1297
|
+
|
1298
|
+
573
|
1299
|
+
574
|
1300
|
+
575
|
1301
|
+
576
|
1302
|
+
577
|
1303
|
+
578
|
1304
|
+
579
|
1305
|
+
580
|
1306
|
+
581
|
1307
|
+
582
|
1308
|
+
583
|
1309
|
+
584
|
1310
|
+
585
|
1311
|
+
586
|
1312
|
+
587
|
1313
|
+
588
|
1314
|
+
589
|
1315
|
+
590
|
1316
|
+
591
|
1317
|
+
592
|
1318
|
+
593
|
1319
|
+
594
|
1320
|
+
595
|
1321
|
+
596
|
1322
|
+
597
|
1323
|
+
598
|
1324
|
+
599
|
1325
|
+
600</pre>
|
1326
|
+
</td>
|
1327
|
+
<td>
|
1328
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 573</span>
|
1329
|
+
|
1330
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_mark_update?'>mark_update?</span>
|
1331
|
+
|
1332
|
+
<span class='kw'>unless</span> <span class='id identifier rubyid_date_update?'>date_update?</span>
|
1333
|
+
<span class='kw'>return</span> <span class='kw'>false</span>
|
1334
|
+
<span class='kw'>end</span>
|
1335
|
+
|
1336
|
+
<span class='comment'># Check if targets are missing.
|
1337
|
+
</span> <span class='kw'>unless</span> <span class='id identifier rubyid_target'>target</span><span class='period'>.</span><span class='id identifier rubyid_exist?'>exist?</span>
|
1338
|
+
<span class='kw'>return</span> <span class='kw'>true</span>
|
1339
|
+
<span class='kw'>end</span>
|
1340
|
+
|
1341
|
+
<span class='id identifier rubyid_old_verbose'>old_verbose</span> <span class='op'>=</span> <span class='const'>Order</span><span class='lbracket'>[</span> <span class='symbol'>:verbose</span> <span class='rbracket'>]</span>
|
1342
|
+
<span class='const'>Order</span><span class='lbracket'>[</span> <span class='symbol'>:verbose</span> <span class='rbracket'>]</span> <span class='op'>=</span> <span class='kw'>false</span>
|
1343
|
+
<span class='id identifier rubyid_step'>step</span>
|
1344
|
+
<span class='const'>Order</span><span class='lbracket'>[</span> <span class='symbol'>:verbose</span> <span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_old_verbose'>old_verbose</span>
|
1345
|
+
|
1346
|
+
<span class='kw'>unless</span> <span class='id identifier rubyid_target'>target</span><span class='period'>.</span><span class='id identifier rubyid_exist?'>exist?</span>
|
1347
|
+
<span class='id identifier rubyid_error'>error</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>file generation failure</span><span class='tstring_end'>"</span></span>
|
1348
|
+
<span class='id identifier rubyid_exit'>exit</span> <span class='kw'>false</span>
|
1349
|
+
<span class='kw'>end</span>
|
1350
|
+
|
1351
|
+
<span class='kw'>unless</span> <span class='const'>State</span><span class='period'>.</span><span class='id identifier rubyid_md5_check_and_update?'>md5_check_and_update?</span><span class='lparen'>(</span> <span class='id identifier rubyid_target'>target</span><span class='period'>.</span><span class='id identifier rubyid_rpath'>rpath</span> <span class='rparen'>)</span>
|
1352
|
+
<span class='id identifier rubyid_target'>target</span><span class='period'>.</span><span class='id identifier rubyid_skip'>skip</span> <span class='op'>=</span> <span class='kw'>true</span>
|
1353
|
+
<span class='kw'>return</span> <span class='kw'>false</span>
|
1354
|
+
<span class='kw'>end</span>
|
1355
|
+
|
1356
|
+
<span class='kw'>true</span>
|
1357
|
+
<span class='kw'>end</span></pre>
|
1358
|
+
</td>
|
1359
|
+
</tr>
|
1360
|
+
</table>
|
1361
|
+
</div>
|
1362
|
+
|
1363
|
+
<div class="method_details ">
|
1364
|
+
<h3 class="signature " id="rbrun-instance_method">
|
1365
|
+
|
1366
|
+
- (<tt>Object</tt>) <strong>rbrun</strong>(desc = nil, &cmd)
|
1367
|
+
|
1368
|
+
|
1369
|
+
|
1370
|
+
|
1371
|
+
|
1372
|
+
</h3><div class="docstring">
|
1373
|
+
<div class="discussion">
|
1374
|
+
|
1375
|
+
<p>Define and run Ruby command.</p>
|
1376
|
+
|
1377
|
+
|
1378
|
+
</div>
|
1379
|
+
</div>
|
1380
|
+
<div class="tags">
|
1381
|
+
<p class="tag_title">Parameters:</p>
|
1382
|
+
<ul class="param">
|
1383
|
+
|
1384
|
+
<li>
|
1385
|
+
|
1386
|
+
<span class='name'>desc</span>
|
1387
|
+
|
1388
|
+
|
1389
|
+
<span class='type'></span>
|
1390
|
+
|
1391
|
+
|
1392
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
1393
|
+
|
1394
|
+
|
1395
|
+
—
|
1396
|
+
<div class='inline'>
|
1397
|
+
<p>Optional description for :verbose mode.</p>
|
1398
|
+
</div>
|
1399
|
+
|
1400
|
+
</li>
|
1401
|
+
|
1402
|
+
</ul>
|
1403
|
+
|
1404
|
+
|
1405
|
+
</div><table class="source_code">
|
1406
|
+
<tr>
|
1407
|
+
<td>
|
1408
|
+
<pre class="lines">
|
1409
|
+
|
1410
|
+
|
1411
|
+
627
|
1412
|
+
628
|
1413
|
+
629</pre>
|
1414
|
+
</td>
|
1415
|
+
<td>
|
1416
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 627</span>
|
1417
|
+
|
1418
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_rbrun'>rbrun</span><span class='lparen'>(</span> <span class='id identifier rubyid_desc'>desc</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_cmd'>cmd</span> <span class='rparen'>)</span>
|
1419
|
+
<span class='const'>RubyCommand</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span> <span class='id identifier rubyid_desc'>desc</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_cmd'>cmd</span> <span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_run'>run</span>
|
1420
|
+
<span class='kw'>end</span></pre>
|
1421
|
+
</td>
|
1422
|
+
</tr>
|
1423
|
+
</table>
|
1424
|
+
</div>
|
1425
|
+
|
1426
|
+
<div class="method_details ">
|
1427
|
+
<h3 class="signature " id="rbuse-instance_method">
|
1428
|
+
|
1429
|
+
- (<tt>Object</tt>) <strong>rbuse</strong>(desc = nil, &cmd)
|
1430
|
+
|
1431
|
+
|
1432
|
+
|
1433
|
+
|
1434
|
+
|
1435
|
+
</h3><div class="docstring">
|
1436
|
+
<div class="discussion">
|
1437
|
+
|
1438
|
+
<p>Define and register Ruby command.</p>
|
1439
|
+
|
1440
|
+
|
1441
|
+
</div>
|
1442
|
+
</div>
|
1443
|
+
<div class="tags">
|
1444
|
+
<p class="tag_title">Parameters:</p>
|
1445
|
+
<ul class="param">
|
1446
|
+
|
1447
|
+
<li>
|
1448
|
+
|
1449
|
+
<span class='name'>desc</span>
|
1450
|
+
|
1451
|
+
|
1452
|
+
<span class='type'></span>
|
1453
|
+
|
1454
|
+
|
1455
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
1456
|
+
|
1457
|
+
|
1458
|
+
—
|
1459
|
+
<div class='inline'>
|
1460
|
+
<p>Optional description for :verbose mode.</p>
|
1461
|
+
</div>
|
1462
|
+
|
1463
|
+
</li>
|
1464
|
+
|
1465
|
+
</ul>
|
1466
|
+
|
1467
|
+
|
1468
|
+
</div><table class="source_code">
|
1469
|
+
<tr>
|
1470
|
+
<td>
|
1471
|
+
<pre class="lines">
|
1472
|
+
|
1473
|
+
|
1474
|
+
634
|
1475
|
+
635
|
1476
|
+
636
|
1477
|
+
637</pre>
|
1478
|
+
</td>
|
1479
|
+
<td>
|
1480
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 634</span>
|
1481
|
+
|
1482
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_rbuse'>rbuse</span><span class='lparen'>(</span> <span class='id identifier rubyid_desc'>desc</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_cmd'>cmd</span> <span class='rparen'>)</span>
|
1483
|
+
<span class='id identifier rubyid_rb'>rb</span> <span class='op'>=</span> <span class='const'>RubyCommand</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span> <span class='id identifier rubyid_desc'>desc</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_cmd'>cmd</span> <span class='rparen'>)</span>
|
1484
|
+
<span class='id identifier rubyid_rb'>rb</span><span class='period'>.</span><span class='id identifier rubyid_use'>use</span>
|
1485
|
+
<span class='kw'>end</span></pre>
|
1486
|
+
</td>
|
1487
|
+
</tr>
|
1488
|
+
</table>
|
1489
|
+
</div>
|
1490
|
+
|
1491
|
+
<div class="method_details ">
|
1492
|
+
<h3 class="signature " id="run-instance_method">
|
1493
|
+
|
1494
|
+
- (<tt>Object</tt>) <strong>run</strong>
|
1495
|
+
|
1496
|
+
|
1497
|
+
|
1498
|
+
|
1499
|
+
|
1500
|
+
</h3><div class="docstring">
|
1501
|
+
<div class="discussion">
|
1502
|
+
|
1503
|
+
<p>Run Step and capture status.</p>
|
1504
|
+
|
1505
|
+
|
1506
|
+
</div>
|
1507
|
+
</div>
|
1508
|
+
<div class="tags">
|
1509
|
+
|
1510
|
+
|
1511
|
+
</div><table class="source_code">
|
1512
|
+
<tr>
|
1513
|
+
<td>
|
1514
|
+
<pre class="lines">
|
1515
|
+
|
1516
|
+
|
1517
|
+
526
|
1518
|
+
527
|
1519
|
+
528
|
1520
|
+
529
|
1521
|
+
530
|
1522
|
+
531
|
1523
|
+
532
|
1524
|
+
533</pre>
|
1525
|
+
</td>
|
1526
|
+
<td>
|
1527
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 526</span>
|
1528
|
+
|
1529
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_run'>run</span>
|
1530
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_update?'>update?</span>
|
1531
|
+
<span class='id identifier rubyid_step'>step</span>
|
1532
|
+
<span class='kw'>else</span>
|
1533
|
+
<span class='ivar'>@status</span> <span class='op'>=</span> <span class='symbol'>:success</span>
|
1534
|
+
<span class='kw'>end</span>
|
1535
|
+
<span class='kw'>self</span>
|
1536
|
+
<span class='kw'>end</span></pre>
|
1537
|
+
</td>
|
1538
|
+
</tr>
|
1539
|
+
</table>
|
1540
|
+
</div>
|
1541
|
+
|
1542
|
+
<div class="method_details ">
|
1543
|
+
<h3 class="signature " id="setup-instance_method">
|
1544
|
+
|
1545
|
+
- (<tt>Object</tt>) <strong>setup</strong>
|
1546
|
+
|
1547
|
+
|
1548
|
+
|
1549
|
+
|
1550
|
+
|
1551
|
+
</h3><div class="docstring">
|
1552
|
+
<div class="discussion">
|
1553
|
+
|
1554
|
+
<p>Setup variables for Step. Should be defined again in derived classes.</p>
|
1555
|
+
|
1556
|
+
|
1557
|
+
</div>
|
1558
|
+
</div>
|
1559
|
+
<div class="tags">
|
1560
|
+
|
1561
|
+
|
1562
|
+
</div><table class="source_code">
|
1563
|
+
<tr>
|
1564
|
+
<td>
|
1565
|
+
<pre class="lines">
|
1566
|
+
|
1567
|
+
|
1568
|
+
521
|
1569
|
+
522</pre>
|
1570
|
+
</td>
|
1571
|
+
<td>
|
1572
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 521</span>
|
1573
|
+
|
1574
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_setup'>setup</span>
|
1575
|
+
<span class='kw'>end</span></pre>
|
1576
|
+
</td>
|
1577
|
+
</tr>
|
1578
|
+
</table>
|
1579
|
+
</div>
|
1580
|
+
|
1581
|
+
<div class="method_details ">
|
1582
|
+
<h3 class="signature " id="shrun-instance_method">
|
1583
|
+
|
1584
|
+
- (<tt>Object</tt>) <strong>shrun</strong>(cmd)
|
1585
|
+
|
1586
|
+
|
1587
|
+
|
1588
|
+
|
1589
|
+
|
1590
|
+
</h3><div class="docstring">
|
1591
|
+
<div class="discussion">
|
1592
|
+
|
1593
|
+
<p>Define and run Shell command.</p>
|
1594
|
+
|
1595
|
+
|
1596
|
+
</div>
|
1597
|
+
</div>
|
1598
|
+
<div class="tags">
|
1599
|
+
|
1600
|
+
|
1601
|
+
</div><table class="source_code">
|
1602
|
+
<tr>
|
1603
|
+
<td>
|
1604
|
+
<pre class="lines">
|
1605
|
+
|
1606
|
+
|
1607
|
+
614
|
1608
|
+
615
|
1609
|
+
616</pre>
|
1610
|
+
</td>
|
1611
|
+
<td>
|
1612
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 614</span>
|
1613
|
+
|
1614
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_shrun'>shrun</span><span class='lparen'>(</span> <span class='id identifier rubyid_cmd'>cmd</span> <span class='rparen'>)</span>
|
1615
|
+
<span class='const'>ShellCommand</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span> <span class='id identifier rubyid_cmd'>cmd</span> <span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_run'>run</span>
|
1616
|
+
<span class='kw'>end</span></pre>
|
1617
|
+
</td>
|
1618
|
+
</tr>
|
1619
|
+
</table>
|
1620
|
+
</div>
|
1621
|
+
|
1622
|
+
<div class="method_details ">
|
1623
|
+
<h3 class="signature " id="shuse-instance_method">
|
1624
|
+
|
1625
|
+
- (<tt>Object</tt>) <strong>shuse</strong>(cmd)
|
1626
|
+
|
1627
|
+
|
1628
|
+
|
1629
|
+
|
1630
|
+
|
1631
|
+
</h3><div class="docstring">
|
1632
|
+
<div class="discussion">
|
1633
|
+
|
1634
|
+
<p>Define and register Shell command.</p>
|
1635
|
+
|
1636
|
+
|
1637
|
+
</div>
|
1638
|
+
</div>
|
1639
|
+
<div class="tags">
|
1640
|
+
|
1641
|
+
|
1642
|
+
</div><table class="source_code">
|
1643
|
+
<tr>
|
1644
|
+
<td>
|
1645
|
+
<pre class="lines">
|
1646
|
+
|
1647
|
+
|
1648
|
+
619
|
1649
|
+
620
|
1650
|
+
621
|
1651
|
+
622</pre>
|
1652
|
+
</td>
|
1653
|
+
<td>
|
1654
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 619</span>
|
1655
|
+
|
1656
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_shuse'>shuse</span><span class='lparen'>(</span> <span class='id identifier rubyid_cmd'>cmd</span> <span class='rparen'>)</span>
|
1657
|
+
<span class='id identifier rubyid_sh'>sh</span> <span class='op'>=</span> <span class='const'>ShellCommand</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span> <span class='id identifier rubyid_cmd'>cmd</span> <span class='rparen'>)</span>
|
1658
|
+
<span class='id identifier rubyid_sh'>sh</span><span class='period'>.</span><span class='id identifier rubyid_use'>use</span>
|
1659
|
+
<span class='kw'>end</span></pre>
|
1660
|
+
</td>
|
1661
|
+
</tr>
|
1662
|
+
</table>
|
1663
|
+
</div>
|
1664
|
+
|
1665
|
+
<div class="method_details ">
|
1666
|
+
<h3 class="signature " id="source-instance_method">
|
1667
|
+
|
1668
|
+
- (<tt>Object</tt>) <strong>source</strong>
|
1669
|
+
|
1670
|
+
|
1671
|
+
|
1672
|
+
|
1673
|
+
|
1674
|
+
</h3><div class="docstring">
|
1675
|
+
<div class="discussion">
|
1676
|
+
|
1677
|
+
<p>Main/only (first) source file.</p>
|
1678
|
+
|
1679
|
+
|
1680
|
+
</div>
|
1681
|
+
</div>
|
1682
|
+
<div class="tags">
|
1683
|
+
|
1684
|
+
|
1685
|
+
</div><table class="source_code">
|
1686
|
+
<tr>
|
1687
|
+
<td>
|
1688
|
+
<pre class="lines">
|
1689
|
+
|
1690
|
+
|
1691
|
+
604
|
1692
|
+
605
|
1693
|
+
606</pre>
|
1694
|
+
</td>
|
1695
|
+
<td>
|
1696
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 604</span>
|
1697
|
+
|
1698
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_source'>source</span>
|
1699
|
+
<span class='ivar'>@sources</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span>
|
1700
|
+
<span class='kw'>end</span></pre>
|
1701
|
+
</td>
|
1702
|
+
</tr>
|
1703
|
+
</table>
|
1704
|
+
</div>
|
1705
|
+
|
1706
|
+
<div class="method_details ">
|
1707
|
+
<h3 class="signature " id="target-instance_method">
|
1708
|
+
|
1709
|
+
- (<tt>Object</tt>) <strong>target</strong>
|
1710
|
+
|
1711
|
+
|
1712
|
+
|
1713
|
+
|
1714
|
+
|
1715
|
+
</h3><div class="docstring">
|
1716
|
+
<div class="discussion">
|
1717
|
+
|
1718
|
+
<p>Main/only (first) target file.</p>
|
1719
|
+
|
1720
|
+
|
1721
|
+
</div>
|
1722
|
+
</div>
|
1723
|
+
<div class="tags">
|
1724
|
+
|
1725
|
+
|
1726
|
+
</div><table class="source_code">
|
1727
|
+
<tr>
|
1728
|
+
<td>
|
1729
|
+
<pre class="lines">
|
1730
|
+
|
1731
|
+
|
1732
|
+
609
|
1733
|
+
610
|
1734
|
+
611</pre>
|
1735
|
+
</td>
|
1736
|
+
<td>
|
1737
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 609</span>
|
1738
|
+
|
1739
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_target'>target</span>
|
1740
|
+
<span class='ivar'>@targets</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span>
|
1741
|
+
<span class='kw'>end</span></pre>
|
1742
|
+
</td>
|
1743
|
+
</tr>
|
1744
|
+
</table>
|
1745
|
+
</div>
|
1746
|
+
|
1747
|
+
<div class="method_details ">
|
1748
|
+
<h3 class="signature " id="update?-instance_method">
|
1749
|
+
|
1750
|
+
- (<tt>Boolean</tt>) <strong>update?</strong>
|
1751
|
+
|
1752
|
+
|
1753
|
+
|
1754
|
+
|
1755
|
+
|
1756
|
+
</h3><div class="docstring">
|
1757
|
+
<div class="discussion">
|
1758
|
+
|
1759
|
+
<p>Default update. Should be defined again in derived classes.</p>
|
1760
|
+
|
1761
|
+
|
1762
|
+
</div>
|
1763
|
+
</div>
|
1764
|
+
<div class="tags">
|
1765
|
+
|
1766
|
+
<p class="tag_title">Returns:</p>
|
1767
|
+
<ul class="return">
|
1768
|
+
|
1769
|
+
<li>
|
1770
|
+
|
1771
|
+
|
1772
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
1773
|
+
|
1774
|
+
|
1775
|
+
|
1776
|
+
</li>
|
1777
|
+
|
1778
|
+
</ul>
|
1779
|
+
|
1780
|
+
</div><table class="source_code">
|
1781
|
+
<tr>
|
1782
|
+
<td>
|
1783
|
+
<pre class="lines">
|
1784
|
+
|
1785
|
+
|
1786
|
+
537
|
1787
|
+
538
|
1788
|
+
539</pre>
|
1789
|
+
</td>
|
1790
|
+
<td>
|
1791
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 537</span>
|
1792
|
+
|
1793
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_update?'>update?</span>
|
1794
|
+
<span class='kw'>true</span>
|
1795
|
+
<span class='kw'>end</span></pre>
|
1796
|
+
</td>
|
1797
|
+
</tr>
|
1798
|
+
</table>
|
1799
|
+
</div>
|
1800
|
+
|
1801
|
+
<div class="method_details ">
|
1802
|
+
<h3 class="signature " id="walk-instance_method">
|
1803
|
+
|
1804
|
+
- (<tt>Object</tt>) <strong>walk</strong>(&blk)
|
1805
|
+
|
1806
|
+
|
1807
|
+
|
1808
|
+
|
1809
|
+
|
1810
|
+
</h3><div class="docstring">
|
1811
|
+
<div class="discussion">
|
1812
|
+
|
1813
|
+
<p>Execute commands (from block) in sequence.</p>
|
1814
|
+
|
1815
|
+
|
1816
|
+
</div>
|
1817
|
+
</div>
|
1818
|
+
<div class="tags">
|
1819
|
+
|
1820
|
+
|
1821
|
+
</div><table class="source_code">
|
1822
|
+
<tr>
|
1823
|
+
<td>
|
1824
|
+
<pre class="lines">
|
1825
|
+
|
1826
|
+
|
1827
|
+
648
|
1828
|
+
649
|
1829
|
+
650
|
1830
|
+
651
|
1831
|
+
652
|
1832
|
+
653</pre>
|
1833
|
+
</td>
|
1834
|
+
<td>
|
1835
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 648</span>
|
1836
|
+
|
1837
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_walk'>walk</span><span class='lparen'>(</span> <span class='op'>&</span><span class='id identifier rubyid_blk'>blk</span> <span class='rparen'>)</span>
|
1838
|
+
<span class='id identifier rubyid_host_in'>host_in</span>
|
1839
|
+
<span class='id identifier rubyid_instance_eval'>instance_eval</span> <span class='op'>&</span><span class='id identifier rubyid_blk'>blk</span>
|
1840
|
+
<span class='id identifier rubyid_host_out'>host_out</span>
|
1841
|
+
<span class='id identifier rubyid_serial_run'>serial_run</span>
|
1842
|
+
<span class='kw'>end</span></pre>
|
1843
|
+
</td>
|
1844
|
+
</tr>
|
1845
|
+
</table>
|
1846
|
+
</div>
|
1847
|
+
|
1848
|
+
</div>
|
1849
|
+
|
1850
|
+
</div>
|
1851
|
+
|
1852
|
+
<div id="footer">
|
1853
|
+
Generated on Sun Jul 1 17:48:17 2018 by
|
1854
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1855
|
+
0.8.7.6 (ruby-2.3.3).
|
1856
|
+
</div>
|
1857
|
+
|
1858
|
+
</body>
|
1859
|
+
</html>
|