rubu 0.0.4 → 0.0.5
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 +2 -0
- data/README.rdoc +8 -6
- data/doc/Array.html +27 -27
- data/doc/Rubu.html +20 -21
- data/doc/Rubu/Fork.html +6 -6
- data/doc/Rubu/Info.html +9 -9
- data/doc/Rubu/Mark.html +74 -74
- data/doc/Rubu/Move.html +37 -94
- data/doc/Rubu/MoveStyles.html +11 -11
- data/doc/Rubu/Order.html +15 -13
- data/doc/Rubu/RubyCommand.html +12 -12
- data/doc/Rubu/ShellCommand.html +13 -13
- data/doc/Rubu/State.html +17 -17
- data/doc/Rubu/Step.html +98 -98
- data/doc/Rubu/StepAged.html +6 -6
- data/doc/Rubu/StepAlways.html +6 -6
- data/doc/Rubu/StepMark.html +6 -6
- data/doc/Rubu/Trail.html +46 -46
- data/doc/Rubu/Var.html +9 -9
- data/doc/Rubu/Walk.html +2 -2
- data/doc/_index.html +2 -2
- data/doc/file.CHANGELOG.html +5 -2
- data/doc/file.README.html +29 -28
- data/doc/index.html +29 -28
- data/doc/method_list.html +24 -30
- data/doc/top-level-namespace.html +1 -1
- data/example/bin/rubu_example +0 -1
- data/lib/rubu.rb +14 -10
- data/lib/version.rb +2 -2
- metadata +2 -2
data/doc/index.html
CHANGED
@@ -64,33 +64,34 @@
|
|
64
64
|
<div id="content"><div id='filecontents'>
|
65
65
|
<h1 id="label-Rubu">Rubu</h1>
|
66
66
|
|
67
|
-
<p><span class='object_link'><a href="Rubu.html" title="Rubu (
|
68
|
-
is in practice a replacement for Make and Rake type of tools. <span class='object_link'><a href="Rubu.html" title="Rubu (
|
67
|
+
<p><span class='object_link'><a href="Rubu.html" title="Rubu (module)">Rubu</a></span> (Re-Usable Build Utility) is a library for building programs. <span class='object_link'><a href="Rubu.html" title="Rubu (module)">Rubu</a></span>
|
68
|
+
is in practice a replacement for Make and Rake type of tools. <span class='object_link'><a href="Rubu.html" title="Rubu (module)">Rubu</a></span> is
|
69
69
|
targeted to provide means for creating flexible build environments.</p>
|
70
70
|
|
71
71
|
<p>Make and Rake are rule and recipe based, and they are very effective when
|
72
72
|
the build process can be captured to these rules and is fairly fixed.
|
73
|
-
<span class='object_link'><a href="Rubu.html" title="Rubu (
|
73
|
+
<span class='object_link'><a href="Rubu.html" title="Rubu (module)">Rubu</a></span> includes declarations which correspond to rules, but the
|
74
74
|
declarations are lower level and provide more control over the behavior.
|
75
|
-
<span class='object_link'><a href="Rubu.html" title="Rubu (
|
75
|
+
<span class='object_link'><a href="Rubu.html" title="Rubu (module)">Rubu</a></span> also provides direct control over when the rules are executed.</p>
|
76
76
|
|
77
77
|
<p>Make and Rake are more compact for the simplest build environments, but
|
78
|
-
there is a break-even point where <span class='object_link'><a href="Rubu.html" title="Rubu (
|
78
|
+
there is a break-even point where <span class='object_link'><a href="Rubu.html" title="Rubu (module)">Rubu</a></span> becomes more convenient. This is
|
79
79
|
likely to happen when the user needs many exceptions to basic rules, also
|
80
80
|
when other tasks than just build tasks are needed.</p>
|
81
81
|
|
82
|
-
<p><span class='object_link'><a href="Rubu.html" title="Rubu (
|
82
|
+
<p><span class='object_link'><a href="Rubu.html" title="Rubu (module)">Rubu</a></span> library can be used from any Ruby program, since it is just a
|
83
83
|
library. It can also be part of a larger program as less significant part
|
84
84
|
of the overall functionality. From maintenance point of view this can be a
|
85
85
|
win in many cases.</p>
|
86
86
|
|
87
|
-
<p>The easiest way to get started with <span class='object_link'><a href="Rubu.html" title="Rubu (
|
87
|
+
<p>The easiest way to get started with <span class='object_link'><a href="Rubu.html" title="Rubu (module)">Rubu</a></span> is to study examples (See:
|
88
88
|
“Example” chapter below). However for longer term the main concepts are
|
89
89
|
important as well (See: “Concepts” chapter below).</p>
|
90
90
|
|
91
91
|
<h2 id="label-Example">Example</h2>
|
92
92
|
|
93
|
-
<p>Example of <span class='object_link'><a href="Rubu.html" title="Rubu (
|
93
|
+
<p>Example of <span class='object_link'><a href="Rubu.html" title="Rubu (module)">Rubu</a></span> build program is placed in (relative to your installation
|
94
|
+
directory), which you should copy over somewhere to execute:</p>
|
94
95
|
|
95
96
|
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_example'>example</span><span class='op'>/</span><span class='id identifier rubyid_bin'>bin</span><span class='op'>/</span><span class='id identifier rubyid_rubu_example'>rubu_example</span>
|
96
97
|
</code></pre>
|
@@ -118,7 +119,7 @@ script. File generation is part of the build program.</p>
|
|
118
119
|
|
119
120
|
<p>There are comments which highlight purpose of the build program content.</p>
|
120
121
|
|
121
|
-
<p>Sometimes it is useful to run <span class='object_link'><a href="Rubu.html" title="Rubu (
|
122
|
+
<p>Sometimes it is useful to run <span class='object_link'><a href="Rubu.html" title="Rubu (module)">Rubu</a></span> automatically whenever a file changes.
|
122
123
|
Linux provides a facility called <strong>inotify</strong>, which can be
|
123
124
|
used in Ruby through “rb-inotify” gem. Automatic update example program is
|
124
125
|
in:</p>
|
@@ -126,11 +127,11 @@ in:</p>
|
|
126
127
|
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_example'>example</span><span class='op'>/</span><span class='id identifier rubyid_up'>up</span><span class='op'>-</span><span class='id identifier rubyid_to'>to</span><span class='op'>-</span><span class='id identifier rubyid_date'>date</span>
|
127
128
|
</code></pre>
|
128
129
|
|
129
|
-
<p>This program runs <span class='object_link'><a href="Rubu.html" title="Rubu (
|
130
|
+
<p>This program runs <span class='object_link'><a href="Rubu.html" title="Rubu (module)">Rubu</a></span> each time there is a change in “src” or in “bin”
|
130
131
|
directory. It compiles and generates C files if necessary. If there are new
|
131
132
|
compilation requirements coming, before all previous have been completed,
|
132
133
|
it will continue compilation. When all compilations are done (i.e. none
|
133
|
-
pending), it will call <span class='object_link'><a href="Rubu.html" title="Rubu (
|
134
|
+
pending), it will call <span class='object_link'><a href="Rubu.html" title="Rubu (module)">Rubu</a></span> to perform linking. “up-to-date” displays
|
134
135
|
status messages in red and green on the screen. If it is started with “-v”
|
135
136
|
option the compile commands are visible, and if it is started with “-d”
|
136
137
|
option, there is extra delay in compilation command.</p>
|
@@ -145,13 +146,13 @@ you started “up-to-date”.</p>
|
|
145
146
|
|
146
147
|
<h2 id="label-Concepts">Concepts</h2>
|
147
148
|
|
148
|
-
<p><span class='object_link'><a href="Rubu.html" title="Rubu (
|
149
|
+
<p><span class='object_link'><a href="Rubu.html" title="Rubu (module)">Rubu</a></span> Build Program, RBP, is a Ruby program that uses the <span class='object_link'><a href="Rubu.html" title="Rubu (module)">Rubu</a></span> library.
|
149
150
|
Typically command line options are accepted to give options for the build
|
150
151
|
process.</p>
|
151
152
|
|
152
153
|
<p>Build programs are about collecting source files and transforming them into
|
153
|
-
targets. This process is explicit in <span class='object_link'><a href="Rubu.html" title="Rubu (
|
154
|
-
source or target, is collected within the <span class='object_link'><a href="Rubu.html" title="Rubu (
|
154
|
+
targets. This process is explicit in <span class='object_link'><a href="Rubu.html" title="Rubu (module)">Rubu</a></span>. Each file, whether it's
|
155
|
+
source or target, is collected within the <span class='object_link'><a href="Rubu.html" title="Rubu (module)">Rubu</a></span> build program. The files
|
155
156
|
are converted into <strong>Mark</strong> objects. Basically
|
156
157
|
<strong>Mark</strong> corresponds to a file, but it includes methods that
|
157
158
|
make the build process convenient.</p>
|
@@ -188,14 +189,14 @@ parallel. For example, C source to object compilation can be done in
|
|
188
189
|
parallel, but linking of objects to executable must occur after all objects
|
189
190
|
have been created.</p>
|
190
191
|
|
191
|
-
<p><span class='object_link'><a href="Rubu.html" title="Rubu (
|
192
|
+
<p><span class='object_link'><a href="Rubu.html" title="Rubu (module)">Rubu</a></span> Build Program includes all of the above, and the last step is to
|
192
193
|
select which <strong>Trail</strong> is executed. There should be at least
|
193
194
|
“default” <strong>Trail</strong>, and typically there is also a “clean”
|
194
195
|
<strong>Trail</strong>.</p>
|
195
196
|
|
196
|
-
<p><span class='object_link'><a href="Rubu.html" title="Rubu (
|
197
|
+
<p><span class='object_link'><a href="Rubu.html" title="Rubu (module)">Rubu</a></span> supports the configuration spaces: <strong>Order</strong>,
|
197
198
|
<strong>Var</strong>, and <strong>Info</strong>. <strong>Order</strong> is
|
198
|
-
meant to be used for controlling <span class='object_link'><a href="Rubu.html" title="Rubu (
|
199
|
+
meant to be used for controlling <span class='object_link'><a href="Rubu.html" title="Rubu (module)">Rubu</a></span> itself. For example if user wants
|
199
200
|
to see all executed command, then “verbose” option should be selected.</p>
|
200
201
|
|
201
202
|
<p><strong>Var</strong> is used to control how <strong>Steps</strong> behave
|
@@ -207,7 +208,7 @@ example.</p>
|
|
207
208
|
<p>To summarize and highlight the relationships between concepts, see the
|
208
209
|
diagram below:</p>
|
209
210
|
|
210
|
-
<pre class="code ruby"><code class="ruby">RBP =>
|
211
|
+
<pre class="code ruby"><code class="ruby">RBP => Trail+ => Step+ [s/p] => Move+ [s/p] => SourceMark*, TargetMark*
|
211
212
|
=> Order+
|
212
213
|
=> Var*
|
213
214
|
=> Info*
|
@@ -217,17 +218,17 @@ diagram below:</p>
|
|
217
218
|
s = Serial
|
218
219
|
p = Parallel</code></pre>
|
219
220
|
|
220
|
-
<p>RBP includes <strong>
|
221
|
-
<strong>Vars</strong> and <strong>Infos</strong>. <strong>
|
221
|
+
<p>RBP includes <strong>Trails</strong>, <strong>Orders</strong>, and possibly
|
222
|
+
<strong>Vars</strong> and <strong>Infos</strong>. <strong>Trail</strong>
|
222
223
|
includes one or more <strong>Steps</strong>, which can be executed in
|
223
224
|
sequence or in parallel.</p>
|
224
225
|
|
225
226
|
<p><strong>Step</strong> includes one or more <strong>Moves</strong>, and they
|
226
227
|
can also be sequential or parallel. <strong>Move</strong> has typically at
|
227
|
-
least one <strong>
|
228
|
-
However, there are exceptions as well.</p>
|
228
|
+
least one <strong>SourceMark</strong> and at least one
|
229
|
+
<strong>TargetMark</strong>. However, there are exceptions as well.</p>
|
229
230
|
|
230
|
-
<p>The suggested ordering within <span class='object_link'><a href="Rubu.html" title="Rubu (
|
231
|
+
<p>The suggested ordering within <span class='object_link'><a href="Rubu.html" title="Rubu (module)">Rubu</a></span> Build Program is:</p>
|
231
232
|
<dl class="rdoc-list label-list"><dt>configuration
|
232
233
|
<dd>
|
233
234
|
<p>Process command line arguments and assign options that are used to control
|
@@ -254,7 +255,7 @@ execute.</p>
|
|
254
255
|
|
255
256
|
<h2 id="label-Configuration">Configuration</h2>
|
256
257
|
|
257
|
-
<p><strong>Order</strong> space default are set by the <span class='object_link'><a href="Rubu.html" title="Rubu (
|
258
|
+
<p><strong>Order</strong> space default are set by the <span class='object_link'><a href="Rubu.html" title="Rubu (module)">Rubu</a></span> library and user
|
258
259
|
can override the default based on command line parameters if needed.</p>
|
259
260
|
|
260
261
|
<p>Set default values for <strong>Var</strong> space. After default setting,
|
@@ -288,7 +289,7 @@ also the “basename” of the file is changed. This is achieved by giving the
|
|
288
289
|
|
289
290
|
<h2 id="label-Step+definition">Step definition</h2>
|
290
291
|
|
291
|
-
<p><strong>Step</strong> is defined by inheriting of the <span class='object_link'><a href="Rubu.html" title="Rubu (
|
292
|
+
<p><strong>Step</strong> is defined by inheriting of the <span class='object_link'><a href="Rubu.html" title="Rubu (module)">Rubu</a></span>
|
292
293
|
<strong>Step</strong> classes and defining the custom “step” method. If a
|
293
294
|
specific setup for the <strong>Step</strong> is required, then an
|
294
295
|
additional “setup” method can be defined as well.</p>
|
@@ -302,7 +303,7 @@ additional “setup” method can be defined as well.</p>
|
|
302
303
|
|
303
304
|
<p>“setup” method is typically used to change the command according to user
|
304
305
|
configuration. “step” method is the action for <strong>Step</strong>.
|
305
|
-
<span class='object_link'><a href="Rubu.html" title="Rubu (
|
306
|
+
<span class='object_link'><a href="Rubu.html" title="Rubu (module)">Rubu</a></span> executes it, if necessary. For example, if <strong>Step</strong> is
|
306
307
|
a <strong>StepAged</strong> class, then the “step” method is only called if
|
307
308
|
the source <strong>Mark</strong> is newer than the target
|
308
309
|
<strong>Mark</strong>.</p>
|
@@ -378,7 +379,7 @@ above definition (from previous section) is executed with:</p>
|
|
378
379
|
|
379
380
|
<h2 id="label-Final+notes">Final notes</h2>
|
380
381
|
|
381
|
-
<p><span class='object_link'><a href="Rubu.html" title="Rubu (
|
382
|
+
<p><span class='object_link'><a href="Rubu.html" title="Rubu (module)">Rubu</a></span> treats single <strong>Mark</strong> objects and Array of
|
382
383
|
<strong>Mark</strong> objects the “same” way. In practice this means that
|
383
384
|
the most common methods for <strong>Mark</strong> objects are implemented
|
384
385
|
for Array as well. Hence, you can call a <strong>Mark</strong> method for
|
@@ -396,7 +397,7 @@ refer to the source, i.e. the only existing source, you can use the
|
|
396
397
|
</div></div>
|
397
398
|
|
398
399
|
<div id="footer">
|
399
|
-
Generated on
|
400
|
+
Generated on Fri Aug 31 09:32:06 2018 by
|
400
401
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
401
402
|
0.8.7.6 (ruby-2.3.3).
|
402
403
|
</div>
|
data/doc/method_list.html
CHANGED
@@ -406,156 +406,150 @@
|
|
406
406
|
|
407
407
|
|
408
408
|
<li class="r2 ">
|
409
|
-
<span class='object_link'><a href="Rubu/Move.html#set_show_shell_warning-instance_method" title="Rubu::Move#set_show_shell_warning (method)">#set_show_shell_warning</a></span>
|
410
|
-
<small>Rubu::Move</small>
|
411
|
-
</li>
|
412
|
-
|
413
|
-
|
414
|
-
<li class="r1 ">
|
415
409
|
<span class='object_link'><a href="Rubu/Step.html#setup-instance_method" title="Rubu::Step#setup (method)">#setup</a></span>
|
416
410
|
<small>Rubu::Step</small>
|
417
411
|
</li>
|
418
412
|
|
419
413
|
|
420
|
-
<li class="
|
414
|
+
<li class="r1 ">
|
421
415
|
<span class='object_link'><a href="Rubu/Trail.html#setup-class_method" title="Rubu::Trail.setup (method)">setup</a></span>
|
422
416
|
<small>Rubu::Trail</small>
|
423
417
|
</li>
|
424
418
|
|
425
419
|
|
426
|
-
<li class="
|
420
|
+
<li class="r2 ">
|
427
421
|
<span class='object_link'><a href="Rubu/Step.html#shrun-instance_method" title="Rubu::Step#shrun (method)">#shrun</a></span>
|
428
422
|
<small>Rubu::Step</small>
|
429
423
|
</li>
|
430
424
|
|
431
425
|
|
432
|
-
<li class="
|
426
|
+
<li class="r1 ">
|
433
427
|
<span class='object_link'><a href="Rubu/Step.html#shuse-instance_method" title="Rubu::Step#shuse (method)">#shuse</a></span>
|
434
428
|
<small>Rubu::Step</small>
|
435
429
|
</li>
|
436
430
|
|
437
431
|
|
438
|
-
<li class="
|
432
|
+
<li class="r2 ">
|
439
433
|
<span class='object_link'><a href="Rubu/Mark.html#skip-instance_method" title="Rubu::Mark#skip (method)">#skip</a></span>
|
440
434
|
<small>Rubu::Mark</small>
|
441
435
|
</li>
|
442
436
|
|
443
437
|
|
444
|
-
<li class="
|
438
|
+
<li class="r1 ">
|
445
439
|
<span class='object_link'><a href="Rubu/Step.html#source-instance_method" title="Rubu::Step#source (method)">#source</a></span>
|
446
440
|
<small>Rubu::Step</small>
|
447
441
|
</li>
|
448
442
|
|
449
443
|
|
450
|
-
<li class="
|
444
|
+
<li class="r2 ">
|
451
445
|
<span class='object_link'><a href="Rubu/Step.html#sources-instance_method" title="Rubu::Step#sources (method)">#sources</a></span>
|
452
446
|
<small>Rubu::Step</small>
|
453
447
|
</li>
|
454
448
|
|
455
449
|
|
456
|
-
<li class="
|
450
|
+
<li class="r1 ">
|
457
451
|
<span class='object_link'><a href="Rubu/Move.html#status-instance_method" title="Rubu::Move#status (method)">#status</a></span>
|
458
452
|
<small>Rubu::Move</small>
|
459
453
|
</li>
|
460
454
|
|
461
455
|
|
462
|
-
<li class="
|
456
|
+
<li class="r2 ">
|
463
457
|
<span class='object_link'><a href="Rubu/Step.html#step-instance_method" title="Rubu::Step#step (method)">#step</a></span>
|
464
458
|
<small>Rubu::Step</small>
|
465
459
|
</li>
|
466
460
|
|
467
461
|
|
468
|
-
<li class="
|
462
|
+
<li class="r1 ">
|
469
463
|
<span class='object_link'><a href="Rubu/Move.html#subs-instance_method" title="Rubu::Move#subs (method)">#subs</a></span>
|
470
464
|
<small>Rubu::Move</small>
|
471
465
|
</li>
|
472
466
|
|
473
467
|
|
474
|
-
<li class="
|
468
|
+
<li class="r2 ">
|
475
469
|
<span class='object_link'><a href="Rubu/Step.html#target-instance_method" title="Rubu::Step#target (method)">#target</a></span>
|
476
470
|
<small>Rubu::Step</small>
|
477
471
|
</li>
|
478
472
|
|
479
473
|
|
480
|
-
<li class="
|
474
|
+
<li class="r1 ">
|
481
475
|
<span class='object_link'><a href="Rubu/Step.html#targets-instance_method" title="Rubu::Step#targets (method)">#targets</a></span>
|
482
476
|
<small>Rubu::Step</small>
|
483
477
|
</li>
|
484
478
|
|
485
479
|
|
486
|
-
<li class="
|
480
|
+
<li class="r2 ">
|
487
481
|
<span class='object_link'><a href="Rubu/Mark.html#time-instance_method" title="Rubu::Mark#time (method)">#time</a></span>
|
488
482
|
<small>Rubu::Mark</small>
|
489
483
|
</li>
|
490
484
|
|
491
485
|
|
492
|
-
<li class="
|
486
|
+
<li class="r1 ">
|
493
487
|
<span class='object_link'><a href="Rubu/Step.html#update%3F-instance_method" title="Rubu::Step#update? (method)">#update?</a></span>
|
494
488
|
<small>Rubu::Step</small>
|
495
489
|
</li>
|
496
490
|
|
497
491
|
|
498
|
-
<li class="
|
492
|
+
<li class="r2 ">
|
499
493
|
<span class='object_link'><a href="Rubu/StepAlways.html#update%3F-instance_method" title="Rubu::StepAlways#update? (method)">#update?</a></span>
|
500
494
|
<small>Rubu::StepAlways</small>
|
501
495
|
</li>
|
502
496
|
|
503
497
|
|
504
|
-
<li class="
|
498
|
+
<li class="r1 ">
|
505
499
|
<span class='object_link'><a href="Rubu/StepAged.html#update%3F-instance_method" title="Rubu::StepAged#update? (method)">#update?</a></span>
|
506
500
|
<small>Rubu::StepAged</small>
|
507
501
|
</li>
|
508
502
|
|
509
503
|
|
510
|
-
<li class="
|
504
|
+
<li class="r2 ">
|
511
505
|
<span class='object_link'><a href="Rubu/StepMark.html#update%3F-instance_method" title="Rubu::StepMark#update? (method)">#update?</a></span>
|
512
506
|
<small>Rubu::StepMark</small>
|
513
507
|
</li>
|
514
508
|
|
515
509
|
|
516
|
-
<li class="
|
510
|
+
<li class="r1 ">
|
517
511
|
<span class='object_link'><a href="Rubu/Move.html#use-instance_method" title="Rubu::Move#use (method)">#use</a></span>
|
518
512
|
<small>Rubu::Move</small>
|
519
513
|
</li>
|
520
514
|
|
521
515
|
|
522
|
-
<li class="
|
516
|
+
<li class="r2 ">
|
523
517
|
<span class='object_link'><a href="Rubu/Step.html#use-class_method" title="Rubu::Step.use (method)">use</a></span>
|
524
518
|
<small>Rubu::Step</small>
|
525
519
|
</li>
|
526
520
|
|
527
521
|
|
528
|
-
<li class="
|
522
|
+
<li class="r1 ">
|
529
523
|
<span class='object_link'><a href="Array.html#use-instance_method" title="Array#use (method)">#use</a></span>
|
530
524
|
<small>Array</small>
|
531
525
|
</li>
|
532
526
|
|
533
527
|
|
534
|
-
<li class="
|
528
|
+
<li class="r2 ">
|
535
529
|
<span class='object_link'><a href="Rubu/Step.html#usezip-class_method" title="Rubu::Step.usezip (method)">usezip</a></span>
|
536
530
|
<small>Rubu::Step</small>
|
537
531
|
</li>
|
538
532
|
|
539
533
|
|
540
|
-
<li class="
|
534
|
+
<li class="r1 ">
|
541
535
|
<span class='object_link'><a href="Rubu.html#version-class_method" title="Rubu.version (method)">version</a></span>
|
542
536
|
<small>Rubu</small>
|
543
537
|
</li>
|
544
538
|
|
545
539
|
|
546
|
-
<li class="
|
540
|
+
<li class="r2 ">
|
547
541
|
<span class='object_link'><a href="Rubu/Step.html#walk-instance_method" title="Rubu::Step#walk (method)">#walk</a></span>
|
548
542
|
<small>Rubu::Step</small>
|
549
543
|
</li>
|
550
544
|
|
551
545
|
|
552
|
-
<li class="
|
546
|
+
<li class="r1 ">
|
553
547
|
<span class='object_link'><a href="Rubu/Move.html#warn-instance_method" title="Rubu::Move#warn (method)">#warn</a></span>
|
554
548
|
<small>Rubu::Move</small>
|
555
549
|
</li>
|
556
550
|
|
557
551
|
|
558
|
-
<li class="
|
552
|
+
<li class="r2 ">
|
559
553
|
<span class='object_link'><a href="Rubu/Step.html#zip-class_method" title="Rubu::Step.zip (method)">zip</a></span>
|
560
554
|
<small>Rubu::Step</small>
|
561
555
|
</li>
|
@@ -105,7 +105,7 @@
|
|
105
105
|
</div>
|
106
106
|
|
107
107
|
<div id="footer">
|
108
|
-
Generated on
|
108
|
+
Generated on Fri Aug 31 09:32:06 2018 by
|
109
109
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
110
110
|
0.8.7.6 (ruby-2.3.3).
|
111
111
|
</div>
|
data/example/bin/rubu_example
CHANGED
data/lib/rubu.rb
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
require 'open3'
|
2
2
|
require 'yaml'
|
3
3
|
require 'digest/md5'
|
4
|
+
require_relative './version.rb'
|
5
|
+
|
4
6
|
|
5
7
|
module Rubu
|
6
8
|
|
@@ -58,7 +60,6 @@ module Rubu
|
|
58
60
|
class Move
|
59
61
|
|
60
62
|
@@host = []
|
61
|
-
@@show_shell_warning = true
|
62
63
|
|
63
64
|
# Status after execution.
|
64
65
|
attr_reader :status
|
@@ -118,10 +119,6 @@ module Rubu
|
|
118
119
|
STDOUT.puts @output
|
119
120
|
end
|
120
121
|
|
121
|
-
def set_show_shell_warning( value = true )
|
122
|
-
@@show_shell_warning = value
|
123
|
-
end
|
124
|
-
|
125
122
|
end
|
126
123
|
|
127
124
|
|
@@ -143,7 +140,7 @@ module Rubu
|
|
143
140
|
end
|
144
141
|
|
145
142
|
if status.exitstatus == 0
|
146
|
-
if
|
143
|
+
if Order[ :sh_warn ] && not( stderr.empty? )
|
147
144
|
warn( stderr )
|
148
145
|
end
|
149
146
|
@status = :success
|
@@ -403,10 +400,11 @@ module Rubu
|
|
403
400
|
# Configuration space for Rubu.
|
404
401
|
#
|
405
402
|
# Options:
|
406
|
-
# * serial - Force parallel executions to serial.
|
407
|
-
# * parmax - Limit the number of parallel executions.
|
408
|
-
# * verbose - Show command executions.
|
409
|
-
# * force - Force Step updates.
|
403
|
+
# * serial - Force parallel executions to serial (default: parallel).
|
404
|
+
# * parmax - Limit the number of parallel executions (default: 0).
|
405
|
+
# * verbose - Show command executions (default: false).
|
406
|
+
# * force - Force Step updates (default: false).
|
407
|
+
# * sh_warn - Show shell warnings (default: true).
|
410
408
|
class Order
|
411
409
|
|
412
410
|
@@order = {}
|
@@ -433,6 +431,12 @@ module Rubu
|
|
433
431
|
# Verbose execution.
|
434
432
|
Order[ :verbose ] = false
|
435
433
|
|
434
|
+
# Force Step updates.
|
435
|
+
Order[ :force ] = false
|
436
|
+
|
437
|
+
# Show warnings (for shell commands).
|
438
|
+
Order[ :sh_warn ] = true
|
439
|
+
|
436
440
|
end
|
437
441
|
|
438
442
|
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tero Isannainen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-08-
|
11
|
+
date: 2018-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |-
|
14
14
|
Rubu (Re-Usable Build Utility) is a library for building
|