rubu 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.rdoc +3 -0
- data/README.rdoc +236 -8
- data/doc/Array.html +103 -38
- data/doc/Rubu.html +2 -2
- data/doc/Rubu/AgedStep.html +275 -0
- data/doc/Rubu/AlwaysStep.html +275 -0
- data/doc/Rubu/Fork.html +20 -20
- data/doc/Rubu/Info.html +39 -13
- data/doc/Rubu/Mark.html +318 -110
- data/doc/Rubu/MarkStep.html +275 -0
- data/doc/Rubu/Move.html +937 -0
- data/doc/Rubu/MoveStyles.html +403 -0
- data/doc/Rubu/Order.html +39 -13
- data/doc/Rubu/RubyCommand.html +39 -26
- data/doc/Rubu/ShellCommand.html +37 -24
- data/doc/Rubu/State.html +135 -38
- data/doc/Rubu/Step.html +1859 -0
- data/doc/Rubu/StepAged.html +279 -0
- data/doc/Rubu/StepAlways.html +279 -0
- data/doc/Rubu/StepMark.html +279 -0
- data/doc/Rubu/Trail.html +1022 -0
- data/doc/Rubu/TrailRun.html +377 -0
- data/doc/Rubu/Var.html +39 -13
- data/doc/Rubu/Walk.html +16 -16
- data/doc/_index.html +51 -59
- data/doc/class_list.html +1 -1
- data/doc/file.CHANGELOG.html +5 -2
- data/doc/file.README.html +255 -8
- data/doc/index.html +255 -8
- data/doc/method_list.html +88 -88
- data/doc/top-level-namespace.html +1 -1
- data/example/bin/rubu_example +49 -51
- data/example/build/hello +0 -0
- data/example/build/hello_world.o +0 -0
- data/example/build/world.c +6 -0
- data/example/build/world.o +0 -0
- data/lib/rubu.rb +168 -85
- data/lib/version.rb +1 -1
- metadata +17 -2
@@ -0,0 +1,279 @@
|
|
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::StepMark
|
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/StepMark.html";
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="../_index.html">Index (S)</a> »
|
35
|
+
<span class='title'><span class='object_link'><a href="../Rubu.html" title="Rubu (module)">Rubu</a></span></span>
|
36
|
+
»
|
37
|
+
<span class="title">StepMark</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::StepMark
|
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="Step.html" title="Rubu::Step (class)">Step</a></span></span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next"><span class='object_link'><a href="Move.html" title="Rubu::Move (class)">Move</a></span></li>
|
82
|
+
|
83
|
+
<li class="next"><span class='object_link'><a href="Step.html" title="Rubu::Step (class)">Step</a></span></li>
|
84
|
+
|
85
|
+
<li class="next">Rubu::StepMark</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>Mark (checksum) based Step.</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="Step.html" title="Rubu::Step (class)">Step</a></span></h3>
|
126
|
+
<p class="inherited"><span class='object_link'><a href="Step.html#sources-instance_method" title="Rubu::Step#sources (method)">#sources</a></span>, <span class='object_link'><a href="Step.html#targets-instance_method" title="Rubu::Step#targets (method)">#targets</a></span></p>
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Move.html" title="Rubu::Move (class)">Move</a></span></h3>
|
131
|
+
<p class="inherited"><span class='object_link'><a href="Move.html#errmsg-instance_method" title="Rubu::Move#errmsg (method)">#errmsg</a></span>, <span class='object_link'><a href="Move.html#output-instance_method" title="Rubu::Move#output (method)">#output</a></span>, <span class='object_link'><a href="Move.html#status-instance_method" title="Rubu::Move#status (method)">#status</a></span>, <span class='object_link'><a href="Move.html#subs-instance_method" title="Rubu::Move#subs (method)">#subs</a></span></p>
|
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'>
|
160
|
+
<p>Update if target generated from Step source is different from old target.</p>
|
161
|
+
</div></span>
|
162
|
+
|
163
|
+
</li>
|
164
|
+
|
165
|
+
|
166
|
+
</ul>
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Step.html" title="Rubu::Step (class)">Step</a></span></h3>
|
179
|
+
<p class="inherited"><span class='object_link'><a href="Step.html#date_update%3F-instance_method" title="Rubu::Step#date_update? (method)">#date_update?</a></span>, <span class='object_link'><a href="Step.html#fork-instance_method" title="Rubu::Step#fork (method)">#fork</a></span>, <span class='object_link'><a href="Step.html#initialize-instance_method" title="Rubu::Step#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="Step.html#mark_update%3F-instance_method" title="Rubu::Step#mark_update? (method)">#mark_update?</a></span>, <span class='object_link'><a href="Step.html#rbrun-instance_method" title="Rubu::Step#rbrun (method)">#rbrun</a></span>, <span class='object_link'><a href="Step.html#rbuse-instance_method" title="Rubu::Step#rbuse (method)">#rbuse</a></span>, <span class='object_link'><a href="Step.html#run-instance_method" title="Rubu::Step#run (method)">#run</a></span>, <span class='object_link'><a href="Step.html#setup-instance_method" title="Rubu::Step#setup (method)">#setup</a></span>, <span class='object_link'><a href="Step.html#shrun-instance_method" title="Rubu::Step#shrun (method)">#shrun</a></span>, <span class='object_link'><a href="Step.html#shuse-instance_method" title="Rubu::Step#shuse (method)">#shuse</a></span>, <span class='object_link'><a href="Step.html#source-instance_method" title="Rubu::Step#source (method)">#source</a></span>, <span class='object_link'><a href="Step.html#target-instance_method" title="Rubu::Step#target (method)">#target</a></span>, <span class='object_link'><a href="Step.html#use-class_method" title="Rubu::Step.use (method)">use</a></span>, <span class='object_link'><a href="Step.html#usezip-class_method" title="Rubu::Step.usezip (method)">usezip</a></span>, <span class='object_link'><a href="Step.html#walk-instance_method" title="Rubu::Step#walk (method)">#walk</a></span>, <span class='object_link'><a href="Step.html#zip-class_method" title="Rubu::Step.zip (method)">zip</a></span></p>
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="MoveStyles.html" title="Rubu::MoveStyles (module)">MoveStyles</a></span></h3>
|
190
|
+
<p class="inherited"><span class='object_link'><a href="MoveStyles.html#parallel_run-instance_method" title="Rubu::MoveStyles#parallel_run (method)">#parallel_run</a></span>, <span class='object_link'><a href="MoveStyles.html#serial_run-instance_method" title="Rubu::MoveStyles#serial_run (method)">#serial_run</a></span></p>
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Move.html" title="Rubu::Move (class)">Move</a></span></h3>
|
201
|
+
<p class="inherited"><span class='object_link'><a href="Move.html#display-instance_method" title="Rubu::Move#display (method)">#display</a></span>, <span class='object_link'><a href="Move.html#error-instance_method" title="Rubu::Move#error (method)">#error</a></span>, <span class='object_link'><a href="Move.html#host-instance_method" title="Rubu::Move#host (method)">#host</a></span>, <span class='object_link'><a href="Move.html#host_in-instance_method" title="Rubu::Move#host_in (method)">#host_in</a></span>, <span class='object_link'><a href="Move.html#host_out-instance_method" title="Rubu::Move#host_out (method)">#host_out</a></span>, <span class='object_link'><a href="Move.html#initialize-instance_method" title="Rubu::Move#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="Move.html#use-instance_method" title="Rubu::Move#use (method)">#use</a></span></p>
|
202
|
+
<div id="constructor_details" class="method_details_list">
|
203
|
+
<h2>Constructor Details</h2>
|
204
|
+
|
205
|
+
<p class="notice">This class inherits a constructor from <span class='object_link'><a href="Step.html#initialize-instance_method" title="Rubu::Step#initialize (method)">Rubu::Step</a></span></p>
|
206
|
+
|
207
|
+
</div>
|
208
|
+
|
209
|
+
|
210
|
+
<div id="instance_method_details" class="method_details_list">
|
211
|
+
<h2>Instance Method Details</h2>
|
212
|
+
|
213
|
+
|
214
|
+
<div class="method_details first">
|
215
|
+
<h3 class="signature first" id="update?-instance_method">
|
216
|
+
|
217
|
+
- (<tt>Boolean</tt>) <strong>update?</strong>
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
</h3><div class="docstring">
|
224
|
+
<div class="discussion">
|
225
|
+
|
226
|
+
<p>Update if target generated from Step source is different from old target.</p>
|
227
|
+
|
228
|
+
|
229
|
+
</div>
|
230
|
+
</div>
|
231
|
+
<div class="tags">
|
232
|
+
|
233
|
+
<p class="tag_title">Returns:</p>
|
234
|
+
<ul class="return">
|
235
|
+
|
236
|
+
<li>
|
237
|
+
|
238
|
+
|
239
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
</li>
|
244
|
+
|
245
|
+
</ul>
|
246
|
+
|
247
|
+
</div><table class="source_code">
|
248
|
+
<tr>
|
249
|
+
<td>
|
250
|
+
<pre class="lines">
|
251
|
+
|
252
|
+
|
253
|
+
679
|
254
|
+
680
|
255
|
+
681</pre>
|
256
|
+
</td>
|
257
|
+
<td>
|
258
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 679</span>
|
259
|
+
|
260
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_update?'>update?</span>
|
261
|
+
<span class='id identifier rubyid_mark_update?'>mark_update?</span>
|
262
|
+
<span class='kw'>end</span></pre>
|
263
|
+
</td>
|
264
|
+
</tr>
|
265
|
+
</table>
|
266
|
+
</div>
|
267
|
+
|
268
|
+
</div>
|
269
|
+
|
270
|
+
</div>
|
271
|
+
|
272
|
+
<div id="footer">
|
273
|
+
Generated on Sun Jul 1 17:48:17 2018 by
|
274
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
275
|
+
0.8.7.6 (ruby-2.3.3).
|
276
|
+
</div>
|
277
|
+
|
278
|
+
</body>
|
279
|
+
</html>
|
data/doc/Rubu/Trail.html
ADDED
@@ -0,0 +1,1022 @@
|
|
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::Trail
|
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/Trail.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 (T)</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">Trail</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::Trail
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
<dt class="r1">Inherits:</dt>
|
75
|
+
<dd class="r1">
|
76
|
+
<span class="inheritName"><span class='object_link'><a href="Move.html" title="Rubu::Move (class)">Move</a></span></span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next"><span class='object_link'><a href="Move.html" title="Rubu::Move (class)">Move</a></span></li>
|
82
|
+
|
83
|
+
<li class="next">Rubu::Trail</li>
|
84
|
+
|
85
|
+
</ul>
|
86
|
+
<a href="#" class="inheritanceTree">show all</a>
|
87
|
+
|
88
|
+
</dd>
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
<dt class="r2">Includes:</dt>
|
96
|
+
<dd class="r2"><span class='object_link'><a href="MoveStyles.html" title="Rubu::MoveStyles (module)">MoveStyles</a></span></dd>
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
<dt class="r1 last">Defined in:</dt>
|
103
|
+
<dd class="r1 last">lib/rubu.rb</dd>
|
104
|
+
|
105
|
+
</dl>
|
106
|
+
<div class="clear"></div>
|
107
|
+
|
108
|
+
<h2>Overview</h2><div class="docstring">
|
109
|
+
<div class="discussion">
|
110
|
+
|
111
|
+
<p>Trail with name. Trail is a collection of Steps and/or Trails.</p>
|
112
|
+
|
113
|
+
|
114
|
+
</div>
|
115
|
+
</div>
|
116
|
+
<div class="tags">
|
117
|
+
|
118
|
+
|
119
|
+
</div><div id="subclasses">
|
120
|
+
<h2>Direct Known Subclasses</h2>
|
121
|
+
<p class="children"><span class='object_link'><a href="Fork.html" title="Rubu::Fork (class)">Fork</a></span>, <span class='object_link'><a href="Walk.html" title="Rubu::Walk (class)">Walk</a></span></p>
|
122
|
+
</div>
|
123
|
+
|
124
|
+
<h2>Constant Summary</h2>
|
125
|
+
|
126
|
+
<dl class="constants">
|
127
|
+
|
128
|
+
<dt id="trails-classvariable" class="">@@trails =
|
129
|
+
<div class="docstring">
|
130
|
+
<div class="discussion">
|
131
|
+
|
132
|
+
<p>Trail hash.</p>
|
133
|
+
|
134
|
+
|
135
|
+
</div>
|
136
|
+
</div>
|
137
|
+
<div class="tags">
|
138
|
+
|
139
|
+
|
140
|
+
</div>
|
141
|
+
</dt>
|
142
|
+
<dd><pre class="code"><span class='lbrace'>{</span><span class='rbrace'>}</span></pre></dd>
|
143
|
+
|
144
|
+
</dl>
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
151
|
+
<ul class="summary">
|
152
|
+
|
153
|
+
<li class="public ">
|
154
|
+
<span class="summary_signature">
|
155
|
+
|
156
|
+
<a href="#name-instance_method" title="#name (instance method)">- (Object) <strong>name</strong> </a>
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
</span>
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
<span class="note title readonly">readonly</span>
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
<span class="summary_desc"><div class='inline'>
|
176
|
+
<p>Returns the value of attribute name.</p>
|
177
|
+
</div></span>
|
178
|
+
|
179
|
+
</li>
|
180
|
+
|
181
|
+
|
182
|
+
</ul>
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Move.html" title="Rubu::Move (class)">Move</a></span></h3>
|
189
|
+
<p class="inherited"><span class='object_link'><a href="Move.html#errmsg-instance_method" title="Rubu::Move#errmsg (method)">#errmsg</a></span>, <span class='object_link'><a href="Move.html#output-instance_method" title="Rubu::Move#output (method)">#output</a></span>, <span class='object_link'><a href="Move.html#status-instance_method" title="Rubu::Move#status (method)">#status</a></span>, <span class='object_link'><a href="Move.html#subs-instance_method" title="Rubu::Move#subs (method)">#subs</a></span></p>
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
<h2>
|
194
|
+
Class Method Summary
|
195
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
196
|
+
</h2>
|
197
|
+
|
198
|
+
<ul class="summary">
|
199
|
+
|
200
|
+
<li class="public ">
|
201
|
+
<span class="summary_signature">
|
202
|
+
|
203
|
+
<a href="#%5B%5D-class_method" title="[] (class method)">+ (Object) <strong>[]</strong>(name) </a>
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
</span>
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
<span class="summary_desc"><div class='inline'>
|
218
|
+
<p>Reference Trail by name.</p>
|
219
|
+
</div></span>
|
220
|
+
|
221
|
+
</li>
|
222
|
+
|
223
|
+
|
224
|
+
<li class="public ">
|
225
|
+
<span class="summary_signature">
|
226
|
+
|
227
|
+
<a href="#form-class_method" title="form (class method)">+ (Object) <strong>form</strong>(name = nil, &blk) </a>
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
</span>
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
<span class="summary_desc"><div class='inline'>
|
242
|
+
<p>Replacement (alias) for new method.</p>
|
243
|
+
</div></span>
|
244
|
+
|
245
|
+
</li>
|
246
|
+
|
247
|
+
|
248
|
+
<li class="public ">
|
249
|
+
<span class="summary_signature">
|
250
|
+
|
251
|
+
<a href="#load_setup-class_method" title="load_setup (class method)">+ (Object) <strong>load_setup</strong>(setup_file) </a>
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
</span>
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
<span class="summary_desc"><div class='inline'>
|
266
|
+
<p>Load a setup file.</p>
|
267
|
+
</div></span>
|
268
|
+
|
269
|
+
</li>
|
270
|
+
|
271
|
+
|
272
|
+
<li class="public ">
|
273
|
+
<span class="summary_signature">
|
274
|
+
|
275
|
+
<a href="#run-class_method" title="run (class method)">+ (Object) <strong>run</strong>(trails = 'default') </a>
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
</span>
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
<span class="summary_desc"><div class='inline'>
|
290
|
+
<p>Run selected trail(s).</p>
|
291
|
+
</div></span>
|
292
|
+
|
293
|
+
</li>
|
294
|
+
|
295
|
+
|
296
|
+
<li class="public ">
|
297
|
+
<span class="summary_signature">
|
298
|
+
|
299
|
+
<a href="#setup-class_method" title="setup (class method)">+ (Object) <strong>setup</strong>(spec) </a>
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
</span>
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
<span class="summary_desc"><div class='inline'>
|
314
|
+
<p>Apply configuration options and command parameters, if any, to Rubu.</p>
|
315
|
+
</div></span>
|
316
|
+
|
317
|
+
</li>
|
318
|
+
|
319
|
+
|
320
|
+
</ul>
|
321
|
+
|
322
|
+
<h2>
|
323
|
+
Instance Method Summary
|
324
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
325
|
+
</h2>
|
326
|
+
|
327
|
+
<ul class="summary">
|
328
|
+
|
329
|
+
<li class="public ">
|
330
|
+
<span class="summary_signature">
|
331
|
+
|
332
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Trail) <strong>initialize</strong>(name = nil, &blk) </a>
|
333
|
+
|
334
|
+
|
335
|
+
|
336
|
+
</span>
|
337
|
+
|
338
|
+
|
339
|
+
<span class="note title constructor">constructor</span>
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
|
344
|
+
|
345
|
+
|
346
|
+
|
347
|
+
|
348
|
+
<span class="summary_desc"><div class='inline'>
|
349
|
+
<p>Create Trail object.</p>
|
350
|
+
</div></span>
|
351
|
+
|
352
|
+
</li>
|
353
|
+
|
354
|
+
|
355
|
+
<li class="public ">
|
356
|
+
<span class="summary_signature">
|
357
|
+
|
358
|
+
<a href="#pick-instance_method" title="#pick (instance method)">- (Object) <strong>pick</strong>(trail) </a>
|
359
|
+
|
360
|
+
|
361
|
+
|
362
|
+
</span>
|
363
|
+
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
|
372
|
+
<span class="summary_desc"><div class='inline'>
|
373
|
+
<p>Take trail into use.</p>
|
374
|
+
</div></span>
|
375
|
+
|
376
|
+
</li>
|
377
|
+
|
378
|
+
|
379
|
+
<li class="public ">
|
380
|
+
<span class="summary_signature">
|
381
|
+
|
382
|
+
<a href="#run-instance_method" title="#run (instance method)">- (Object) <strong>run</strong> </a>
|
383
|
+
|
384
|
+
|
385
|
+
|
386
|
+
</span>
|
387
|
+
|
388
|
+
|
389
|
+
|
390
|
+
|
391
|
+
|
392
|
+
|
393
|
+
|
394
|
+
|
395
|
+
|
396
|
+
<span class="summary_desc"><div class='inline'>
|
397
|
+
<p>Default run style for Trail.</p>
|
398
|
+
</div></span>
|
399
|
+
|
400
|
+
</li>
|
401
|
+
|
402
|
+
|
403
|
+
</ul>
|
404
|
+
|
405
|
+
|
406
|
+
|
407
|
+
|
408
|
+
|
409
|
+
|
410
|
+
|
411
|
+
|
412
|
+
|
413
|
+
|
414
|
+
|
415
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="MoveStyles.html" title="Rubu::MoveStyles (module)">MoveStyles</a></span></h3>
|
416
|
+
<p class="inherited"><span class='object_link'><a href="MoveStyles.html#parallel_run-instance_method" title="Rubu::MoveStyles#parallel_run (method)">#parallel_run</a></span>, <span class='object_link'><a href="MoveStyles.html#serial_run-instance_method" title="Rubu::MoveStyles#serial_run (method)">#serial_run</a></span></p>
|
417
|
+
|
418
|
+
|
419
|
+
|
420
|
+
|
421
|
+
|
422
|
+
|
423
|
+
|
424
|
+
|
425
|
+
|
426
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Move.html" title="Rubu::Move (class)">Move</a></span></h3>
|
427
|
+
<p class="inherited"><span class='object_link'><a href="Move.html#display-instance_method" title="Rubu::Move#display (method)">#display</a></span>, <span class='object_link'><a href="Move.html#error-instance_method" title="Rubu::Move#error (method)">#error</a></span>, <span class='object_link'><a href="Move.html#host-instance_method" title="Rubu::Move#host (method)">#host</a></span>, <span class='object_link'><a href="Move.html#host_in-instance_method" title="Rubu::Move#host_in (method)">#host_in</a></span>, <span class='object_link'><a href="Move.html#host_out-instance_method" title="Rubu::Move#host_out (method)">#host_out</a></span>, <span class='object_link'><a href="Move.html#use-instance_method" title="Rubu::Move#use (method)">#use</a></span></p>
|
428
|
+
<div id="constructor_details" class="method_details_list">
|
429
|
+
<h2>Constructor Details</h2>
|
430
|
+
|
431
|
+
<div class="method_details first">
|
432
|
+
<h3 class="signature first" id="initialize-instance_method">
|
433
|
+
|
434
|
+
- (<tt><span class='object_link'><a href="" title="Rubu::Trail (class)">Trail</a></span></tt>) <strong>initialize</strong>(name = nil, &blk)
|
435
|
+
|
436
|
+
|
437
|
+
|
438
|
+
|
439
|
+
|
440
|
+
</h3><div class="docstring">
|
441
|
+
<div class="discussion">
|
442
|
+
|
443
|
+
<p>Create Trail object. Named Trails are registered and can be referenced
|
444
|
+
later.</p>
|
445
|
+
|
446
|
+
|
447
|
+
</div>
|
448
|
+
</div>
|
449
|
+
<div class="tags">
|
450
|
+
|
451
|
+
|
452
|
+
</div><table class="source_code">
|
453
|
+
<tr>
|
454
|
+
<td>
|
455
|
+
<pre class="lines">
|
456
|
+
|
457
|
+
|
458
|
+
710
|
459
|
+
711
|
460
|
+
712
|
461
|
+
713
|
462
|
+
714
|
463
|
+
715
|
464
|
+
716
|
465
|
+
717
|
466
|
+
718
|
467
|
+
719</pre>
|
468
|
+
</td>
|
469
|
+
<td>
|
470
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 710</span>
|
471
|
+
|
472
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span> <span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_blk'>blk</span> <span class='rparen'>)</span>
|
473
|
+
<span class='kw'>super</span><span class='lparen'>(</span><span class='rparen'>)</span>
|
474
|
+
<span class='ivar'>@name</span> <span class='op'>=</span> <span class='id identifier rubyid_name'>name</span>
|
475
|
+
<span class='id identifier rubyid_host_in'>host_in</span>
|
476
|
+
<span class='id identifier rubyid_instance_eval'>instance_eval</span> <span class='op'>&</span><span class='id identifier rubyid_blk'>blk</span>
|
477
|
+
<span class='id identifier rubyid_host_out'>host_out</span>
|
478
|
+
<span class='kw'>if</span> <span class='ivar'>@name</span>
|
479
|
+
<span class='cvar'>@@trails</span><span class='lbracket'>[</span> <span class='ivar'>@name</span> <span class='rbracket'>]</span> <span class='op'>=</span> <span class='kw'>self</span>
|
480
|
+
<span class='kw'>end</span>
|
481
|
+
<span class='kw'>end</span></pre>
|
482
|
+
</td>
|
483
|
+
</tr>
|
484
|
+
</table>
|
485
|
+
</div>
|
486
|
+
|
487
|
+
</div>
|
488
|
+
|
489
|
+
<div id="instance_attr_details" class="attr_details">
|
490
|
+
<h2>Instance Attribute Details</h2>
|
491
|
+
|
492
|
+
|
493
|
+
<span id=""></span>
|
494
|
+
<div class="method_details first">
|
495
|
+
<h3 class="signature first" id="name-instance_method">
|
496
|
+
|
497
|
+
- (<tt>Object</tt>) <strong>name</strong> <span class="extras">(readonly)</span>
|
498
|
+
|
499
|
+
|
500
|
+
|
501
|
+
|
502
|
+
|
503
|
+
</h3><div class="docstring">
|
504
|
+
<div class="discussion">
|
505
|
+
|
506
|
+
<p>Returns the value of attribute name</p>
|
507
|
+
|
508
|
+
|
509
|
+
</div>
|
510
|
+
</div>
|
511
|
+
<div class="tags">
|
512
|
+
|
513
|
+
|
514
|
+
</div><table class="source_code">
|
515
|
+
<tr>
|
516
|
+
<td>
|
517
|
+
<pre class="lines">
|
518
|
+
|
519
|
+
|
520
|
+
706
|
521
|
+
707
|
522
|
+
708</pre>
|
523
|
+
</td>
|
524
|
+
<td>
|
525
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 706</span>
|
526
|
+
|
527
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_name'>name</span>
|
528
|
+
<span class='ivar'>@name</span>
|
529
|
+
<span class='kw'>end</span></pre>
|
530
|
+
</td>
|
531
|
+
</tr>
|
532
|
+
</table>
|
533
|
+
</div>
|
534
|
+
|
535
|
+
</div>
|
536
|
+
|
537
|
+
|
538
|
+
<div id="class_method_details" class="method_details_list">
|
539
|
+
<h2>Class Method Details</h2>
|
540
|
+
|
541
|
+
|
542
|
+
<div class="method_details first">
|
543
|
+
<h3 class="signature first" id="[]-class_method">
|
544
|
+
|
545
|
+
+ (<tt>Object</tt>) <strong>[]</strong>(name)
|
546
|
+
|
547
|
+
|
548
|
+
|
549
|
+
|
550
|
+
|
551
|
+
</h3><div class="docstring">
|
552
|
+
<div class="discussion">
|
553
|
+
|
554
|
+
<p>Reference Trail by name.</p>
|
555
|
+
|
556
|
+
|
557
|
+
</div>
|
558
|
+
</div>
|
559
|
+
<div class="tags">
|
560
|
+
|
561
|
+
|
562
|
+
</div><table class="source_code">
|
563
|
+
<tr>
|
564
|
+
<td>
|
565
|
+
<pre class="lines">
|
566
|
+
|
567
|
+
|
568
|
+
701
|
569
|
+
702
|
570
|
+
703</pre>
|
571
|
+
</td>
|
572
|
+
<td>
|
573
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 701</span>
|
574
|
+
|
575
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='op'>[]</span><span class='lparen'>(</span> <span class='id identifier rubyid_name'>name</span> <span class='rparen'>)</span>
|
576
|
+
<span class='cvar'>@@trails</span><span class='lbracket'>[</span> <span class='id identifier rubyid_name'>name</span> <span class='rbracket'>]</span>
|
577
|
+
<span class='kw'>end</span></pre>
|
578
|
+
</td>
|
579
|
+
</tr>
|
580
|
+
</table>
|
581
|
+
</div>
|
582
|
+
|
583
|
+
<div class="method_details ">
|
584
|
+
<h3 class="signature " id="form-class_method">
|
585
|
+
|
586
|
+
+ (<tt>Object</tt>) <strong>form</strong>(name = nil, &blk)
|
587
|
+
|
588
|
+
|
589
|
+
|
590
|
+
|
591
|
+
|
592
|
+
</h3><div class="docstring">
|
593
|
+
<div class="discussion">
|
594
|
+
|
595
|
+
<p>Replacement (alias) for new method.</p>
|
596
|
+
|
597
|
+
|
598
|
+
</div>
|
599
|
+
</div>
|
600
|
+
<div class="tags">
|
601
|
+
|
602
|
+
|
603
|
+
</div><table class="source_code">
|
604
|
+
<tr>
|
605
|
+
<td>
|
606
|
+
<pre class="lines">
|
607
|
+
|
608
|
+
|
609
|
+
695
|
610
|
+
696
|
611
|
+
697</pre>
|
612
|
+
</td>
|
613
|
+
<td>
|
614
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 695</span>
|
615
|
+
|
616
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_form'>form</span><span class='lparen'>(</span> <span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_blk'>blk</span> <span class='rparen'>)</span>
|
617
|
+
<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_name'>name</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_blk'>blk</span> <span class='rparen'>)</span>
|
618
|
+
<span class='kw'>end</span></pre>
|
619
|
+
</td>
|
620
|
+
</tr>
|
621
|
+
</table>
|
622
|
+
</div>
|
623
|
+
|
624
|
+
<div class="method_details ">
|
625
|
+
<h3 class="signature " id="load_setup-class_method">
|
626
|
+
|
627
|
+
+ (<tt>Object</tt>) <strong>load_setup</strong>(setup_file)
|
628
|
+
|
629
|
+
|
630
|
+
|
631
|
+
|
632
|
+
|
633
|
+
</h3><div class="docstring">
|
634
|
+
<div class="discussion">
|
635
|
+
|
636
|
+
<p>Load a setup file.</p>
|
637
|
+
|
638
|
+
|
639
|
+
</div>
|
640
|
+
</div>
|
641
|
+
<div class="tags">
|
642
|
+
|
643
|
+
|
644
|
+
</div><table class="source_code">
|
645
|
+
<tr>
|
646
|
+
<td>
|
647
|
+
<pre class="lines">
|
648
|
+
|
649
|
+
|
650
|
+
734
|
651
|
+
735
|
652
|
+
736
|
653
|
+
737
|
654
|
+
738
|
655
|
+
739
|
656
|
+
740
|
657
|
+
741
|
658
|
+
742
|
659
|
+
743
|
660
|
+
744
|
661
|
+
745
|
662
|
+
746
|
663
|
+
747
|
664
|
+
748
|
665
|
+
749
|
666
|
+
750
|
667
|
+
751
|
668
|
+
752
|
669
|
+
753
|
670
|
+
754
|
671
|
+
755</pre>
|
672
|
+
</td>
|
673
|
+
<td>
|
674
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 734</span>
|
675
|
+
|
676
|
+
<span class='kw'>def</span> <span class='const'>Trail</span><span class='period'>.</span><span class='id identifier rubyid_load_setup'>load_setup</span><span class='lparen'>(</span> <span class='id identifier rubyid_setup_file'>setup_file</span> <span class='rparen'>)</span>
|
677
|
+
|
678
|
+
<span class='kw'>if</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_exist?'>exist?</span> <span class='id identifier rubyid_setup_file'>setup_file</span>
|
679
|
+
|
680
|
+
<span class='id identifier rubyid_conf'>conf</span> <span class='op'>=</span> <span class='const'>YAML</span><span class='period'>.</span><span class='id identifier rubyid_load_file'>load_file</span><span class='lparen'>(</span> <span class='id identifier rubyid_setup_file'>setup_file</span> <span class='rparen'>)</span>
|
681
|
+
|
682
|
+
<span class='id identifier rubyid_conf'>conf</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_k'>k</span><span class='comma'>,</span><span class='id identifier rubyid_v'>v</span><span class='op'>|</span>
|
683
|
+
|
684
|
+
<span class='id identifier rubyid_scope'>scope</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
685
|
+
|
686
|
+
<span class='kw'>case</span> <span class='id identifier rubyid_k'>k</span>
|
687
|
+
<span class='kw'>when</span> <span class='symbol'>:var</span><span class='semicolon'>;</span> <span class='id identifier rubyid_scope'>scope</span> <span class='op'>=</span> <span class='const'>Var</span>
|
688
|
+
<span class='kw'>when</span> <span class='symbol'>:order</span><span class='semicolon'>;</span> <span class='id identifier rubyid_scope'>scope</span> <span class='op'>=</span> <span class='const'>Order</span>
|
689
|
+
<span class='kw'>when</span> <span class='symbol'>:info</span><span class='semicolon'>;</span> <span class='id identifier rubyid_scope'>scope</span> <span class='op'>=</span> <span class='const'>Info</span>
|
690
|
+
<span class='kw'>end</span>
|
691
|
+
|
692
|
+
<span class='id identifier rubyid_v'>v</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_k2'>k2</span><span class='comma'>,</span><span class='id identifier rubyid_v2'>v2</span><span class='op'>|</span>
|
693
|
+
<span class='id identifier rubyid_scope'>scope</span><span class='lbracket'>[</span> <span class='id identifier rubyid_k2'>k2</span> <span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_v2'>v2</span>
|
694
|
+
<span class='kw'>end</span>
|
695
|
+
<span class='kw'>end</span>
|
696
|
+
<span class='kw'>end</span>
|
697
|
+
<span class='kw'>end</span></pre>
|
698
|
+
</td>
|
699
|
+
</tr>
|
700
|
+
</table>
|
701
|
+
</div>
|
702
|
+
|
703
|
+
<div class="method_details ">
|
704
|
+
<h3 class="signature " id="run-class_method">
|
705
|
+
|
706
|
+
+ (<tt>Object</tt>) <strong>run</strong>(trails = 'default')
|
707
|
+
|
708
|
+
|
709
|
+
|
710
|
+
|
711
|
+
|
712
|
+
</h3><div class="docstring">
|
713
|
+
<div class="discussion">
|
714
|
+
|
715
|
+
<p>Run selected trail(s).</p>
|
716
|
+
|
717
|
+
|
718
|
+
</div>
|
719
|
+
</div>
|
720
|
+
<div class="tags">
|
721
|
+
<p class="tag_title">Parameters:</p>
|
722
|
+
<ul class="param">
|
723
|
+
|
724
|
+
<li>
|
725
|
+
|
726
|
+
<span class='name'>trails</span>
|
727
|
+
|
728
|
+
|
729
|
+
<span class='type'></span>
|
730
|
+
|
731
|
+
|
732
|
+
<em class="default">(defaults to: <tt>'default'</tt>)</em>
|
733
|
+
|
734
|
+
|
735
|
+
—
|
736
|
+
<div class='inline'>
|
737
|
+
<p>List of Trails to run.</p>
|
738
|
+
</div>
|
739
|
+
|
740
|
+
</li>
|
741
|
+
|
742
|
+
</ul>
|
743
|
+
|
744
|
+
|
745
|
+
</div><table class="source_code">
|
746
|
+
<tr>
|
747
|
+
<td>
|
748
|
+
<pre class="lines">
|
749
|
+
|
750
|
+
|
751
|
+
791
|
752
|
+
792
|
753
|
+
793
|
754
|
+
794
|
755
|
+
795
|
756
|
+
796
|
757
|
+
797
|
758
|
+
798
|
759
|
+
799
|
760
|
+
800
|
761
|
+
801
|
762
|
+
802
|
763
|
+
803
|
764
|
+
804
|
765
|
+
805
|
766
|
+
806
|
767
|
+
807
|
768
|
+
808
|
769
|
+
809
|
770
|
+
810
|
771
|
+
811
|
772
|
+
812
|
773
|
+
813
|
774
|
+
814
|
775
|
+
815
|
776
|
+
816
|
777
|
+
817
|
778
|
+
818
|
779
|
+
819</pre>
|
780
|
+
</td>
|
781
|
+
<td>
|
782
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 791</span>
|
783
|
+
|
784
|
+
<span class='kw'>def</span> <span class='const'>Trail</span><span class='period'>.</span><span class='id identifier rubyid_run'>run</span><span class='lparen'>(</span> <span class='id identifier rubyid_trails'>trails</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>default</span><span class='tstring_end'>'</span></span> <span class='rparen'>)</span>
|
785
|
+
|
786
|
+
<span class='kw'>unless</span> <span class='id identifier rubyid_trails'>trails</span><span class='period'>.</span><span class='id identifier rubyid_kind_of?'>kind_of?</span> <span class='const'>Array</span>
|
787
|
+
<span class='id identifier rubyid_trails'>trails</span> <span class='op'>=</span> <span class='lbracket'>[</span> <span class='id identifier rubyid_trails'>trails</span> <span class='rbracket'>]</span>
|
788
|
+
<span class='kw'>end</span>
|
789
|
+
|
790
|
+
<span class='id identifier rubyid_trails'>trails</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_name'>name</span><span class='op'>|</span>
|
791
|
+
|
792
|
+
<span class='kw'>begin</span>
|
793
|
+
|
794
|
+
<span class='id identifier rubyid_ret'>ret</span> <span class='op'>=</span> <span class='const'>Trail</span><span class='lbracket'>[</span> <span class='id identifier rubyid_name'>name</span> <span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_run'>run</span>
|
795
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_ret'>ret</span><span class='period'>.</span><span class='id identifier rubyid_status'>status</span> <span class='op'>==</span> <span class='symbol'>:error</span>
|
796
|
+
<span class='const'>STDERR</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Rubu FAILURE...</span><span class='tstring_end'>"</span></span>
|
797
|
+
<span class='id identifier rubyid_exit'>exit</span> <span class='kw'>false</span>
|
798
|
+
<span class='kw'>end</span>
|
799
|
+
|
800
|
+
<span class='kw'>rescue</span>
|
801
|
+
|
802
|
+
<span class='const'>STDERR</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Broken trail: \"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_content'>\"...</span><span class='tstring_end'>"</span></span>
|
803
|
+
<span class='id identifier rubyid_exit'>exit</span> <span class='kw'>false</span>
|
804
|
+
|
805
|
+
<span class='kw'>end</span>
|
806
|
+
|
807
|
+
<span class='kw'>end</span>
|
808
|
+
|
809
|
+
<span class='const'>State</span><span class='period'>.</span><span class='id identifier rubyid_save'>save</span>
|
810
|
+
|
811
|
+
<span class='id identifier rubyid_exit'>exit</span> <span class='kw'>true</span>
|
812
|
+
<span class='kw'>end</span></pre>
|
813
|
+
</td>
|
814
|
+
</tr>
|
815
|
+
</table>
|
816
|
+
</div>
|
817
|
+
|
818
|
+
<div class="method_details ">
|
819
|
+
<h3 class="signature " id="setup-class_method">
|
820
|
+
|
821
|
+
+ (<tt>Object</tt>) <strong>setup</strong>(spec)
|
822
|
+
|
823
|
+
|
824
|
+
|
825
|
+
|
826
|
+
|
827
|
+
</h3><div class="docstring">
|
828
|
+
<div class="discussion">
|
829
|
+
|
830
|
+
<p>Apply configuration options and command parameters, if any, to Rubu.</p>
|
831
|
+
|
832
|
+
|
833
|
+
</div>
|
834
|
+
</div>
|
835
|
+
<div class="tags">
|
836
|
+
<p class="tag_title">Parameters:</p>
|
837
|
+
<ul class="param">
|
838
|
+
|
839
|
+
<li>
|
840
|
+
|
841
|
+
<span class='name'>spec</span>
|
842
|
+
|
843
|
+
|
844
|
+
<span class='type'></span>
|
845
|
+
|
846
|
+
|
847
|
+
|
848
|
+
—
|
849
|
+
<div class='inline'>
|
850
|
+
<p>Hash of options for setup.</p>
|
851
|
+
</div>
|
852
|
+
|
853
|
+
</li>
|
854
|
+
|
855
|
+
</ul>
|
856
|
+
|
857
|
+
|
858
|
+
</div><table class="source_code">
|
859
|
+
<tr>
|
860
|
+
<td>
|
861
|
+
<pre class="lines">
|
862
|
+
|
863
|
+
|
864
|
+
762
|
865
|
+
763
|
866
|
+
764
|
867
|
+
765
|
868
|
+
766
|
869
|
+
767
|
870
|
+
768
|
871
|
+
769
|
872
|
+
770
|
873
|
+
771
|
874
|
+
772
|
875
|
+
773
|
876
|
+
774
|
877
|
+
775
|
878
|
+
776
|
879
|
+
777
|
880
|
+
778
|
881
|
+
779
|
882
|
+
780
|
883
|
+
781
|
884
|
+
782
|
885
|
+
783
|
886
|
+
784
|
887
|
+
785
|
888
|
+
786</pre>
|
889
|
+
</td>
|
890
|
+
<td>
|
891
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 762</span>
|
892
|
+
|
893
|
+
<span class='kw'>def</span> <span class='const'>Trail</span><span class='period'>.</span><span class='id identifier rubyid_setup'>setup</span><span class='lparen'>(</span> <span class='id identifier rubyid_spec'>spec</span> <span class='rparen'>)</span>
|
894
|
+
|
895
|
+
<span class='const'>Trail</span><span class='period'>.</span><span class='id identifier rubyid_load_setup'>load_setup</span><span class='lparen'>(</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>HOME</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='embexpr_end'>}</span><span class='tstring_content'>/.rubu.yml</span><span class='tstring_end'>"</span></span> <span class='rparen'>)</span>
|
896
|
+
<span class='const'>Trail</span><span class='period'>.</span><span class='id identifier rubyid_load_setup'>load_setup</span><span class='lparen'>(</span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>RUBU_CONF</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='rparen'>)</span> <span class='kw'>if</span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>RUBU_CONF</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
897
|
+
<span class='const'>Trail</span><span class='period'>.</span><span class='id identifier rubyid_load_setup'>load_setup</span><span class='lparen'>(</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>.rubu.yml</span><span class='tstring_end'>"</span></span> <span class='rparen'>)</span>
|
898
|
+
|
899
|
+
<span class='const'>State</span><span class='period'>.</span><span class='id identifier rubyid_load'>load</span>
|
900
|
+
|
901
|
+
<span class='comment'># Apply options from Como.
|
902
|
+
</span> <span class='kw'>if</span> <span class='id identifier rubyid_spec'>spec</span><span class='lbracket'>[</span> <span class='symbol'>:como</span> <span class='rbracket'>]</span>
|
903
|
+
<span class='id identifier rubyid_como'>como</span> <span class='op'>=</span> <span class='id identifier rubyid_spec'>spec</span><span class='lbracket'>[</span> <span class='symbol'>:como</span> <span class='rbracket'>]</span>
|
904
|
+
<span class='kw'>if</span> <span class='const'>Opt</span><span class='lbracket'>[</span> <span class='id identifier rubyid_como'>como</span> <span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_given'>given</span>
|
905
|
+
<span class='const'>Opt</span><span class='lbracket'>[</span> <span class='id identifier rubyid_como'>como</span> <span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</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_conf'>conf</span><span class='op'>|</span>
|
906
|
+
<span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='id identifier rubyid_conf'>conf</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>=</span><span class='tstring_end'>'</span></span> <span class='rparen'>)</span>
|
907
|
+
<span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='kw'>case</span> <span class='id identifier rubyid_value'>value</span>
|
908
|
+
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>true</span><span class='tstring_end'>'</span></span><span class='semicolon'>;</span> <span class='kw'>true</span>
|
909
|
+
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>false</span><span class='tstring_end'>'</span></span><span class='semicolon'>;</span> <span class='kw'>false</span>
|
910
|
+
<span class='kw'>else</span> <span class='id identifier rubyid_value'>value</span>
|
911
|
+
<span class='kw'>end</span>
|
912
|
+
<span class='const'>Var</span><span class='lbracket'>[</span> <span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span> <span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span>
|
913
|
+
<span class='kw'>end</span>
|
914
|
+
<span class='kw'>end</span>
|
915
|
+
<span class='kw'>end</span>
|
916
|
+
|
917
|
+
<span class='kw'>end</span></pre>
|
918
|
+
</td>
|
919
|
+
</tr>
|
920
|
+
</table>
|
921
|
+
</div>
|
922
|
+
|
923
|
+
</div>
|
924
|
+
|
925
|
+
<div id="instance_method_details" class="method_details_list">
|
926
|
+
<h2>Instance Method Details</h2>
|
927
|
+
|
928
|
+
|
929
|
+
<div class="method_details first">
|
930
|
+
<h3 class="signature first" id="pick-instance_method">
|
931
|
+
|
932
|
+
- (<tt>Object</tt>) <strong>pick</strong>(trail)
|
933
|
+
|
934
|
+
|
935
|
+
|
936
|
+
|
937
|
+
|
938
|
+
</h3><div class="docstring">
|
939
|
+
<div class="discussion">
|
940
|
+
|
941
|
+
<p>Take trail into use.</p>
|
942
|
+
|
943
|
+
|
944
|
+
</div>
|
945
|
+
</div>
|
946
|
+
<div class="tags">
|
947
|
+
|
948
|
+
|
949
|
+
</div><table class="source_code">
|
950
|
+
<tr>
|
951
|
+
<td>
|
952
|
+
<pre class="lines">
|
953
|
+
|
954
|
+
|
955
|
+
723
|
956
|
+
724
|
957
|
+
725</pre>
|
958
|
+
</td>
|
959
|
+
<td>
|
960
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 723</span>
|
961
|
+
|
962
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_pick'>pick</span><span class='lparen'>(</span> <span class='id identifier rubyid_trail'>trail</span> <span class='rparen'>)</span>
|
963
|
+
<span class='const'>Trail</span><span class='lbracket'>[</span> <span class='id identifier rubyid_trail'>trail</span> <span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_use'>use</span>
|
964
|
+
<span class='kw'>end</span></pre>
|
965
|
+
</td>
|
966
|
+
</tr>
|
967
|
+
</table>
|
968
|
+
</div>
|
969
|
+
|
970
|
+
<div class="method_details ">
|
971
|
+
<h3 class="signature " id="run-instance_method">
|
972
|
+
|
973
|
+
- (<tt>Object</tt>) <strong>run</strong>
|
974
|
+
|
975
|
+
|
976
|
+
|
977
|
+
|
978
|
+
|
979
|
+
</h3><div class="docstring">
|
980
|
+
<div class="discussion">
|
981
|
+
|
982
|
+
<p>Default run style for Trail.</p>
|
983
|
+
|
984
|
+
|
985
|
+
</div>
|
986
|
+
</div>
|
987
|
+
<div class="tags">
|
988
|
+
|
989
|
+
|
990
|
+
</div><table class="source_code">
|
991
|
+
<tr>
|
992
|
+
<td>
|
993
|
+
<pre class="lines">
|
994
|
+
|
995
|
+
|
996
|
+
729
|
997
|
+
730
|
998
|
+
731</pre>
|
999
|
+
</td>
|
1000
|
+
<td>
|
1001
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 729</span>
|
1002
|
+
|
1003
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_run'>run</span>
|
1004
|
+
<span class='id identifier rubyid_serial_run'>serial_run</span>
|
1005
|
+
<span class='kw'>end</span></pre>
|
1006
|
+
</td>
|
1007
|
+
</tr>
|
1008
|
+
</table>
|
1009
|
+
</div>
|
1010
|
+
|
1011
|
+
</div>
|
1012
|
+
|
1013
|
+
</div>
|
1014
|
+
|
1015
|
+
<div id="footer">
|
1016
|
+
Generated on Sun Jul 1 17:48:17 2018 by
|
1017
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1018
|
+
0.8.7.6 (ruby-2.3.3).
|
1019
|
+
</div>
|
1020
|
+
|
1021
|
+
</body>
|
1022
|
+
</html>
|