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/CmdAdd.html
ADDED
@@ -0,0 +1,837 @@
|
|
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: CmdAdd
|
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#!CmdAdd.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">CmdAdd</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: CmdAdd
|
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">CmdAdd</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>Add 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="CmdSadd.html" title="CmdSadd (class)">CmdSadd</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'>
|
169
|
+
<p>Add modules if not loaded yet.</p>
|
170
|
+
</div></span>
|
171
|
+
|
172
|
+
</li>
|
173
|
+
|
174
|
+
|
175
|
+
<li class="public ">
|
176
|
+
<span class="summary_signature">
|
177
|
+
|
178
|
+
<a href="#add-instance_method" title="#add (instance method)">- (Object) <strong>add</strong>(mod) </a>
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
</span>
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
193
|
+
|
194
|
+
</li>
|
195
|
+
|
196
|
+
|
197
|
+
<li class="public ">
|
198
|
+
<span class="summary_signature">
|
199
|
+
|
200
|
+
<a href="#append_path-instance_method" title="#append_path (instance method)">- (Object) <strong>append_path</strong>(var, value) </a>
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
</span>
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
215
|
+
|
216
|
+
</li>
|
217
|
+
|
218
|
+
|
219
|
+
<li class="public ">
|
220
|
+
<span class="summary_signature">
|
221
|
+
|
222
|
+
<a href="#conflict-instance_method" title="#conflict (instance method)">- (Object) <strong>conflict</strong>(mod) </a>
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
</span>
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
237
|
+
|
238
|
+
</li>
|
239
|
+
|
240
|
+
|
241
|
+
<li class="public ">
|
242
|
+
<span class="summary_signature">
|
243
|
+
|
244
|
+
<a href="#is_loaded-instance_method" title="#is_loaded (instance method)">- (Object) <strong>is_loaded</strong>(mod) </a>
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
</span>
|
249
|
+
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
|
258
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
259
|
+
|
260
|
+
</li>
|
261
|
+
|
262
|
+
|
263
|
+
<li class="public ">
|
264
|
+
<span class="summary_signature">
|
265
|
+
|
266
|
+
<a href="#prepend_path-instance_method" title="#prepend_path (instance method)">- (Object) <strong>prepend_path</strong>(var, value) </a>
|
267
|
+
|
268
|
+
|
269
|
+
|
270
|
+
</span>
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
281
|
+
|
282
|
+
</li>
|
283
|
+
|
284
|
+
|
285
|
+
<li class="public ">
|
286
|
+
<span class="summary_signature">
|
287
|
+
|
288
|
+
<a href="#prereq-instance_method" title="#prereq (instance method)">- (Object) <strong>prereq</strong>(mod) </a>
|
289
|
+
|
290
|
+
|
291
|
+
|
292
|
+
</span>
|
293
|
+
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
|
302
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
303
|
+
|
304
|
+
</li>
|
305
|
+
|
306
|
+
|
307
|
+
<li class="public ">
|
308
|
+
<span class="summary_signature">
|
309
|
+
|
310
|
+
<a href="#pushenv-instance_method" title="#pushenv (instance method)">- (Object) <strong>pushenv</strong>(var, value) </a>
|
311
|
+
|
312
|
+
|
313
|
+
|
314
|
+
</span>
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
325
|
+
|
326
|
+
</li>
|
327
|
+
|
328
|
+
|
329
|
+
<li class="public ">
|
330
|
+
<span class="summary_signature">
|
331
|
+
|
332
|
+
<a href="#remove_path-instance_method" title="#remove_path (instance method)">- (Object) <strong>remove_path</strong>(var, value) </a>
|
333
|
+
|
334
|
+
|
335
|
+
|
336
|
+
</span>
|
337
|
+
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
|
344
|
+
|
345
|
+
|
346
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
347
|
+
|
348
|
+
</li>
|
349
|
+
|
350
|
+
|
351
|
+
<li class="public ">
|
352
|
+
<span class="summary_signature">
|
353
|
+
|
354
|
+
<a href="#setenv-instance_method" title="#setenv (instance method)">- (Object) <strong>setenv</strong>(var, value) </a>
|
355
|
+
|
356
|
+
|
357
|
+
|
358
|
+
</span>
|
359
|
+
|
360
|
+
|
361
|
+
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
|
368
|
+
<span class="summary_desc"><div class='inline'></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><div class="docstring">
|
453
|
+
<div class="discussion">
|
454
|
+
|
455
|
+
<p>Add modules if not loaded yet.</p>
|
456
|
+
|
457
|
+
|
458
|
+
</div>
|
459
|
+
</div>
|
460
|
+
<div class="tags">
|
461
|
+
|
462
|
+
|
463
|
+
</div><table class="source_code">
|
464
|
+
<tr>
|
465
|
+
<td>
|
466
|
+
<pre class="lines">
|
467
|
+
|
468
|
+
|
469
|
+
822
|
470
|
+
823
|
471
|
+
824
|
472
|
+
825
|
473
|
+
826
|
474
|
+
827
|
475
|
+
828
|
476
|
+
829
|
477
|
+
830
|
478
|
+
831
|
479
|
+
832
|
480
|
+
833
|
481
|
+
834</pre>
|
482
|
+
</td>
|
483
|
+
<td>
|
484
|
+
<pre class="code"><span class="info file"># File 'bin/rumodule', line 822</span>
|
485
|
+
|
486
|
+
<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>
|
487
|
+
<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>
|
488
|
+
<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>
|
489
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_mod_path'>mod_path</span> <span class='op'>==</span> <span class='kw'>nil</span>
|
490
|
+
<span class='id identifier rubyid_error'>error</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Unknown module: \"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_mod'>mod</span><span class='embexpr_end'>}</span><span class='tstring_content'>\"...</span><span class='tstring_end'>"</span></span>
|
491
|
+
<span class='kw'>elsif</span> <span class='op'>!</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>
|
492
|
+
<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>
|
493
|
+
<span class='id identifier rubyid_registerModule'>registerModule</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>
|
494
|
+
<span class='kw'>else</span>
|
495
|
+
<span class='id identifier rubyid_warning'>warning</span><span class='lparen'>(</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Module is already loaded: \"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_mod_path'>mod_path</span><span class='embexpr_end'>}</span><span class='tstring_content'>\"...</span><span class='tstring_end'>"</span></span> <span class='rparen'>)</span>
|
496
|
+
<span class='kw'>end</span>
|
497
|
+
<span class='kw'>end</span>
|
498
|
+
<span class='kw'>end</span></pre>
|
499
|
+
</td>
|
500
|
+
</tr>
|
501
|
+
</table>
|
502
|
+
</div>
|
503
|
+
|
504
|
+
<div class="method_details ">
|
505
|
+
<h3 class="signature " id="add-instance_method">
|
506
|
+
|
507
|
+
- (<tt>Object</tt>) <strong>add</strong>(mod)
|
508
|
+
|
509
|
+
|
510
|
+
|
511
|
+
|
512
|
+
|
513
|
+
</h3><table class="source_code">
|
514
|
+
<tr>
|
515
|
+
<td>
|
516
|
+
<pre class="lines">
|
517
|
+
|
518
|
+
|
519
|
+
897
|
520
|
+
898
|
521
|
+
899</pre>
|
522
|
+
</td>
|
523
|
+
<td>
|
524
|
+
<pre class="code"><span class="info file"># File 'bin/rumodule', line 897</span>
|
525
|
+
|
526
|
+
<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>
|
527
|
+
<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>
|
528
|
+
<span class='kw'>end</span></pre>
|
529
|
+
</td>
|
530
|
+
</tr>
|
531
|
+
</table>
|
532
|
+
</div>
|
533
|
+
|
534
|
+
<div class="method_details ">
|
535
|
+
<h3 class="signature " id="append_path-instance_method">
|
536
|
+
|
537
|
+
- (<tt>Object</tt>) <strong>append_path</strong>(var, value)
|
538
|
+
|
539
|
+
|
540
|
+
|
541
|
+
|
542
|
+
|
543
|
+
</h3><table class="source_code">
|
544
|
+
<tr>
|
545
|
+
<td>
|
546
|
+
<pre class="lines">
|
547
|
+
|
548
|
+
|
549
|
+
853
|
550
|
+
854
|
551
|
+
855</pre>
|
552
|
+
</td>
|
553
|
+
<td>
|
554
|
+
<pre class="code"><span class="info file"># File 'bin/rumodule', line 853</span>
|
555
|
+
|
556
|
+
<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>
|
557
|
+
<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_append_path'>append_path</span><span class='lparen'>(</span> <span class='id identifier rubyid_value'>value</span> <span class='rparen'>)</span>
|
558
|
+
<span class='kw'>end</span></pre>
|
559
|
+
</td>
|
560
|
+
</tr>
|
561
|
+
</table>
|
562
|
+
</div>
|
563
|
+
|
564
|
+
<div class="method_details ">
|
565
|
+
<h3 class="signature " id="conflict-instance_method">
|
566
|
+
|
567
|
+
- (<tt>Object</tt>) <strong>conflict</strong>(mod)
|
568
|
+
|
569
|
+
|
570
|
+
|
571
|
+
|
572
|
+
|
573
|
+
</h3><table class="source_code">
|
574
|
+
<tr>
|
575
|
+
<td>
|
576
|
+
<pre class="lines">
|
577
|
+
|
578
|
+
|
579
|
+
885
|
580
|
+
886
|
581
|
+
887
|
582
|
+
888
|
583
|
+
889</pre>
|
584
|
+
</td>
|
585
|
+
<td>
|
586
|
+
<pre class="code"><span class="info file"># File 'bin/rumodule', line 885</span>
|
587
|
+
|
588
|
+
<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>
|
589
|
+
<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'>mod</span> <span class='rparen'>)</span>
|
590
|
+
<span class='id identifier rubyid_usage'>usage</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Conflicting module loaded: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_mod'>mod</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
591
|
+
<span class='kw'>end</span>
|
592
|
+
<span class='kw'>end</span></pre>
|
593
|
+
</td>
|
594
|
+
</tr>
|
595
|
+
</table>
|
596
|
+
</div>
|
597
|
+
|
598
|
+
<div class="method_details ">
|
599
|
+
<h3 class="signature " id="is_loaded-instance_method">
|
600
|
+
|
601
|
+
- (<tt>Object</tt>) <strong>is_loaded</strong>(mod)
|
602
|
+
|
603
|
+
|
604
|
+
|
605
|
+
|
606
|
+
|
607
|
+
</h3><table class="source_code">
|
608
|
+
<tr>
|
609
|
+
<td>
|
610
|
+
<pre class="lines">
|
611
|
+
|
612
|
+
|
613
|
+
892
|
614
|
+
893
|
615
|
+
894</pre>
|
616
|
+
</td>
|
617
|
+
<td>
|
618
|
+
<pre class="code"><span class="info file"># File 'bin/rumodule', line 892</span>
|
619
|
+
|
620
|
+
<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>
|
621
|
+
<span class='id identifier rubyid__is_loaded'>_is_loaded</span><span class='lparen'>(</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> <span class='rparen'>)</span>
|
622
|
+
<span class='kw'>end</span></pre>
|
623
|
+
</td>
|
624
|
+
</tr>
|
625
|
+
</table>
|
626
|
+
</div>
|
627
|
+
|
628
|
+
<div class="method_details ">
|
629
|
+
<h3 class="signature " id="prepend_path-instance_method">
|
630
|
+
|
631
|
+
- (<tt>Object</tt>) <strong>prepend_path</strong>(var, value)
|
632
|
+
|
633
|
+
|
634
|
+
|
635
|
+
|
636
|
+
|
637
|
+
</h3><table class="source_code">
|
638
|
+
<tr>
|
639
|
+
<td>
|
640
|
+
<pre class="lines">
|
641
|
+
|
642
|
+
|
643
|
+
858
|
644
|
+
859
|
645
|
+
860</pre>
|
646
|
+
</td>
|
647
|
+
<td>
|
648
|
+
<pre class="code"><span class="info file"># File 'bin/rumodule', line 858</span>
|
649
|
+
|
650
|
+
<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>
|
651
|
+
<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>
|
652
|
+
<span class='kw'>end</span></pre>
|
653
|
+
</td>
|
654
|
+
</tr>
|
655
|
+
</table>
|
656
|
+
</div>
|
657
|
+
|
658
|
+
<div class="method_details ">
|
659
|
+
<h3 class="signature " id="prereq-instance_method">
|
660
|
+
|
661
|
+
- (<tt>Object</tt>) <strong>prereq</strong>(mod)
|
662
|
+
|
663
|
+
|
664
|
+
|
665
|
+
|
666
|
+
|
667
|
+
</h3><table class="source_code">
|
668
|
+
<tr>
|
669
|
+
<td>
|
670
|
+
<pre class="lines">
|
671
|
+
|
672
|
+
|
673
|
+
878
|
674
|
+
879
|
675
|
+
880
|
676
|
+
881
|
677
|
+
882</pre>
|
678
|
+
</td>
|
679
|
+
<td>
|
680
|
+
<pre class="code"><span class="info file"># File 'bin/rumodule', line 878</span>
|
681
|
+
|
682
|
+
<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>
|
683
|
+
<span class='kw'>unless</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>
|
684
|
+
<span class='id identifier rubyid_usage'>usage</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Prerequisite module not loaded: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_mod'>mod</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
685
|
+
<span class='kw'>end</span>
|
686
|
+
<span class='kw'>end</span></pre>
|
687
|
+
</td>
|
688
|
+
</tr>
|
689
|
+
</table>
|
690
|
+
</div>
|
691
|
+
|
692
|
+
<div class="method_details ">
|
693
|
+
<h3 class="signature " id="pushenv-instance_method">
|
694
|
+
|
695
|
+
- (<tt>Object</tt>) <strong>pushenv</strong>(var, value)
|
696
|
+
|
697
|
+
|
698
|
+
|
699
|
+
|
700
|
+
|
701
|
+
</h3><table class="source_code">
|
702
|
+
<tr>
|
703
|
+
<td>
|
704
|
+
<pre class="lines">
|
705
|
+
|
706
|
+
|
707
|
+
868
|
708
|
+
869
|
709
|
+
870
|
710
|
+
871
|
711
|
+
872
|
712
|
+
873
|
713
|
+
874
|
714
|
+
875</pre>
|
715
|
+
</td>
|
716
|
+
<td>
|
717
|
+
<pre class="code"><span class="info file"># File 'bin/rumodule', line 868</span>
|
718
|
+
|
719
|
+
<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>
|
720
|
+
<span class='comment'># Store old value if it exists.
|
721
|
+
</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>
|
722
|
+
<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_var'>var</span> <span class='rparen'>)</span>
|
723
|
+
<span class='id identifier rubyid_getenvar'>getenvar</span><span class='lparen'>(</span> <span class='id identifier rubyid_bup'>bup</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='const'>ENV</span><span class='lbracket'>[</span><span class='id identifier rubyid_var'>var</span><span class='rbracket'>]</span> <span class='rparen'>)</span>
|
724
|
+
<span class='kw'>end</span>
|
725
|
+
<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>
|
726
|
+
<span class='kw'>end</span></pre>
|
727
|
+
</td>
|
728
|
+
</tr>
|
729
|
+
</table>
|
730
|
+
</div>
|
731
|
+
|
732
|
+
<div class="method_details ">
|
733
|
+
<h3 class="signature " id="remove_path-instance_method">
|
734
|
+
|
735
|
+
- (<tt>Object</tt>) <strong>remove_path</strong>(var, value)
|
736
|
+
|
737
|
+
|
738
|
+
|
739
|
+
|
740
|
+
|
741
|
+
</h3><table class="source_code">
|
742
|
+
<tr>
|
743
|
+
<td>
|
744
|
+
<pre class="lines">
|
745
|
+
|
746
|
+
|
747
|
+
863
|
748
|
+
864
|
749
|
+
865</pre>
|
750
|
+
</td>
|
751
|
+
<td>
|
752
|
+
<pre class="code"><span class="info file"># File 'bin/rumodule', line 863</span>
|
753
|
+
|
754
|
+
<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>
|
755
|
+
<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_remove_path'>remove_path</span><span class='lparen'>(</span> <span class='id identifier rubyid_value'>value</span> <span class='rparen'>)</span>
|
756
|
+
<span class='kw'>end</span></pre>
|
757
|
+
</td>
|
758
|
+
</tr>
|
759
|
+
</table>
|
760
|
+
</div>
|
761
|
+
|
762
|
+
<div class="method_details ">
|
763
|
+
<h3 class="signature " id="setenv-instance_method">
|
764
|
+
|
765
|
+
- (<tt>Object</tt>) <strong>setenv</strong>(var, value)
|
766
|
+
|
767
|
+
|
768
|
+
|
769
|
+
|
770
|
+
|
771
|
+
</h3><table class="source_code">
|
772
|
+
<tr>
|
773
|
+
<td>
|
774
|
+
<pre class="lines">
|
775
|
+
|
776
|
+
|
777
|
+
841
|
778
|
+
842
|
779
|
+
843</pre>
|
780
|
+
</td>
|
781
|
+
<td>
|
782
|
+
<pre class="code"><span class="info file"># File 'bin/rumodule', line 841</span>
|
783
|
+
|
784
|
+
<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>
|
785
|
+
<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>
|
786
|
+
<span class='kw'>end</span></pre>
|
787
|
+
</td>
|
788
|
+
</tr>
|
789
|
+
</table>
|
790
|
+
</div>
|
791
|
+
|
792
|
+
<div class="method_details ">
|
793
|
+
<h3 class="signature " id="unsetenv-instance_method">
|
794
|
+
|
795
|
+
- (<tt>Object</tt>) <strong>unsetenv</strong>(var, value = nil)
|
796
|
+
|
797
|
+
|
798
|
+
|
799
|
+
|
800
|
+
|
801
|
+
</h3><table class="source_code">
|
802
|
+
<tr>
|
803
|
+
<td>
|
804
|
+
<pre class="lines">
|
805
|
+
|
806
|
+
|
807
|
+
846
|
808
|
+
847
|
809
|
+
848
|
810
|
+
849
|
811
|
+
850</pre>
|
812
|
+
</td>
|
813
|
+
<td>
|
814
|
+
<pre class="code"><span class="info file"># File 'bin/rumodule', line 846</span>
|
815
|
+
|
816
|
+
<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>
|
817
|
+
<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>
|
818
|
+
<span class='id identifier rubyid_v'>v</span><span class='period'>.</span><span class='id identifier rubyid_unset'>unset</span>
|
819
|
+
<span class='kw'>end</span>
|
820
|
+
<span class='kw'>end</span></pre>
|
821
|
+
</td>
|
822
|
+
</tr>
|
823
|
+
</table>
|
824
|
+
</div>
|
825
|
+
|
826
|
+
</div>
|
827
|
+
|
828
|
+
</div>
|
829
|
+
|
830
|
+
<div id="footer">
|
831
|
+
Generated on Sat Mar 19 10:38:05 2016 by
|
832
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
833
|
+
0.8.7.6 (ruby-2.1.2).
|
834
|
+
</div>
|
835
|
+
|
836
|
+
</body>
|
837
|
+
</html>
|