rubu 0.0.1
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 +7 -0
- data/CHANGELOG.rdoc +3 -0
- data/LICENSE +20 -0
- data/README.rdoc +63 -0
- data/doc/Array.html +422 -0
- data/doc/Rubu.html +201 -0
- data/doc/Rubu/Action.html +1002 -0
- data/doc/Rubu/AlwaysBuild.html +275 -0
- data/doc/Rubu/Build.html +1663 -0
- data/doc/Rubu/DateBuild.html +275 -0
- data/doc/Rubu/Flow.html +893 -0
- data/doc/Rubu/FlowRun.html +377 -0
- data/doc/Rubu/Fork.html +253 -0
- data/doc/Rubu/Info.html +264 -0
- data/doc/Rubu/Mark.html +1375 -0
- data/doc/Rubu/MarkBuild.html +275 -0
- data/doc/Rubu/Order.html +264 -0
- data/doc/Rubu/RubyCommand.html +315 -0
- data/doc/Rubu/ShellCommand.html +333 -0
- data/doc/Rubu/State.html +412 -0
- data/doc/Rubu/Var.html +264 -0
- data/doc/Rubu/Walk.html +184 -0
- data/doc/_index.html +313 -0
- data/doc/class_list.html +58 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +339 -0
- data/doc/file.CHANGELOG.html +79 -0
- data/doc/file.README.html +133 -0
- data/doc/file_list.html +63 -0
- data/doc/frames.html +26 -0
- data/doc/index.html +133 -0
- data/doc/js/app.js +219 -0
- data/doc/js/full_list.js +181 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +549 -0
- data/doc/top-level-namespace.html +114 -0
- data/example/bin/gen_world +10 -0
- data/example/bin/rubu_example +178 -0
- data/example/runme +26 -0
- data/example/src/hello_world.c +11 -0
- data/lib/rubu.rb +790 -0
- data/lib/version.rb +6 -0
- metadata +92 -0
@@ -0,0 +1,275 @@
|
|
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::AlwaysBuild
|
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/AlwaysBuild.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 (A)</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">AlwaysBuild</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::AlwaysBuild
|
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="Build.html" title="Rubu::Build (class)">Build</a></span></span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next"><span class='object_link'><a href="Action.html" title="Rubu::Action (class)">Action</a></span></li>
|
82
|
+
|
83
|
+
<li class="next"><span class='object_link'><a href="Build.html" title="Rubu::Build (class)">Build</a></span></li>
|
84
|
+
|
85
|
+
<li class="next">Rubu::AlwaysBuild</li>
|
86
|
+
|
87
|
+
</ul>
|
88
|
+
<a href="#" class="inheritanceTree">show all</a>
|
89
|
+
|
90
|
+
</dd>
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
<dt class="r2 last">Defined in:</dt>
|
101
|
+
<dd class="r2 last">lib/rubu.rb</dd>
|
102
|
+
|
103
|
+
</dl>
|
104
|
+
<div class="clear"></div>
|
105
|
+
|
106
|
+
<h2>Overview</h2><div class="docstring">
|
107
|
+
<div class="discussion">
|
108
|
+
|
109
|
+
<p>Uncondition build.</p>
|
110
|
+
|
111
|
+
|
112
|
+
</div>
|
113
|
+
</div>
|
114
|
+
<div class="tags">
|
115
|
+
|
116
|
+
|
117
|
+
</div>
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
<h2>Instance Attribute Summary</h2>
|
124
|
+
|
125
|
+
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Build.html" title="Rubu::Build (class)">Build</a></span></h3>
|
126
|
+
<p class="inherited"><span class='object_link'><a href="Build.html#sources-instance_method" title="Rubu::Build#sources (method)">#sources</a></span>, <span class='object_link'><a href="Build.html#targets-instance_method" title="Rubu::Build#targets (method)">#targets</a></span></p>
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Action.html" title="Rubu::Action (class)">Action</a></span></h3>
|
131
|
+
<p class="inherited"><span class='object_link'><a href="Action.html#errmsg-instance_method" title="Rubu::Action#errmsg (method)">#errmsg</a></span>, <span class='object_link'><a href="Action.html#output-instance_method" title="Rubu::Action#output (method)">#output</a></span>, <span class='object_link'><a href="Action.html#status-instance_method" title="Rubu::Action#status (method)">#status</a></span>, <span class='object_link'><a href="Action.html#subs-instance_method" title="Rubu::Action#subs (method)">#subs</a></span></p>
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
<h2>
|
136
|
+
Instance Method Summary
|
137
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
138
|
+
</h2>
|
139
|
+
|
140
|
+
<ul class="summary">
|
141
|
+
|
142
|
+
<li class="public ">
|
143
|
+
<span class="summary_signature">
|
144
|
+
|
145
|
+
<a href="#update%3F-instance_method" title="#update? (instance method)">- (Boolean) <strong>update?</strong> </a>
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
</span>
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
160
|
+
|
161
|
+
</li>
|
162
|
+
|
163
|
+
|
164
|
+
</ul>
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Build.html" title="Rubu::Build (class)">Build</a></span></h3>
|
177
|
+
<p class="inherited"><span class='object_link'><a href="Build.html#date_update%3F-instance_method" title="Rubu::Build#date_update? (method)">#date_update?</a></span>, <span class='object_link'><a href="Build.html#fork-instance_method" title="Rubu::Build#fork (method)">#fork</a></span>, <span class='object_link'><a href="Build.html#initialize-instance_method" title="Rubu::Build#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="Build.html#mark_update%3F-instance_method" title="Rubu::Build#mark_update? (method)">#mark_update?</a></span>, <span class='object_link'><a href="Build.html#rbdef-instance_method" title="Rubu::Build#rbdef (method)">#rbdef</a></span>, <span class='object_link'><a href="Build.html#rbrun-instance_method" title="Rubu::Build#rbrun (method)">#rbrun</a></span>, <span class='object_link'><a href="Build.html#run-instance_method" title="Rubu::Build#run (method)">#run</a></span>, <span class='object_link'><a href="Build.html#setup-instance_method" title="Rubu::Build#setup (method)">#setup</a></span>, <span class='object_link'><a href="Build.html#shdef-instance_method" title="Rubu::Build#shdef (method)">#shdef</a></span>, <span class='object_link'><a href="Build.html#shrun-instance_method" title="Rubu::Build#shrun (method)">#shrun</a></span>, <span class='object_link'><a href="Build.html#source-instance_method" title="Rubu::Build#source (method)">#source</a></span>, <span class='object_link'><a href="Build.html#target-instance_method" title="Rubu::Build#target (method)">#target</a></span>, <span class='object_link'><a href="Build.html#use-class_method" title="Rubu::Build.use (method)">use</a></span>, <span class='object_link'><a href="Build.html#usezip-class_method" title="Rubu::Build.usezip (method)">usezip</a></span>, <span class='object_link'><a href="Build.html#walk-instance_method" title="Rubu::Build#walk (method)">#walk</a></span>, <span class='object_link'><a href="Build.html#zip-class_method" title="Rubu::Build.zip (method)">zip</a></span></p>
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="FlowRun.html" title="Rubu::FlowRun (module)">FlowRun</a></span></h3>
|
188
|
+
<p class="inherited"><span class='object_link'><a href="FlowRun.html#parallel_run-instance_method" title="Rubu::FlowRun#parallel_run (method)">#parallel_run</a></span>, <span class='object_link'><a href="FlowRun.html#serial_run-instance_method" title="Rubu::FlowRun#serial_run (method)">#serial_run</a></span></p>
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Action.html" title="Rubu::Action (class)">Action</a></span></h3>
|
199
|
+
<p class="inherited"><span class='object_link'><a href="Action.html#display-instance_method" title="Rubu::Action#display (method)">#display</a></span>, <span class='object_link'><a href="Action.html#error-instance_method" title="Rubu::Action#error (method)">#error</a></span>, <span class='object_link'><a href="Action.html#host-instance_method" title="Rubu::Action#host (method)">#host</a></span>, <span class='object_link'><a href="Action.html#host_in-instance_method" title="Rubu::Action#host_in (method)">#host_in</a></span>, <span class='object_link'><a href="Action.html#host_out-instance_method" title="Rubu::Action#host_out (method)">#host_out</a></span>, <span class='object_link'><a href="Action.html#initialize-instance_method" title="Rubu::Action#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="Action.html#pick-instance_method" title="Rubu::Action#pick (method)">#pick</a></span>, <span class='object_link'><a href="Action.html#use-instance_method" title="Rubu::Action#use (method)">#use</a></span></p>
|
200
|
+
<div id="constructor_details" class="method_details_list">
|
201
|
+
<h2>Constructor Details</h2>
|
202
|
+
|
203
|
+
<p class="notice">This class inherits a constructor from <span class='object_link'><a href="Build.html#initialize-instance_method" title="Rubu::Build#initialize (method)">Rubu::Build</a></span></p>
|
204
|
+
|
205
|
+
</div>
|
206
|
+
|
207
|
+
|
208
|
+
<div id="instance_method_details" class="method_details_list">
|
209
|
+
<h2>Instance Method Details</h2>
|
210
|
+
|
211
|
+
|
212
|
+
<div class="method_details first">
|
213
|
+
<h3 class="signature first" id="update?-instance_method">
|
214
|
+
|
215
|
+
- (<tt>Boolean</tt>) <strong>update?</strong>
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
</h3><div class="docstring">
|
222
|
+
<div class="discussion">
|
223
|
+
|
224
|
+
|
225
|
+
</div>
|
226
|
+
</div>
|
227
|
+
<div class="tags">
|
228
|
+
|
229
|
+
<p class="tag_title">Returns:</p>
|
230
|
+
<ul class="return">
|
231
|
+
|
232
|
+
<li>
|
233
|
+
|
234
|
+
|
235
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
</li>
|
240
|
+
|
241
|
+
</ul>
|
242
|
+
|
243
|
+
</div><table class="source_code">
|
244
|
+
<tr>
|
245
|
+
<td>
|
246
|
+
<pre class="lines">
|
247
|
+
|
248
|
+
|
249
|
+
604
|
250
|
+
605
|
251
|
+
606</pre>
|
252
|
+
</td>
|
253
|
+
<td>
|
254
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 604</span>
|
255
|
+
|
256
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_update?'>update?</span>
|
257
|
+
<span class='kw'>true</span>
|
258
|
+
<span class='kw'>end</span></pre>
|
259
|
+
</td>
|
260
|
+
</tr>
|
261
|
+
</table>
|
262
|
+
</div>
|
263
|
+
|
264
|
+
</div>
|
265
|
+
|
266
|
+
</div>
|
267
|
+
|
268
|
+
<div id="footer">
|
269
|
+
Generated on Fri Jun 29 10:04:07 2018 by
|
270
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
271
|
+
0.8.7.6 (ruby-2.3.3).
|
272
|
+
</div>
|
273
|
+
|
274
|
+
</body>
|
275
|
+
</html>
|
data/doc/Rubu/Build.html
ADDED
@@ -0,0 +1,1663 @@
|
|
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::Build
|
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/Build.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 (B)</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">Build</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::Build
|
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="Action.html" title="Rubu::Action (class)">Action</a></span></span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next"><span class='object_link'><a href="Action.html" title="Rubu::Action (class)">Action</a></span></li>
|
82
|
+
|
83
|
+
<li class="next">Rubu::Build</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="FlowRun.html" title="Rubu::FlowRun (module)">FlowRun</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>Build Action. Build Action takes one or more sources, and turns them into
|
112
|
+
one or 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="AlwaysBuild.html" title="Rubu::AlwaysBuild (class)">AlwaysBuild</a></span>, <span class='object_link'><a href="DateBuild.html" title="Rubu::DateBuild (class)">DateBuild</a></span>, <span class='object_link'><a href="MarkBuild.html" title="Rubu::MarkBuild (class)">MarkBuild</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="Action.html" title="Rubu::Action (class)">Action</a></span></h3>
|
196
|
+
<p class="inherited"><span class='object_link'><a href="Action.html#errmsg-instance_method" title="Rubu::Action#errmsg (method)">#errmsg</a></span>, <span class='object_link'><a href="Action.html#output-instance_method" title="Rubu::Action#output (method)">#output</a></span>, <span class='object_link'><a href="Action.html#status-instance_method" title="Rubu::Action#status (method)">#status</a></span>, <span class='object_link'><a href="Action.html#subs-instance_method" title="Rubu::Action#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 Action 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 (in 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)">- (Build) <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>A new instance of Build.</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="#rbdef-instance_method" title="#rbdef (instance method)">- (Object) <strong>rbdef</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 register Ruby command.</p>
|
405
|
+
</div></span>
|
406
|
+
|
407
|
+
</li>
|
408
|
+
|
409
|
+
|
410
|
+
<li class="public ">
|
411
|
+
<span class="summary_signature">
|
412
|
+
|
413
|
+
<a href="#rbrun-instance_method" title="#rbrun (instance method)">- (Object) <strong>rbrun</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 run 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 Build Action 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>Defined by users.</p>
|
477
|
+
</div></span>
|
478
|
+
|
479
|
+
</li>
|
480
|
+
|
481
|
+
|
482
|
+
<li class="public ">
|
483
|
+
<span class="summary_signature">
|
484
|
+
|
485
|
+
<a href="#shdef-instance_method" title="#shdef (instance method)">- (Object) <strong>shdef</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 register Shell command.</p>
|
501
|
+
</div></span>
|
502
|
+
|
503
|
+
</li>
|
504
|
+
|
505
|
+
|
506
|
+
<li class="public ">
|
507
|
+
<span class="summary_signature">
|
508
|
+
|
509
|
+
<a href="#shrun-instance_method" title="#shrun (instance method)">- (Object) <strong>shrun</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 run 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 (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 (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 (in block) in series.</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="FlowRun.html" title="Rubu::FlowRun (module)">FlowRun</a></span></h3>
|
639
|
+
<p class="inherited"><span class='object_link'><a href="FlowRun.html#parallel_run-instance_method" title="Rubu::FlowRun#parallel_run (method)">#parallel_run</a></span>, <span class='object_link'><a href="FlowRun.html#serial_run-instance_method" title="Rubu::FlowRun#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="Action.html" title="Rubu::Action (class)">Action</a></span></h3>
|
650
|
+
<p class="inherited"><span class='object_link'><a href="Action.html#display-instance_method" title="Rubu::Action#display (method)">#display</a></span>, <span class='object_link'><a href="Action.html#error-instance_method" title="Rubu::Action#error (method)">#error</a></span>, <span class='object_link'><a href="Action.html#host-instance_method" title="Rubu::Action#host (method)">#host</a></span>, <span class='object_link'><a href="Action.html#host_in-instance_method" title="Rubu::Action#host_in (method)">#host_in</a></span>, <span class='object_link'><a href="Action.html#host_out-instance_method" title="Rubu::Action#host_out (method)">#host_out</a></span>, <span class='object_link'><a href="Action.html#pick-instance_method" title="Rubu::Action#pick (method)">#pick</a></span>, <span class='object_link'><a href="Action.html#use-instance_method" title="Rubu::Action#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::Build (class)">Build</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>Returns a new instance of Build</p>
|
667
|
+
|
668
|
+
|
669
|
+
</div>
|
670
|
+
</div>
|
671
|
+
<div class="tags">
|
672
|
+
|
673
|
+
|
674
|
+
</div><table class="source_code">
|
675
|
+
<tr>
|
676
|
+
<td>
|
677
|
+
<pre class="lines">
|
678
|
+
|
679
|
+
|
680
|
+
450
|
681
|
+
451
|
682
|
+
452
|
683
|
+
453
|
684
|
+
454
|
685
|
+
455
|
686
|
+
456
|
687
|
+
457
|
688
|
+
458
|
689
|
+
459
|
690
|
+
460
|
691
|
+
461
|
692
|
+
462
|
693
|
+
463
|
694
|
+
464
|
695
|
+
465
|
696
|
+
466</pre>
|
697
|
+
</td>
|
698
|
+
<td>
|
699
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 450</span>
|
700
|
+
|
701
|
+
<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>
|
702
|
+
<span class='kw'>super</span><span class='lparen'>(</span><span class='rparen'>)</span>
|
703
|
+
|
704
|
+
<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>
|
705
|
+
<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>
|
706
|
+
<span class='kw'>else</span>
|
707
|
+
<span class='ivar'>@sources</span> <span class='op'>=</span> <span class='id identifier rubyid_sources'>sources</span>
|
708
|
+
<span class='kw'>end</span>
|
709
|
+
|
710
|
+
<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>
|
711
|
+
<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>
|
712
|
+
<span class='kw'>else</span>
|
713
|
+
<span class='ivar'>@targets</span> <span class='op'>=</span> <span class='id identifier rubyid_targets'>targets</span>
|
714
|
+
<span class='kw'>end</span>
|
715
|
+
|
716
|
+
<span class='id identifier rubyid_setup'>setup</span>
|
717
|
+
<span class='kw'>end</span></pre>
|
718
|
+
</td>
|
719
|
+
</tr>
|
720
|
+
</table>
|
721
|
+
</div>
|
722
|
+
|
723
|
+
</div>
|
724
|
+
|
725
|
+
<div id="instance_attr_details" class="attr_details">
|
726
|
+
<h2>Instance Attribute Details</h2>
|
727
|
+
|
728
|
+
|
729
|
+
<span id=""></span>
|
730
|
+
<div class="method_details first">
|
731
|
+
<h3 class="signature first" id="sources-instance_method">
|
732
|
+
|
733
|
+
- (<tt>Object</tt>) <strong>sources</strong> <span class="extras">(readonly)</span>
|
734
|
+
|
735
|
+
|
736
|
+
|
737
|
+
|
738
|
+
|
739
|
+
</h3><div class="docstring">
|
740
|
+
<div class="discussion">
|
741
|
+
|
742
|
+
<p>Returns the value of attribute sources</p>
|
743
|
+
|
744
|
+
|
745
|
+
</div>
|
746
|
+
</div>
|
747
|
+
<div class="tags">
|
748
|
+
|
749
|
+
|
750
|
+
</div><table class="source_code">
|
751
|
+
<tr>
|
752
|
+
<td>
|
753
|
+
<pre class="lines">
|
754
|
+
|
755
|
+
|
756
|
+
447
|
757
|
+
448
|
758
|
+
449</pre>
|
759
|
+
</td>
|
760
|
+
<td>
|
761
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 447</span>
|
762
|
+
|
763
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_sources'>sources</span>
|
764
|
+
<span class='ivar'>@sources</span>
|
765
|
+
<span class='kw'>end</span></pre>
|
766
|
+
</td>
|
767
|
+
</tr>
|
768
|
+
</table>
|
769
|
+
</div>
|
770
|
+
|
771
|
+
|
772
|
+
<span id=""></span>
|
773
|
+
<div class="method_details ">
|
774
|
+
<h3 class="signature " id="targets-instance_method">
|
775
|
+
|
776
|
+
- (<tt>Object</tt>) <strong>targets</strong> <span class="extras">(readonly)</span>
|
777
|
+
|
778
|
+
|
779
|
+
|
780
|
+
|
781
|
+
|
782
|
+
</h3><div class="docstring">
|
783
|
+
<div class="discussion">
|
784
|
+
|
785
|
+
<p>Returns the value of attribute targets</p>
|
786
|
+
|
787
|
+
|
788
|
+
</div>
|
789
|
+
</div>
|
790
|
+
<div class="tags">
|
791
|
+
|
792
|
+
|
793
|
+
</div><table class="source_code">
|
794
|
+
<tr>
|
795
|
+
<td>
|
796
|
+
<pre class="lines">
|
797
|
+
|
798
|
+
|
799
|
+
448
|
800
|
+
449
|
801
|
+
450</pre>
|
802
|
+
</td>
|
803
|
+
<td>
|
804
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 448</span>
|
805
|
+
|
806
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_targets'>targets</span>
|
807
|
+
<span class='ivar'>@targets</span>
|
808
|
+
<span class='kw'>end</span></pre>
|
809
|
+
</td>
|
810
|
+
</tr>
|
811
|
+
</table>
|
812
|
+
</div>
|
813
|
+
|
814
|
+
</div>
|
815
|
+
|
816
|
+
|
817
|
+
<div id="class_method_details" class="method_details_list">
|
818
|
+
<h2>Class Method Details</h2>
|
819
|
+
|
820
|
+
|
821
|
+
<div class="method_details first">
|
822
|
+
<h3 class="signature first" id="use-class_method">
|
823
|
+
|
824
|
+
+ (<tt>Object</tt>) <strong>use</strong>(sources = [], targets = [])
|
825
|
+
|
826
|
+
|
827
|
+
|
828
|
+
|
829
|
+
|
830
|
+
</h3><div class="docstring">
|
831
|
+
<div class="discussion">
|
832
|
+
|
833
|
+
<p>Create Action and register.</p>
|
834
|
+
|
835
|
+
|
836
|
+
</div>
|
837
|
+
</div>
|
838
|
+
<div class="tags">
|
839
|
+
|
840
|
+
|
841
|
+
</div><table class="source_code">
|
842
|
+
<tr>
|
843
|
+
<td>
|
844
|
+
<pre class="lines">
|
845
|
+
|
846
|
+
|
847
|
+
427
|
848
|
+
428
|
849
|
+
429</pre>
|
850
|
+
</td>
|
851
|
+
<td>
|
852
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 427</span>
|
853
|
+
|
854
|
+
<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>
|
855
|
+
<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>
|
856
|
+
<span class='kw'>end</span></pre>
|
857
|
+
</td>
|
858
|
+
</tr>
|
859
|
+
</table>
|
860
|
+
</div>
|
861
|
+
|
862
|
+
<div class="method_details ">
|
863
|
+
<h3 class="signature " id="usezip-class_method">
|
864
|
+
|
865
|
+
+ (<tt>Object</tt>) <strong>usezip</strong>(sources, targets)
|
866
|
+
|
867
|
+
|
868
|
+
|
869
|
+
|
870
|
+
|
871
|
+
</h3><div class="docstring">
|
872
|
+
<div class="discussion">
|
873
|
+
|
874
|
+
<p>Combine list of sources and targets to source/target pairs and register.</p>
|
875
|
+
|
876
|
+
|
877
|
+
</div>
|
878
|
+
</div>
|
879
|
+
<div class="tags">
|
880
|
+
|
881
|
+
|
882
|
+
</div><table class="source_code">
|
883
|
+
<tr>
|
884
|
+
<td>
|
885
|
+
<pre class="lines">
|
886
|
+
|
887
|
+
|
888
|
+
440
|
889
|
+
441
|
890
|
+
442
|
891
|
+
443
|
892
|
+
444</pre>
|
893
|
+
</td>
|
894
|
+
<td>
|
895
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 440</span>
|
896
|
+
|
897
|
+
<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>
|
898
|
+
<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>
|
899
|
+
<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>
|
900
|
+
<span class='kw'>end</span>
|
901
|
+
<span class='kw'>end</span></pre>
|
902
|
+
</td>
|
903
|
+
</tr>
|
904
|
+
</table>
|
905
|
+
</div>
|
906
|
+
|
907
|
+
<div class="method_details ">
|
908
|
+
<h3 class="signature " id="zip-class_method">
|
909
|
+
|
910
|
+
+ (<tt>Object</tt>) <strong>zip</strong>(sources, targets)
|
911
|
+
|
912
|
+
|
913
|
+
|
914
|
+
|
915
|
+
|
916
|
+
</h3><div class="docstring">
|
917
|
+
<div class="discussion">
|
918
|
+
|
919
|
+
<p>Combine list of sources and targets to source/target pairs.</p>
|
920
|
+
|
921
|
+
|
922
|
+
</div>
|
923
|
+
</div>
|
924
|
+
<div class="tags">
|
925
|
+
|
926
|
+
|
927
|
+
</div><table class="source_code">
|
928
|
+
<tr>
|
929
|
+
<td>
|
930
|
+
<pre class="lines">
|
931
|
+
|
932
|
+
|
933
|
+
432
|
934
|
+
433
|
935
|
+
434
|
936
|
+
435
|
937
|
+
436</pre>
|
938
|
+
</td>
|
939
|
+
<td>
|
940
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 432</span>
|
941
|
+
|
942
|
+
<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>
|
943
|
+
<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>
|
944
|
+
<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>
|
945
|
+
<span class='kw'>end</span>
|
946
|
+
<span class='kw'>end</span></pre>
|
947
|
+
</td>
|
948
|
+
</tr>
|
949
|
+
</table>
|
950
|
+
</div>
|
951
|
+
|
952
|
+
</div>
|
953
|
+
|
954
|
+
<div id="instance_method_details" class="method_details_list">
|
955
|
+
<h2>Instance Method Details</h2>
|
956
|
+
|
957
|
+
|
958
|
+
<div class="method_details first">
|
959
|
+
<h3 class="signature first" id="date_update?-instance_method">
|
960
|
+
|
961
|
+
- (<tt>Boolean</tt>) <strong>date_update?</strong>
|
962
|
+
|
963
|
+
|
964
|
+
|
965
|
+
|
966
|
+
|
967
|
+
</h3><div class="docstring">
|
968
|
+
<div class="discussion">
|
969
|
+
|
970
|
+
<p>Check for date (timestamp) based update needs.</p>
|
971
|
+
|
972
|
+
|
973
|
+
</div>
|
974
|
+
</div>
|
975
|
+
<div class="tags">
|
976
|
+
|
977
|
+
<p class="tag_title">Returns:</p>
|
978
|
+
<ul class="return">
|
979
|
+
|
980
|
+
<li>
|
981
|
+
|
982
|
+
|
983
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
984
|
+
|
985
|
+
|
986
|
+
|
987
|
+
</li>
|
988
|
+
|
989
|
+
</ul>
|
990
|
+
|
991
|
+
</div><table class="source_code">
|
992
|
+
<tr>
|
993
|
+
<td>
|
994
|
+
<pre class="lines">
|
995
|
+
|
996
|
+
|
997
|
+
492
|
998
|
+
493
|
999
|
+
494
|
1000
|
+
495
|
1001
|
+
496
|
1002
|
+
497
|
1003
|
+
498
|
1004
|
+
499
|
1005
|
+
500
|
1006
|
+
501
|
1007
|
+
502
|
1008
|
+
503
|
1009
|
+
504
|
1010
|
+
505
|
1011
|
+
506
|
1012
|
+
507
|
1013
|
+
508
|
1014
|
+
509
|
1015
|
+
510
|
1016
|
+
511
|
1017
|
+
512
|
1018
|
+
513
|
1019
|
+
514
|
1020
|
+
515
|
1021
|
+
516
|
1022
|
+
517
|
1023
|
+
518</pre>
|
1024
|
+
</td>
|
1025
|
+
<td>
|
1026
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 492</span>
|
1027
|
+
|
1028
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_date_update?'>date_update?</span>
|
1029
|
+
|
1030
|
+
<span class='comment'># Check if targets are missing.
|
1031
|
+
</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>
|
1032
|
+
<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>
|
1033
|
+
<span class='kw'>return</span> <span class='kw'>true</span>
|
1034
|
+
<span class='kw'>end</span>
|
1035
|
+
<span class='kw'>end</span>
|
1036
|
+
|
1037
|
+
<span class='comment'># Check if source(s) are newer than target(s).
|
1038
|
+
</span>
|
1039
|
+
<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>
|
1040
|
+
<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>
|
1041
|
+
<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>
|
1042
|
+
<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>
|
1043
|
+
<span class='kw'>end</span>
|
1044
|
+
<span class='kw'>end</span>
|
1045
|
+
|
1046
|
+
<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>
|
1047
|
+
<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>
|
1048
|
+
<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>
|
1049
|
+
<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>
|
1050
|
+
<span class='kw'>end</span>
|
1051
|
+
<span class='kw'>end</span>
|
1052
|
+
|
1053
|
+
<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>
|
1054
|
+
<span class='kw'>end</span></pre>
|
1055
|
+
</td>
|
1056
|
+
</tr>
|
1057
|
+
</table>
|
1058
|
+
</div>
|
1059
|
+
|
1060
|
+
<div class="method_details ">
|
1061
|
+
<h3 class="signature " id="fork-instance_method">
|
1062
|
+
|
1063
|
+
- (<tt>Object</tt>) <strong>fork</strong>(&blk)
|
1064
|
+
|
1065
|
+
|
1066
|
+
|
1067
|
+
|
1068
|
+
|
1069
|
+
</h3><div class="docstring">
|
1070
|
+
<div class="discussion">
|
1071
|
+
|
1072
|
+
<p>Execute commands (in block) in parallel.</p>
|
1073
|
+
|
1074
|
+
|
1075
|
+
</div>
|
1076
|
+
</div>
|
1077
|
+
<div class="tags">
|
1078
|
+
|
1079
|
+
|
1080
|
+
</div><table class="source_code">
|
1081
|
+
<tr>
|
1082
|
+
<td>
|
1083
|
+
<pre class="lines">
|
1084
|
+
|
1085
|
+
|
1086
|
+
585
|
1087
|
+
586
|
1088
|
+
587
|
1089
|
+
588
|
1090
|
+
589
|
1091
|
+
590</pre>
|
1092
|
+
</td>
|
1093
|
+
<td>
|
1094
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 585</span>
|
1095
|
+
|
1096
|
+
<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>
|
1097
|
+
<span class='id identifier rubyid_host_in'>host_in</span>
|
1098
|
+
<span class='id identifier rubyid_instance_eval'>instance_eval</span> <span class='op'>&</span><span class='id identifier rubyid_blk'>blk</span>
|
1099
|
+
<span class='id identifier rubyid_host_out'>host_out</span>
|
1100
|
+
<span class='id identifier rubyid_parallel_run'>parallel_run</span>
|
1101
|
+
<span class='kw'>end</span></pre>
|
1102
|
+
</td>
|
1103
|
+
</tr>
|
1104
|
+
</table>
|
1105
|
+
</div>
|
1106
|
+
|
1107
|
+
<div class="method_details ">
|
1108
|
+
<h3 class="signature " id="mark_update?-instance_method">
|
1109
|
+
|
1110
|
+
- (<tt>Boolean</tt>) <strong>mark_update?</strong>
|
1111
|
+
|
1112
|
+
|
1113
|
+
|
1114
|
+
|
1115
|
+
|
1116
|
+
</h3><div class="docstring">
|
1117
|
+
<div class="discussion">
|
1118
|
+
|
1119
|
+
<p>Check for mark (checksum) based update needs.</p>
|
1120
|
+
|
1121
|
+
|
1122
|
+
</div>
|
1123
|
+
</div>
|
1124
|
+
<div class="tags">
|
1125
|
+
|
1126
|
+
<p class="tag_title">Returns:</p>
|
1127
|
+
<ul class="return">
|
1128
|
+
|
1129
|
+
<li>
|
1130
|
+
|
1131
|
+
|
1132
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
1133
|
+
|
1134
|
+
|
1135
|
+
|
1136
|
+
</li>
|
1137
|
+
|
1138
|
+
</ul>
|
1139
|
+
|
1140
|
+
</div><table class="source_code">
|
1141
|
+
<tr>
|
1142
|
+
<td>
|
1143
|
+
<pre class="lines">
|
1144
|
+
|
1145
|
+
|
1146
|
+
522
|
1147
|
+
523
|
1148
|
+
524
|
1149
|
+
525
|
1150
|
+
526
|
1151
|
+
527
|
1152
|
+
528
|
1153
|
+
529
|
1154
|
+
530
|
1155
|
+
531
|
1156
|
+
532
|
1157
|
+
533
|
1158
|
+
534
|
1159
|
+
535
|
1160
|
+
536
|
1161
|
+
537
|
1162
|
+
538
|
1163
|
+
539
|
1164
|
+
540
|
1165
|
+
541
|
1166
|
+
542
|
1167
|
+
543
|
1168
|
+
544
|
1169
|
+
545
|
1170
|
+
546
|
1171
|
+
547
|
1172
|
+
548
|
1173
|
+
549</pre>
|
1174
|
+
</td>
|
1175
|
+
<td>
|
1176
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 522</span>
|
1177
|
+
|
1178
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_mark_update?'>mark_update?</span>
|
1179
|
+
|
1180
|
+
<span class='kw'>unless</span> <span class='id identifier rubyid_date_update?'>date_update?</span>
|
1181
|
+
<span class='kw'>return</span> <span class='kw'>false</span>
|
1182
|
+
<span class='kw'>end</span>
|
1183
|
+
|
1184
|
+
<span class='comment'># Check if targets are missing.
|
1185
|
+
</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>
|
1186
|
+
<span class='kw'>return</span> <span class='kw'>true</span>
|
1187
|
+
<span class='kw'>end</span>
|
1188
|
+
|
1189
|
+
<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>
|
1190
|
+
<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>
|
1191
|
+
<span class='id identifier rubyid_build'>build</span>
|
1192
|
+
<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>
|
1193
|
+
|
1194
|
+
<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>
|
1195
|
+
<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>
|
1196
|
+
<span class='id identifier rubyid_exit'>exit</span> <span class='kw'>false</span>
|
1197
|
+
<span class='kw'>end</span>
|
1198
|
+
|
1199
|
+
<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>
|
1200
|
+
<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>
|
1201
|
+
<span class='kw'>return</span> <span class='kw'>false</span>
|
1202
|
+
<span class='kw'>end</span>
|
1203
|
+
|
1204
|
+
<span class='kw'>true</span>
|
1205
|
+
<span class='kw'>end</span></pre>
|
1206
|
+
</td>
|
1207
|
+
</tr>
|
1208
|
+
</table>
|
1209
|
+
</div>
|
1210
|
+
|
1211
|
+
<div class="method_details ">
|
1212
|
+
<h3 class="signature " id="rbdef-instance_method">
|
1213
|
+
|
1214
|
+
- (<tt>Object</tt>) <strong>rbdef</strong>(desc = nil, &cmd)
|
1215
|
+
|
1216
|
+
|
1217
|
+
|
1218
|
+
|
1219
|
+
|
1220
|
+
</h3><div class="docstring">
|
1221
|
+
<div class="discussion">
|
1222
|
+
|
1223
|
+
<p>Define and register Ruby command.</p>
|
1224
|
+
|
1225
|
+
|
1226
|
+
</div>
|
1227
|
+
</div>
|
1228
|
+
<div class="tags">
|
1229
|
+
|
1230
|
+
|
1231
|
+
</div><table class="source_code">
|
1232
|
+
<tr>
|
1233
|
+
<td>
|
1234
|
+
<pre class="lines">
|
1235
|
+
|
1236
|
+
|
1237
|
+
579
|
1238
|
+
580
|
1239
|
+
581
|
1240
|
+
582</pre>
|
1241
|
+
</td>
|
1242
|
+
<td>
|
1243
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 579</span>
|
1244
|
+
|
1245
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_rbdef'>rbdef</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>
|
1246
|
+
<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>
|
1247
|
+
<span class='id identifier rubyid_rb'>rb</span><span class='period'>.</span><span class='id identifier rubyid_use'>use</span>
|
1248
|
+
<span class='kw'>end</span></pre>
|
1249
|
+
</td>
|
1250
|
+
</tr>
|
1251
|
+
</table>
|
1252
|
+
</div>
|
1253
|
+
|
1254
|
+
<div class="method_details ">
|
1255
|
+
<h3 class="signature " id="rbrun-instance_method">
|
1256
|
+
|
1257
|
+
- (<tt>Object</tt>) <strong>rbrun</strong>(desc = nil, &cmd)
|
1258
|
+
|
1259
|
+
|
1260
|
+
|
1261
|
+
|
1262
|
+
|
1263
|
+
</h3><div class="docstring">
|
1264
|
+
<div class="discussion">
|
1265
|
+
|
1266
|
+
<p>Define and run Ruby command.</p>
|
1267
|
+
|
1268
|
+
|
1269
|
+
</div>
|
1270
|
+
</div>
|
1271
|
+
<div class="tags">
|
1272
|
+
|
1273
|
+
|
1274
|
+
</div><table class="source_code">
|
1275
|
+
<tr>
|
1276
|
+
<td>
|
1277
|
+
<pre class="lines">
|
1278
|
+
|
1279
|
+
|
1280
|
+
574
|
1281
|
+
575
|
1282
|
+
576</pre>
|
1283
|
+
</td>
|
1284
|
+
<td>
|
1285
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 574</span>
|
1286
|
+
|
1287
|
+
<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>
|
1288
|
+
<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>
|
1289
|
+
<span class='kw'>end</span></pre>
|
1290
|
+
</td>
|
1291
|
+
</tr>
|
1292
|
+
</table>
|
1293
|
+
</div>
|
1294
|
+
|
1295
|
+
<div class="method_details ">
|
1296
|
+
<h3 class="signature " id="run-instance_method">
|
1297
|
+
|
1298
|
+
- (<tt>Object</tt>) <strong>run</strong>
|
1299
|
+
|
1300
|
+
|
1301
|
+
|
1302
|
+
|
1303
|
+
|
1304
|
+
</h3><div class="docstring">
|
1305
|
+
<div class="discussion">
|
1306
|
+
|
1307
|
+
<p>Run Build Action and capture status.</p>
|
1308
|
+
|
1309
|
+
|
1310
|
+
</div>
|
1311
|
+
</div>
|
1312
|
+
<div class="tags">
|
1313
|
+
|
1314
|
+
|
1315
|
+
</div><table class="source_code">
|
1316
|
+
<tr>
|
1317
|
+
<td>
|
1318
|
+
<pre class="lines">
|
1319
|
+
|
1320
|
+
|
1321
|
+
475
|
1322
|
+
476
|
1323
|
+
477
|
1324
|
+
478
|
1325
|
+
479
|
1326
|
+
480
|
1327
|
+
481
|
1328
|
+
482</pre>
|
1329
|
+
</td>
|
1330
|
+
<td>
|
1331
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 475</span>
|
1332
|
+
|
1333
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_run'>run</span>
|
1334
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_update?'>update?</span>
|
1335
|
+
<span class='id identifier rubyid_build'>build</span>
|
1336
|
+
<span class='kw'>else</span>
|
1337
|
+
<span class='ivar'>@status</span> <span class='op'>=</span> <span class='symbol'>:success</span>
|
1338
|
+
<span class='kw'>end</span>
|
1339
|
+
<span class='kw'>self</span>
|
1340
|
+
<span class='kw'>end</span></pre>
|
1341
|
+
</td>
|
1342
|
+
</tr>
|
1343
|
+
</table>
|
1344
|
+
</div>
|
1345
|
+
|
1346
|
+
<div class="method_details ">
|
1347
|
+
<h3 class="signature " id="setup-instance_method">
|
1348
|
+
|
1349
|
+
- (<tt>Object</tt>) <strong>setup</strong>
|
1350
|
+
|
1351
|
+
|
1352
|
+
|
1353
|
+
|
1354
|
+
|
1355
|
+
</h3><div class="docstring">
|
1356
|
+
<div class="discussion">
|
1357
|
+
|
1358
|
+
<p>Defined by users.</p>
|
1359
|
+
|
1360
|
+
|
1361
|
+
</div>
|
1362
|
+
</div>
|
1363
|
+
<div class="tags">
|
1364
|
+
|
1365
|
+
|
1366
|
+
</div><table class="source_code">
|
1367
|
+
<tr>
|
1368
|
+
<td>
|
1369
|
+
<pre class="lines">
|
1370
|
+
|
1371
|
+
|
1372
|
+
470
|
1373
|
+
471</pre>
|
1374
|
+
</td>
|
1375
|
+
<td>
|
1376
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 470</span>
|
1377
|
+
|
1378
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_setup'>setup</span>
|
1379
|
+
<span class='kw'>end</span></pre>
|
1380
|
+
</td>
|
1381
|
+
</tr>
|
1382
|
+
</table>
|
1383
|
+
</div>
|
1384
|
+
|
1385
|
+
<div class="method_details ">
|
1386
|
+
<h3 class="signature " id="shdef-instance_method">
|
1387
|
+
|
1388
|
+
- (<tt>Object</tt>) <strong>shdef</strong>(cmd)
|
1389
|
+
|
1390
|
+
|
1391
|
+
|
1392
|
+
|
1393
|
+
|
1394
|
+
</h3><div class="docstring">
|
1395
|
+
<div class="discussion">
|
1396
|
+
|
1397
|
+
<p>Define and register Shell command.</p>
|
1398
|
+
|
1399
|
+
|
1400
|
+
</div>
|
1401
|
+
</div>
|
1402
|
+
<div class="tags">
|
1403
|
+
|
1404
|
+
|
1405
|
+
</div><table class="source_code">
|
1406
|
+
<tr>
|
1407
|
+
<td>
|
1408
|
+
<pre class="lines">
|
1409
|
+
|
1410
|
+
|
1411
|
+
568
|
1412
|
+
569
|
1413
|
+
570
|
1414
|
+
571</pre>
|
1415
|
+
</td>
|
1416
|
+
<td>
|
1417
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 568</span>
|
1418
|
+
|
1419
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_shdef'>shdef</span><span class='lparen'>(</span> <span class='id identifier rubyid_cmd'>cmd</span> <span class='rparen'>)</span>
|
1420
|
+
<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>
|
1421
|
+
<span class='id identifier rubyid_sh'>sh</span><span class='period'>.</span><span class='id identifier rubyid_use'>use</span>
|
1422
|
+
<span class='kw'>end</span></pre>
|
1423
|
+
</td>
|
1424
|
+
</tr>
|
1425
|
+
</table>
|
1426
|
+
</div>
|
1427
|
+
|
1428
|
+
<div class="method_details ">
|
1429
|
+
<h3 class="signature " id="shrun-instance_method">
|
1430
|
+
|
1431
|
+
- (<tt>Object</tt>) <strong>shrun</strong>(cmd)
|
1432
|
+
|
1433
|
+
|
1434
|
+
|
1435
|
+
|
1436
|
+
|
1437
|
+
</h3><div class="docstring">
|
1438
|
+
<div class="discussion">
|
1439
|
+
|
1440
|
+
<p>Define and run Shell command.</p>
|
1441
|
+
|
1442
|
+
|
1443
|
+
</div>
|
1444
|
+
</div>
|
1445
|
+
<div class="tags">
|
1446
|
+
|
1447
|
+
|
1448
|
+
</div><table class="source_code">
|
1449
|
+
<tr>
|
1450
|
+
<td>
|
1451
|
+
<pre class="lines">
|
1452
|
+
|
1453
|
+
|
1454
|
+
563
|
1455
|
+
564
|
1456
|
+
565</pre>
|
1457
|
+
</td>
|
1458
|
+
<td>
|
1459
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 563</span>
|
1460
|
+
|
1461
|
+
<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>
|
1462
|
+
<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>
|
1463
|
+
<span class='kw'>end</span></pre>
|
1464
|
+
</td>
|
1465
|
+
</tr>
|
1466
|
+
</table>
|
1467
|
+
</div>
|
1468
|
+
|
1469
|
+
<div class="method_details ">
|
1470
|
+
<h3 class="signature " id="source-instance_method">
|
1471
|
+
|
1472
|
+
- (<tt>Object</tt>) <strong>source</strong>
|
1473
|
+
|
1474
|
+
|
1475
|
+
|
1476
|
+
|
1477
|
+
|
1478
|
+
</h3><div class="docstring">
|
1479
|
+
<div class="discussion">
|
1480
|
+
|
1481
|
+
<p>Main (first) source file.</p>
|
1482
|
+
|
1483
|
+
|
1484
|
+
</div>
|
1485
|
+
</div>
|
1486
|
+
<div class="tags">
|
1487
|
+
|
1488
|
+
|
1489
|
+
</div><table class="source_code">
|
1490
|
+
<tr>
|
1491
|
+
<td>
|
1492
|
+
<pre class="lines">
|
1493
|
+
|
1494
|
+
|
1495
|
+
553
|
1496
|
+
554
|
1497
|
+
555</pre>
|
1498
|
+
</td>
|
1499
|
+
<td>
|
1500
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 553</span>
|
1501
|
+
|
1502
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_source'>source</span>
|
1503
|
+
<span class='ivar'>@sources</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span>
|
1504
|
+
<span class='kw'>end</span></pre>
|
1505
|
+
</td>
|
1506
|
+
</tr>
|
1507
|
+
</table>
|
1508
|
+
</div>
|
1509
|
+
|
1510
|
+
<div class="method_details ">
|
1511
|
+
<h3 class="signature " id="target-instance_method">
|
1512
|
+
|
1513
|
+
- (<tt>Object</tt>) <strong>target</strong>
|
1514
|
+
|
1515
|
+
|
1516
|
+
|
1517
|
+
|
1518
|
+
|
1519
|
+
</h3><div class="docstring">
|
1520
|
+
<div class="discussion">
|
1521
|
+
|
1522
|
+
<p>Main (first) target file.</p>
|
1523
|
+
|
1524
|
+
|
1525
|
+
</div>
|
1526
|
+
</div>
|
1527
|
+
<div class="tags">
|
1528
|
+
|
1529
|
+
|
1530
|
+
</div><table class="source_code">
|
1531
|
+
<tr>
|
1532
|
+
<td>
|
1533
|
+
<pre class="lines">
|
1534
|
+
|
1535
|
+
|
1536
|
+
558
|
1537
|
+
559
|
1538
|
+
560</pre>
|
1539
|
+
</td>
|
1540
|
+
<td>
|
1541
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 558</span>
|
1542
|
+
|
1543
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_target'>target</span>
|
1544
|
+
<span class='ivar'>@targets</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span>
|
1545
|
+
<span class='kw'>end</span></pre>
|
1546
|
+
</td>
|
1547
|
+
</tr>
|
1548
|
+
</table>
|
1549
|
+
</div>
|
1550
|
+
|
1551
|
+
<div class="method_details ">
|
1552
|
+
<h3 class="signature " id="update?-instance_method">
|
1553
|
+
|
1554
|
+
- (<tt>Boolean</tt>) <strong>update?</strong>
|
1555
|
+
|
1556
|
+
|
1557
|
+
|
1558
|
+
|
1559
|
+
|
1560
|
+
</h3><div class="docstring">
|
1561
|
+
<div class="discussion">
|
1562
|
+
|
1563
|
+
<p>Default update.</p>
|
1564
|
+
|
1565
|
+
|
1566
|
+
</div>
|
1567
|
+
</div>
|
1568
|
+
<div class="tags">
|
1569
|
+
|
1570
|
+
<p class="tag_title">Returns:</p>
|
1571
|
+
<ul class="return">
|
1572
|
+
|
1573
|
+
<li>
|
1574
|
+
|
1575
|
+
|
1576
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
1577
|
+
|
1578
|
+
|
1579
|
+
|
1580
|
+
</li>
|
1581
|
+
|
1582
|
+
</ul>
|
1583
|
+
|
1584
|
+
</div><table class="source_code">
|
1585
|
+
<tr>
|
1586
|
+
<td>
|
1587
|
+
<pre class="lines">
|
1588
|
+
|
1589
|
+
|
1590
|
+
486
|
1591
|
+
487
|
1592
|
+
488</pre>
|
1593
|
+
</td>
|
1594
|
+
<td>
|
1595
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 486</span>
|
1596
|
+
|
1597
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_update?'>update?</span>
|
1598
|
+
<span class='kw'>true</span>
|
1599
|
+
<span class='kw'>end</span></pre>
|
1600
|
+
</td>
|
1601
|
+
</tr>
|
1602
|
+
</table>
|
1603
|
+
</div>
|
1604
|
+
|
1605
|
+
<div class="method_details ">
|
1606
|
+
<h3 class="signature " id="walk-instance_method">
|
1607
|
+
|
1608
|
+
- (<tt>Object</tt>) <strong>walk</strong>(&blk)
|
1609
|
+
|
1610
|
+
|
1611
|
+
|
1612
|
+
|
1613
|
+
|
1614
|
+
</h3><div class="docstring">
|
1615
|
+
<div class="discussion">
|
1616
|
+
|
1617
|
+
<p>Execute commands (in block) in series.</p>
|
1618
|
+
|
1619
|
+
|
1620
|
+
</div>
|
1621
|
+
</div>
|
1622
|
+
<div class="tags">
|
1623
|
+
|
1624
|
+
|
1625
|
+
</div><table class="source_code">
|
1626
|
+
<tr>
|
1627
|
+
<td>
|
1628
|
+
<pre class="lines">
|
1629
|
+
|
1630
|
+
|
1631
|
+
593
|
1632
|
+
594
|
1633
|
+
595
|
1634
|
+
596
|
1635
|
+
597
|
1636
|
+
598</pre>
|
1637
|
+
</td>
|
1638
|
+
<td>
|
1639
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 593</span>
|
1640
|
+
|
1641
|
+
<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>
|
1642
|
+
<span class='id identifier rubyid_host_in'>host_in</span>
|
1643
|
+
<span class='id identifier rubyid_instance_eval'>instance_eval</span> <span class='op'>&</span><span class='id identifier rubyid_blk'>blk</span>
|
1644
|
+
<span class='id identifier rubyid_host_out'>host_out</span>
|
1645
|
+
<span class='id identifier rubyid_serial_run'>serial_run</span>
|
1646
|
+
<span class='kw'>end</span></pre>
|
1647
|
+
</td>
|
1648
|
+
</tr>
|
1649
|
+
</table>
|
1650
|
+
</div>
|
1651
|
+
|
1652
|
+
</div>
|
1653
|
+
|
1654
|
+
</div>
|
1655
|
+
|
1656
|
+
<div id="footer">
|
1657
|
+
Generated on Fri Jun 29 10:04:07 2018 by
|
1658
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1659
|
+
0.8.7.6 (ruby-2.3.3).
|
1660
|
+
</div>
|
1661
|
+
|
1662
|
+
</body>
|
1663
|
+
</html>
|