rumodule 0.0.3
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 +11 -0
- data/LICENSE +20 -0
- data/README.rdoc +218 -0
- data/bin/rumodule +1069 -0
- data/doc/CmdAdd.html +837 -0
- data/doc/CmdDisplay.html +260 -0
- data/doc/CmdHelp.html +304 -0
- data/doc/CmdList.html +258 -0
- data/doc/CmdRm.html +832 -0
- data/doc/CmdSadd.html +300 -0
- data/doc/CmdSlist.html +258 -0
- data/doc/CmdSrm.html +283 -0
- data/doc/CmdWhich.html +258 -0
- data/doc/EnvVar.html +1351 -0
- data/doc/Rumodule.html +841 -0
- data/doc/RumoduleCommon.html +151 -0
- data/doc/RumoduleMod.html +202 -0
- data/doc/Utility.html +1403 -0
- data/doc/_index.html +202 -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 +87 -0
- data/doc/file.README.html +303 -0
- data/doc/file_list.html +63 -0
- data/doc/frames.html +26 -0
- data/doc/index.html +303 -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 +423 -0
- data/doc/top-level-namespace.html +130 -0
- data/lib/version.rb +6 -0
- data/test/run_fish +3 -0
- data/test/run_zsh_sh_bash +3 -0
- data/test/test_fish +70 -0
- data/test/test_fish.log +60 -0
- data/test/test_golden.log +60 -0
- data/test/test_rumodule.rb +39 -0
- data/test/test_zsh_sh_bash +72 -0
- data/test/test_zsh_sh_bash.log +60 -0
- metadata +110 -0
data/doc/CmdRm.html
ADDED
@@ -0,0 +1,832 @@
|
|
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: CmdRm
|
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#!CmdRm.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 (C)</a> »
|
35
|
+
|
36
|
+
|
37
|
+
<span class="title">CmdRm</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: CmdRm
|
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="Rumodule.html" title="Rumodule (class)">Rumodule</a></span></span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next"><span class='object_link'><a href="RumoduleCommon.html" title="RumoduleCommon (class)">RumoduleCommon</a></span></li>
|
82
|
+
|
83
|
+
<li class="next"><span class='object_link'><a href="Rumodule.html" title="Rumodule (class)">Rumodule</a></span></li>
|
84
|
+
|
85
|
+
<li class="next">CmdRm</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">bin/rumodule</dd>
|
102
|
+
|
103
|
+
</dl>
|
104
|
+
<div class="clear"></div>
|
105
|
+
|
106
|
+
<h2>Overview</h2><div class="docstring">
|
107
|
+
<div class="discussion">
|
108
|
+
|
109
|
+
<p>Rm command.</p>
|
110
|
+
|
111
|
+
|
112
|
+
</div>
|
113
|
+
</div>
|
114
|
+
<div class="tags">
|
115
|
+
|
116
|
+
|
117
|
+
</div><div id="subclasses">
|
118
|
+
<h2>Direct Known Subclasses</h2>
|
119
|
+
<p class="children"><span class='object_link'><a href="CmdSrm.html" title="CmdSrm (class)">CmdSrm</a></span></p>
|
120
|
+
</div>
|
121
|
+
|
122
|
+
<h2>Constant Summary</h2>
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
<h2>Constant Summary</h2>
|
128
|
+
|
129
|
+
<h3 class="inherited">Constants included
|
130
|
+
from <span class='object_link'><a href="Utility.html" title="Utility (module)">Utility</a></span></h3>
|
131
|
+
<p class="inherited"><span class='object_link'><a href="Utility.html#LOADED-constant" title="Utility::LOADED (constant)">Utility::LOADED</a></span>, <span class='object_link'><a href="Utility.html#MODULEDIRS-constant" title="Utility::MODULEDIRS (constant)">Utility::MODULEDIRS</a></span>, <span class='object_link'><a href="Utility.html#RUMODULE_PUSH-constant" title="Utility::RUMODULE_PUSH (constant)">Utility::RUMODULE_PUSH</a></span>, <span class='object_link'><a href="Utility.html#SUBLOADED-constant" title="Utility::SUBLOADED (constant)">Utility::SUBLOADED</a></span>, <span class='object_link'><a href="Utility.html#SYSLOADED-constant" title="Utility::SYSLOADED (constant)">Utility::SYSLOADED</a></span></p>
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
<h3 class="inherited">Constants inherited
|
136
|
+
from <span class='object_link'><a href="RumoduleCommon.html" title="RumoduleCommon (class)">RumoduleCommon</a></span></h3>
|
137
|
+
<p class="inherited"><span class='object_link'><a href="RumoduleCommon.html#SHELL-constant" title="RumoduleCommon::SHELL (constant)">RumoduleCommon::SHELL</a></span></p>
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
<h2>
|
145
|
+
Instance Method Summary
|
146
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
147
|
+
</h2>
|
148
|
+
|
149
|
+
<ul class="summary">
|
150
|
+
|
151
|
+
<li class="public ">
|
152
|
+
<span class="summary_signature">
|
153
|
+
|
154
|
+
<a href="#action-instance_method" title="#action (instance method)">- (Object) <strong>action</strong>(mods, list = :normal) </a>
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
</span>
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
169
|
+
|
170
|
+
</li>
|
171
|
+
|
172
|
+
|
173
|
+
<li class="public ">
|
174
|
+
<span class="summary_signature">
|
175
|
+
|
176
|
+
<a href="#add-instance_method" title="#add (instance method)">- (Object) <strong>add</strong>(mod) </a>
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
</span>
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
191
|
+
|
192
|
+
</li>
|
193
|
+
|
194
|
+
|
195
|
+
<li class="public ">
|
196
|
+
<span class="summary_signature">
|
197
|
+
|
198
|
+
<a href="#append_path-instance_method" title="#append_path (instance method)">- (Object) <strong>append_path</strong>(var, value) </a>
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
</span>
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
213
|
+
|
214
|
+
</li>
|
215
|
+
|
216
|
+
|
217
|
+
<li class="public ">
|
218
|
+
<span class="summary_signature">
|
219
|
+
|
220
|
+
<a href="#conflict-instance_method" title="#conflict (instance method)">- (Object) <strong>conflict</strong>(mod) </a>
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
</span>
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
235
|
+
|
236
|
+
</li>
|
237
|
+
|
238
|
+
|
239
|
+
<li class="public ">
|
240
|
+
<span class="summary_signature">
|
241
|
+
|
242
|
+
<a href="#is_loaded-instance_method" title="#is_loaded (instance method)">- (Object) <strong>is_loaded</strong>(mod) </a>
|
243
|
+
|
244
|
+
|
245
|
+
|
246
|
+
</span>
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
257
|
+
|
258
|
+
</li>
|
259
|
+
|
260
|
+
|
261
|
+
<li class="public ">
|
262
|
+
<span class="summary_signature">
|
263
|
+
|
264
|
+
<a href="#prepend_path-instance_method" title="#prepend_path (instance method)">- (Object) <strong>prepend_path</strong>(var, value) </a>
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
</span>
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
|
278
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
279
|
+
|
280
|
+
</li>
|
281
|
+
|
282
|
+
|
283
|
+
<li class="public ">
|
284
|
+
<span class="summary_signature">
|
285
|
+
|
286
|
+
<a href="#prereq-instance_method" title="#prereq (instance method)">- (Object) <strong>prereq</strong>(mod) </a>
|
287
|
+
|
288
|
+
|
289
|
+
|
290
|
+
</span>
|
291
|
+
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
|
300
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
301
|
+
|
302
|
+
</li>
|
303
|
+
|
304
|
+
|
305
|
+
<li class="public ">
|
306
|
+
<span class="summary_signature">
|
307
|
+
|
308
|
+
<a href="#pushenv-instance_method" title="#pushenv (instance method)">- (Object) <strong>pushenv</strong>(var, value) </a>
|
309
|
+
|
310
|
+
|
311
|
+
|
312
|
+
</span>
|
313
|
+
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
323
|
+
|
324
|
+
</li>
|
325
|
+
|
326
|
+
|
327
|
+
<li class="public ">
|
328
|
+
<span class="summary_signature">
|
329
|
+
|
330
|
+
<a href="#remove_path-instance_method" title="#remove_path (instance method)">- (Object) <strong>remove_path</strong>(var, value) </a>
|
331
|
+
|
332
|
+
|
333
|
+
|
334
|
+
</span>
|
335
|
+
|
336
|
+
|
337
|
+
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
|
344
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
345
|
+
|
346
|
+
</li>
|
347
|
+
|
348
|
+
|
349
|
+
<li class="public ">
|
350
|
+
<span class="summary_signature">
|
351
|
+
|
352
|
+
<a href="#setenv-instance_method" title="#setenv (instance method)">- (Object) <strong>setenv</strong>(var, value) </a>
|
353
|
+
|
354
|
+
|
355
|
+
|
356
|
+
</span>
|
357
|
+
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
|
366
|
+
<span class="summary_desc"><div class='inline'>
|
367
|
+
<p>———————————————————— Module file commands:.</p>
|
368
|
+
</div></span>
|
369
|
+
|
370
|
+
</li>
|
371
|
+
|
372
|
+
|
373
|
+
<li class="public ">
|
374
|
+
<span class="summary_signature">
|
375
|
+
|
376
|
+
<a href="#unsetenv-instance_method" title="#unsetenv (instance method)">- (Object) <strong>unsetenv</strong>(var, value = nil) </a>
|
377
|
+
|
378
|
+
|
379
|
+
|
380
|
+
</span>
|
381
|
+
|
382
|
+
|
383
|
+
|
384
|
+
|
385
|
+
|
386
|
+
|
387
|
+
|
388
|
+
|
389
|
+
|
390
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
391
|
+
|
392
|
+
</li>
|
393
|
+
|
394
|
+
|
395
|
+
</ul>
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
|
400
|
+
|
401
|
+
|
402
|
+
|
403
|
+
|
404
|
+
|
405
|
+
|
406
|
+
|
407
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Rumodule.html" title="Rumodule (class)">Rumodule</a></span></h3>
|
408
|
+
<p class="inherited"><span class='object_link'><a href="Rumodule.html#_is_loaded-instance_method" title="Rumodule#_is_loaded (method)">#_is_loaded</a></span>, <span class='object_link'><a href="Rumodule.html#_output-instance_method" title="Rumodule#_output (method)">#_output</a></span>, <span class='object_link'><a href="Rumodule.html#flush-class_method" title="Rumodule.flush (method)">flush</a></span>, <span class='object_link'><a href="Rumodule.html#getenvar-instance_method" title="Rumodule#getenvar (method)">#getenvar</a></span>, <span class='object_link'><a href="Rumodule.html#run-class_method" title="Rumodule.run (method)">run</a></span></p>
|
409
|
+
|
410
|
+
|
411
|
+
|
412
|
+
|
413
|
+
|
414
|
+
|
415
|
+
|
416
|
+
|
417
|
+
|
418
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="Utility.html" title="Utility (module)">Utility</a></span></h3>
|
419
|
+
<p class="inherited"><span class='object_link'><a href="Utility.html#abort-instance_method" title="Utility#abort (method)">#abort</a></span>, <span class='object_link'><a href="Utility.html#all_loaded-instance_method" title="Utility#all_loaded (method)">#all_loaded</a></span>, <span class='object_link'><a href="Utility.html#commonHelp-instance_method" title="Utility#commonHelp (method)">#commonHelp</a></span>, <span class='object_link'><a href="Utility.html#error-instance_method" title="Utility#error (method)">#error</a></span>, <span class='object_link'><a href="Utility.html#findModule-instance_method" title="Utility#findModule (method)">#findModule</a></span>, <span class='object_link'><a href="Utility.html#help-instance_method" title="Utility#help (method)">#help</a></span>, <span class='object_link'><a href="Utility.html#loadModule-instance_method" title="Utility#loadModule (method)">#loadModule</a></span>, <span class='object_link'><a href="Utility.html#loaded-instance_method" title="Utility#loaded (method)">#loaded</a></span>, <span class='object_link'><a href="Utility.html#registerModule-instance_method" title="Utility#registerModule (method)">#registerModule</a></span>, <span class='object_link'><a href="Utility.html#sys_loaded-instance_method" title="Utility#sys_loaded (method)">#sys_loaded</a></span>, <span class='object_link'><a href="Utility.html#unregisterModule-instance_method" title="Utility#unregisterModule (method)">#unregisterModule</a></span>, <span class='object_link'><a href="Utility.html#usage-instance_method" title="Utility#usage (method)">#usage</a></span>, <span class='object_link'><a href="Utility.html#warning-instance_method" title="Utility#warning (method)">#warning</a></span></p>
|
420
|
+
|
421
|
+
|
422
|
+
|
423
|
+
|
424
|
+
|
425
|
+
|
426
|
+
|
427
|
+
|
428
|
+
|
429
|
+
|
430
|
+
|
431
|
+
|
432
|
+
|
433
|
+
|
434
|
+
|
435
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="RumoduleMod.html" title="RumoduleMod (module)">RumoduleMod</a></span></h3>
|
436
|
+
<p class="inherited"><span class='object_link'><a href="RumoduleMod.html#home-instance_method" title="RumoduleMod#home (method)">#home</a></span></p>
|
437
|
+
|
438
|
+
|
439
|
+
<div id="instance_method_details" class="method_details_list">
|
440
|
+
<h2>Instance Method Details</h2>
|
441
|
+
|
442
|
+
|
443
|
+
<div class="method_details first">
|
444
|
+
<h3 class="signature first" id="action-instance_method">
|
445
|
+
|
446
|
+
- (<tt>Object</tt>) <strong>action</strong>(mods, list = :normal)
|
447
|
+
|
448
|
+
|
449
|
+
|
450
|
+
|
451
|
+
|
452
|
+
</h3><table class="source_code">
|
453
|
+
<tr>
|
454
|
+
<td>
|
455
|
+
<pre class="lines">
|
456
|
+
|
457
|
+
|
458
|
+
925
|
459
|
+
926
|
460
|
+
927
|
461
|
+
928
|
462
|
+
929
|
463
|
+
930
|
464
|
+
931
|
465
|
+
932
|
466
|
+
933</pre>
|
467
|
+
</td>
|
468
|
+
<td>
|
469
|
+
<pre class="code"><span class="info file"># File 'bin/rumodule', line 925</span>
|
470
|
+
|
471
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_action'>action</span><span class='lparen'>(</span> <span class='id identifier rubyid_mods'>mods</span><span class='comma'>,</span> <span class='id identifier rubyid_list'>list</span> <span class='op'>=</span> <span class='symbol'>:normal</span> <span class='rparen'>)</span>
|
472
|
+
<span class='id identifier rubyid_mods'>mods</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_mod'>mod</span><span class='op'>|</span>
|
473
|
+
<span class='id identifier rubyid_mod_path'>mod_path</span> <span class='op'>=</span> <span class='id identifier rubyid_findModule'>findModule</span><span class='lparen'>(</span> <span class='id identifier rubyid_mod'>mod</span> <span class='rparen'>)</span>
|
474
|
+
<span class='kw'>if</span> <span class='id identifier rubyid__is_loaded'>_is_loaded</span><span class='lparen'>(</span> <span class='id identifier rubyid_mod_path'>mod_path</span> <span class='rparen'>)</span>
|
475
|
+
<span class='id identifier rubyid_loaded_mod'>loaded_mod</span> <span class='op'>=</span> <span class='id identifier rubyid_loadModule'>loadModule</span><span class='lparen'>(</span> <span class='id identifier rubyid_mod_path'>mod_path</span> <span class='rparen'>)</span>
|
476
|
+
<span class='id identifier rubyid_unregisterModule'>unregisterModule</span><span class='lparen'>(</span> <span class='id identifier rubyid_loaded_mod'>loaded_mod</span><span class='comma'>,</span> <span class='id identifier rubyid_list'>list</span> <span class='rparen'>)</span>
|
477
|
+
<span class='kw'>end</span>
|
478
|
+
<span class='kw'>end</span>
|
479
|
+
<span class='kw'>end</span></pre>
|
480
|
+
</td>
|
481
|
+
</tr>
|
482
|
+
</table>
|
483
|
+
</div>
|
484
|
+
|
485
|
+
<div class="method_details ">
|
486
|
+
<h3 class="signature " id="add-instance_method">
|
487
|
+
|
488
|
+
- (<tt>Object</tt>) <strong>add</strong>(mod)
|
489
|
+
|
490
|
+
|
491
|
+
|
492
|
+
|
493
|
+
|
494
|
+
</h3><table class="source_code">
|
495
|
+
<tr>
|
496
|
+
<td>
|
497
|
+
<pre class="lines">
|
498
|
+
|
499
|
+
|
500
|
+
987
|
501
|
+
988
|
502
|
+
989</pre>
|
503
|
+
</td>
|
504
|
+
<td>
|
505
|
+
<pre class="code"><span class="info file"># File 'bin/rumodule', line 987</span>
|
506
|
+
|
507
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_add'>add</span><span class='lparen'>(</span> <span class='id identifier rubyid_mod'>mod</span> <span class='rparen'>)</span>
|
508
|
+
<span class='id identifier rubyid_action'>action</span><span class='lparen'>(</span> <span class='lbracket'>[</span> <span class='id identifier rubyid_mod'>mod</span> <span class='rbracket'>]</span><span class='comma'>,</span> <span class='symbol'>:sub</span> <span class='rparen'>)</span>
|
509
|
+
<span class='kw'>end</span></pre>
|
510
|
+
</td>
|
511
|
+
</tr>
|
512
|
+
</table>
|
513
|
+
</div>
|
514
|
+
|
515
|
+
<div class="method_details ">
|
516
|
+
<h3 class="signature " id="append_path-instance_method">
|
517
|
+
|
518
|
+
- (<tt>Object</tt>) <strong>append_path</strong>(var, value)
|
519
|
+
|
520
|
+
|
521
|
+
|
522
|
+
|
523
|
+
|
524
|
+
</h3><table class="source_code">
|
525
|
+
<tr>
|
526
|
+
<td>
|
527
|
+
<pre class="lines">
|
528
|
+
|
529
|
+
|
530
|
+
951
|
531
|
+
952
|
532
|
+
953</pre>
|
533
|
+
</td>
|
534
|
+
<td>
|
535
|
+
<pre class="code"><span class="info file"># File 'bin/rumodule', line 951</span>
|
536
|
+
|
537
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_append_path'>append_path</span><span class='lparen'>(</span> <span class='id identifier rubyid_var'>var</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span> <span class='rparen'>)</span>
|
538
|
+
<span class='id identifier rubyid_getenvar'>getenvar</span><span class='lparen'>(</span> <span class='id identifier rubyid_var'>var</span> <span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_remove_path'>remove_path</span><span class='lparen'>(</span> <span class='id identifier rubyid_value'>value</span> <span class='rparen'>)</span>
|
539
|
+
<span class='kw'>end</span></pre>
|
540
|
+
</td>
|
541
|
+
</tr>
|
542
|
+
</table>
|
543
|
+
</div>
|
544
|
+
|
545
|
+
<div class="method_details ">
|
546
|
+
<h3 class="signature " id="conflict-instance_method">
|
547
|
+
|
548
|
+
- (<tt>Object</tt>) <strong>conflict</strong>(mod)
|
549
|
+
|
550
|
+
|
551
|
+
|
552
|
+
|
553
|
+
|
554
|
+
</h3><table class="source_code">
|
555
|
+
<tr>
|
556
|
+
<td>
|
557
|
+
<pre class="lines">
|
558
|
+
|
559
|
+
|
560
|
+
979
|
561
|
+
980
|
562
|
+
981</pre>
|
563
|
+
</td>
|
564
|
+
<td>
|
565
|
+
<pre class="code"><span class="info file"># File 'bin/rumodule', line 979</span>
|
566
|
+
|
567
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_conflict'>conflict</span><span class='lparen'>(</span> <span class='id identifier rubyid_mod'>mod</span> <span class='rparen'>)</span>
|
568
|
+
<span class='kw'>true</span>
|
569
|
+
<span class='kw'>end</span></pre>
|
570
|
+
</td>
|
571
|
+
</tr>
|
572
|
+
</table>
|
573
|
+
</div>
|
574
|
+
|
575
|
+
<div class="method_details ">
|
576
|
+
<h3 class="signature " id="is_loaded-instance_method">
|
577
|
+
|
578
|
+
- (<tt>Object</tt>) <strong>is_loaded</strong>(mod)
|
579
|
+
|
580
|
+
|
581
|
+
|
582
|
+
|
583
|
+
|
584
|
+
</h3><table class="source_code">
|
585
|
+
<tr>
|
586
|
+
<td>
|
587
|
+
<pre class="lines">
|
588
|
+
|
589
|
+
|
590
|
+
983
|
591
|
+
984
|
592
|
+
985</pre>
|
593
|
+
</td>
|
594
|
+
<td>
|
595
|
+
<pre class="code"><span class="info file"># File 'bin/rumodule', line 983</span>
|
596
|
+
|
597
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_is_loaded'>is_loaded</span><span class='lparen'>(</span> <span class='id identifier rubyid_mod'>mod</span> <span class='rparen'>)</span>
|
598
|
+
<span class='kw'>true</span>
|
599
|
+
<span class='kw'>end</span></pre>
|
600
|
+
</td>
|
601
|
+
</tr>
|
602
|
+
</table>
|
603
|
+
</div>
|
604
|
+
|
605
|
+
<div class="method_details ">
|
606
|
+
<h3 class="signature " id="prepend_path-instance_method">
|
607
|
+
|
608
|
+
- (<tt>Object</tt>) <strong>prepend_path</strong>(var, value)
|
609
|
+
|
610
|
+
|
611
|
+
|
612
|
+
|
613
|
+
|
614
|
+
</h3><table class="source_code">
|
615
|
+
<tr>
|
616
|
+
<td>
|
617
|
+
<pre class="lines">
|
618
|
+
|
619
|
+
|
620
|
+
955
|
621
|
+
956
|
622
|
+
957</pre>
|
623
|
+
</td>
|
624
|
+
<td>
|
625
|
+
<pre class="code"><span class="info file"># File 'bin/rumodule', line 955</span>
|
626
|
+
|
627
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_prepend_path'>prepend_path</span><span class='lparen'>(</span> <span class='id identifier rubyid_var'>var</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span> <span class='rparen'>)</span>
|
628
|
+
<span class='id identifier rubyid_getenvar'>getenvar</span><span class='lparen'>(</span> <span class='id identifier rubyid_var'>var</span> <span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_remove_path'>remove_path</span><span class='lparen'>(</span> <span class='id identifier rubyid_value'>value</span> <span class='rparen'>)</span>
|
629
|
+
<span class='kw'>end</span></pre>
|
630
|
+
</td>
|
631
|
+
</tr>
|
632
|
+
</table>
|
633
|
+
</div>
|
634
|
+
|
635
|
+
<div class="method_details ">
|
636
|
+
<h3 class="signature " id="prereq-instance_method">
|
637
|
+
|
638
|
+
- (<tt>Object</tt>) <strong>prereq</strong>(mod)
|
639
|
+
|
640
|
+
|
641
|
+
|
642
|
+
|
643
|
+
|
644
|
+
</h3><table class="source_code">
|
645
|
+
<tr>
|
646
|
+
<td>
|
647
|
+
<pre class="lines">
|
648
|
+
|
649
|
+
|
650
|
+
975
|
651
|
+
976
|
652
|
+
977</pre>
|
653
|
+
</td>
|
654
|
+
<td>
|
655
|
+
<pre class="code"><span class="info file"># File 'bin/rumodule', line 975</span>
|
656
|
+
|
657
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_prereq'>prereq</span><span class='lparen'>(</span> <span class='id identifier rubyid_mod'>mod</span> <span class='rparen'>)</span>
|
658
|
+
<span class='kw'>true</span>
|
659
|
+
<span class='kw'>end</span></pre>
|
660
|
+
</td>
|
661
|
+
</tr>
|
662
|
+
</table>
|
663
|
+
</div>
|
664
|
+
|
665
|
+
<div class="method_details ">
|
666
|
+
<h3 class="signature " id="pushenv-instance_method">
|
667
|
+
|
668
|
+
- (<tt>Object</tt>) <strong>pushenv</strong>(var, value)
|
669
|
+
|
670
|
+
|
671
|
+
|
672
|
+
|
673
|
+
|
674
|
+
</h3><table class="source_code">
|
675
|
+
<tr>
|
676
|
+
<td>
|
677
|
+
<pre class="lines">
|
678
|
+
|
679
|
+
|
680
|
+
963
|
681
|
+
964
|
682
|
+
965
|
683
|
+
966
|
684
|
+
967
|
685
|
+
968
|
686
|
+
969
|
687
|
+
970
|
688
|
+
971
|
689
|
+
972
|
690
|
+
973</pre>
|
691
|
+
</td>
|
692
|
+
<td>
|
693
|
+
<pre class="code"><span class="info file"># File 'bin/rumodule', line 963</span>
|
694
|
+
|
695
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_pushenv'>pushenv</span><span class='lparen'>(</span> <span class='id identifier rubyid_var'>var</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span> <span class='rparen'>)</span>
|
696
|
+
|
697
|
+
<span class='comment'># Store old value if it exists.
|
698
|
+
</span> <span class='id identifier rubyid_bup'>bup</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='const'>RUMODULE_PUSH</span><span class='embexpr_end'>}</span><span class='tstring_content'>_</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_var'>var</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
699
|
+
|
700
|
+
<span class='kw'>if</span> <span class='const'>EnvVar</span><span class='period'>.</span><span class='id identifier rubyid_exist?'>exist?</span><span class='lparen'>(</span> <span class='id identifier rubyid_bup'>bup</span> <span class='rparen'>)</span>
|
701
|
+
<span class='id identifier rubyid_v'>v</span> <span class='op'>=</span> <span class='id identifier rubyid_getenvar'>getenvar</span><span class='lparen'>(</span> <span class='id identifier rubyid_bup'>bup</span> <span class='rparen'>)</span>
|
702
|
+
<span class='id identifier rubyid_getenvar'>getenvar</span><span class='lparen'>(</span> <span class='id identifier rubyid_var'>var</span><span class='comma'>,</span> <span class='kw'>true</span> <span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_set'>set</span><span class='lparen'>(</span> <span class='id identifier rubyid_v'>v</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span> <span class='rparen'>)</span>
|
703
|
+
<span class='id identifier rubyid_v'>v</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_shift'>shift</span>
|
704
|
+
<span class='kw'>end</span>
|
705
|
+
<span class='kw'>end</span></pre>
|
706
|
+
</td>
|
707
|
+
</tr>
|
708
|
+
</table>
|
709
|
+
</div>
|
710
|
+
|
711
|
+
<div class="method_details ">
|
712
|
+
<h3 class="signature " id="remove_path-instance_method">
|
713
|
+
|
714
|
+
- (<tt>Object</tt>) <strong>remove_path</strong>(var, value)
|
715
|
+
|
716
|
+
|
717
|
+
|
718
|
+
|
719
|
+
|
720
|
+
</h3><table class="source_code">
|
721
|
+
<tr>
|
722
|
+
<td>
|
723
|
+
<pre class="lines">
|
724
|
+
|
725
|
+
|
726
|
+
959
|
727
|
+
960
|
728
|
+
961</pre>
|
729
|
+
</td>
|
730
|
+
<td>
|
731
|
+
<pre class="code"><span class="info file"># File 'bin/rumodule', line 959</span>
|
732
|
+
|
733
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_remove_path'>remove_path</span><span class='lparen'>(</span> <span class='id identifier rubyid_var'>var</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span> <span class='rparen'>)</span>
|
734
|
+
<span class='id identifier rubyid_getenvar'>getenvar</span><span class='lparen'>(</span> <span class='id identifier rubyid_var'>var</span><span class='comma'>,</span> <span class='kw'>true</span> <span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_prepend_path'>prepend_path</span><span class='lparen'>(</span> <span class='id identifier rubyid_value'>value</span> <span class='rparen'>)</span>
|
735
|
+
<span class='kw'>end</span></pre>
|
736
|
+
</td>
|
737
|
+
</tr>
|
738
|
+
</table>
|
739
|
+
</div>
|
740
|
+
|
741
|
+
<div class="method_details ">
|
742
|
+
<h3 class="signature " id="setenv-instance_method">
|
743
|
+
|
744
|
+
- (<tt>Object</tt>) <strong>setenv</strong>(var, value)
|
745
|
+
|
746
|
+
|
747
|
+
|
748
|
+
|
749
|
+
|
750
|
+
</h3><div class="docstring">
|
751
|
+
<div class="discussion">
|
752
|
+
<hr>
|
753
|
+
|
754
|
+
<p>Module file commands:</p>
|
755
|
+
|
756
|
+
|
757
|
+
</div>
|
758
|
+
</div>
|
759
|
+
<div class="tags">
|
760
|
+
|
761
|
+
|
762
|
+
</div><table class="source_code">
|
763
|
+
<tr>
|
764
|
+
<td>
|
765
|
+
<pre class="lines">
|
766
|
+
|
767
|
+
|
768
|
+
939
|
769
|
+
940
|
770
|
+
941
|
771
|
+
942
|
772
|
+
943</pre>
|
773
|
+
</td>
|
774
|
+
<td>
|
775
|
+
<pre class="code"><span class="info file"># File 'bin/rumodule', line 939</span>
|
776
|
+
|
777
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_setenv'>setenv</span><span class='lparen'>(</span> <span class='id identifier rubyid_var'>var</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span> <span class='rparen'>)</span>
|
778
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_v'>v</span> <span class='op'>=</span> <span class='id identifier rubyid_getenvar'>getenvar</span><span class='lparen'>(</span> <span class='id identifier rubyid_var'>var</span> <span class='rparen'>)</span>
|
779
|
+
<span class='id identifier rubyid_v'>v</span><span class='period'>.</span><span class='id identifier rubyid_unset'>unset</span>
|
780
|
+
<span class='kw'>end</span>
|
781
|
+
<span class='kw'>end</span></pre>
|
782
|
+
</td>
|
783
|
+
</tr>
|
784
|
+
</table>
|
785
|
+
</div>
|
786
|
+
|
787
|
+
<div class="method_details ">
|
788
|
+
<h3 class="signature " id="unsetenv-instance_method">
|
789
|
+
|
790
|
+
- (<tt>Object</tt>) <strong>unsetenv</strong>(var, value = nil)
|
791
|
+
|
792
|
+
|
793
|
+
|
794
|
+
|
795
|
+
|
796
|
+
</h3><table class="source_code">
|
797
|
+
<tr>
|
798
|
+
<td>
|
799
|
+
<pre class="lines">
|
800
|
+
|
801
|
+
|
802
|
+
945
|
803
|
+
946
|
804
|
+
947
|
805
|
+
948
|
806
|
+
949</pre>
|
807
|
+
</td>
|
808
|
+
<td>
|
809
|
+
<pre class="code"><span class="info file"># File 'bin/rumodule', line 945</span>
|
810
|
+
|
811
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_unsetenv'>unsetenv</span><span class='lparen'>(</span> <span class='id identifier rubyid_var'>var</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='rparen'>)</span>
|
812
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_value'>value</span>
|
813
|
+
<span class='id identifier rubyid_getenvar'>getenvar</span><span class='lparen'>(</span> <span class='id identifier rubyid_var'>var</span><span class='comma'>,</span> <span class='kw'>true</span> <span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_set'>set</span><span class='lparen'>(</span> <span class='id identifier rubyid_value'>value</span> <span class='rparen'>)</span>
|
814
|
+
<span class='kw'>end</span>
|
815
|
+
<span class='kw'>end</span></pre>
|
816
|
+
</td>
|
817
|
+
</tr>
|
818
|
+
</table>
|
819
|
+
</div>
|
820
|
+
|
821
|
+
</div>
|
822
|
+
|
823
|
+
</div>
|
824
|
+
|
825
|
+
<div id="footer">
|
826
|
+
Generated on Sat Mar 19 10:38:05 2016 by
|
827
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
828
|
+
0.8.7.6 (ruby-2.1.2).
|
829
|
+
</div>
|
830
|
+
|
831
|
+
</body>
|
832
|
+
</html>
|