rumai 3.0.0 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/rumai +2 -2
- data/doc/api/apple-touch-icon.png +0 -0
- data/doc/api/classes/IO.html +1 -1
- data/doc/api/classes/Integer.html +6 -6
- data/doc/api/classes/Rumai.html +141 -141
- data/doc/api/classes/Rumai/Area.html +122 -122
- data/doc/api/classes/Rumai/Chain.html +18 -18
- data/doc/api/classes/Rumai/Client.html +420 -122
- data/doc/api/classes/Rumai/ClientContainer.html +22 -22
- data/doc/api/classes/Rumai/IXP/Agent.html +90 -90
- data/doc/api/classes/Rumai/IXP/Agent/FidStream.html +41 -41
- data/doc/api/classes/Rumai/IXP/Agent/MODES.html +6 -6
- data/doc/api/classes/Rumai/IXP/Agent/RangedPool.html +18 -18
- data/doc/api/classes/Rumai/IXP/Fcall.html +30 -30
- data/doc/api/classes/Rumai/IXP/Qid.html +1 -1
- data/doc/api/classes/Rumai/IXP/Stat.html +7 -7
- data/doc/api/classes/Rumai/IXP/Stream.html +6 -6
- data/doc/api/classes/Rumai/IXP/Struct.html +24 -24
- data/doc/api/classes/Rumai/IXP/Struct/Field.html +36 -36
- data/doc/api/classes/Rumai/IXP/Struct/Field/CounteeField.html +12 -12
- data/doc/api/classes/Rumai/IXP/Struct/Field/CounterField.html +6 -6
- data/doc/api/classes/Rumai/IXP/Terror.html +6 -6
- data/doc/api/classes/Rumai/Node.html +52 -52
- data/doc/api/classes/Rumai/View.html +132 -132
- data/doc/api/classes/String.html +12 -12
- data/doc/api/classes/StringIO.html +1 -1
- data/doc/api/classes/Time.html +12 -12
- data/doc/api/created.rid +1 -1
- data/doc/api/favicon.ico +0 -0
- data/doc/api/files/CREDITS.html +1 -1
- data/doc/api/files/LICENSE.html +1 -1
- data/doc/api/files/lib/rumai/fs_rb.html +1 -1
- data/doc/api/files/lib/rumai/ixp/message_rb.html +1 -1
- data/doc/api/files/lib/rumai/ixp/transport_rb.html +1 -1
- data/doc/api/files/lib/rumai/ixp_rb.html +1 -1
- data/doc/api/files/lib/rumai/wm_rb.html +1 -1
- data/doc/api/files/lib/rumai_rb.html +1 -1
- data/doc/api/js/searchdoc.js +38 -15
- data/doc/api/panel/index.html +13 -5
- data/doc/api/panel/search_index.js +1 -1
- data/doc/api/panel/tree.js +1 -1
- data/doc/history.erb +79 -2
- data/doc/index.erb +2 -2
- data/doc/index.html +2017 -0
- data/doc/intro.erb +38 -62
- data/doc/setup.erb +53 -2
- data/doc/usage.erb +36 -11
- data/lib/rumai.rb +4 -4
- data/lib/rumai/fs.rb +2 -2
- data/lib/rumai/ixp.rb +2 -2
- data/lib/rumai/ixp/message.rb +2 -2
- data/lib/rumai/ixp/transport.rb +2 -2
- data/lib/rumai/wm.rb +80 -5
- data/rakefile +2 -2
- data/test/rumai/ixp/message.rb +3 -3
- metadata +9 -5
- data/doc/index.xhtml +0 -1078
@@ -31,7 +31,7 @@
|
|
31
31
|
<div class="description">
|
32
32
|
<p>
|
33
33
|
NOTE: Inheritors should override the ‘<a
|
34
|
-
href="ClientContainer.html#
|
34
|
+
href="ClientContainer.html#M000059">client_ids</a>’ method.
|
35
35
|
</p>
|
36
36
|
|
37
37
|
</div>
|
@@ -51,9 +51,9 @@ href="ClientContainer.html#M000056">client_ids</a>’ method.
|
|
51
51
|
<dd>
|
52
52
|
<ul>
|
53
53
|
|
54
|
-
<li><a href="#
|
54
|
+
<li><a href="#M000059">client_ids</a>,</li>
|
55
55
|
|
56
|
-
<li><a href="#
|
56
|
+
<li><a href="#M000060">clients</a></li>
|
57
57
|
|
58
58
|
</ul>
|
59
59
|
</dd>
|
@@ -62,7 +62,7 @@ href="ClientContainer.html#M000056">client_ids</a>’ method.
|
|
62
62
|
<dd>
|
63
63
|
<ul>
|
64
64
|
|
65
|
-
<li><a href="#
|
65
|
+
<li><a href="#M000061">grouping</a></li>
|
66
66
|
|
67
67
|
</ul>
|
68
68
|
</dd>
|
@@ -84,9 +84,9 @@ href="ClientContainer.html#M000056">client_ids</a>’ method.
|
|
84
84
|
<div class="sectiontitle">Instance Public methods</div>
|
85
85
|
|
86
86
|
<div class="method">
|
87
|
-
<div class="title" id="
|
87
|
+
<div class="title" id="M000059">
|
88
88
|
|
89
|
-
<a name="
|
89
|
+
<a name="M000059"></a><b>client_ids</b>()
|
90
90
|
|
91
91
|
</div>
|
92
92
|
|
@@ -102,13 +102,13 @@ Returns the IDs of the clients in this container.
|
|
102
102
|
|
103
103
|
<div class="sourcecode">
|
104
104
|
<p class="source-link">
|
105
|
-
Source: <a href="javascript:toggleSource('
|
105
|
+
Source: <a href="javascript:toggleSource('M000059_source')" id="l_M000059_source">show</a>
|
106
106
|
|
107
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
107
|
+
| <a href="http://github.com/sunaku/rumai/blob/68157cba221ac3cbed28a6a5882b57f4db0516a9/lib/rumai/wm.rb#L449" target="_blank" class="github_url">on GitHub</a>
|
108
108
|
|
109
109
|
</p>
|
110
|
-
<div id="
|
111
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line
|
110
|
+
<div id="M000059_source" class="dyn-source">
|
111
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 449</span>
|
112
112
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">client_ids</span>
|
113
113
|
[]
|
114
114
|
<span class="ruby-keyword kw">end</span></pre>
|
@@ -118,9 +118,9 @@ Returns the IDs of the clients in this container.
|
|
118
118
|
</div>
|
119
119
|
|
120
120
|
<div class="method">
|
121
|
-
<div class="title" id="
|
121
|
+
<div class="title" id="M000060">
|
122
122
|
|
123
|
-
<a name="
|
123
|
+
<a name="M000060"></a><b>clients</b>()
|
124
124
|
|
125
125
|
</div>
|
126
126
|
|
@@ -136,13 +136,13 @@ Returns the clients contained in this container.
|
|
136
136
|
|
137
137
|
<div class="sourcecode">
|
138
138
|
<p class="source-link">
|
139
|
-
Source: <a href="javascript:toggleSource('
|
139
|
+
Source: <a href="javascript:toggleSource('M000060_source')" id="l_M000060_source">show</a>
|
140
140
|
|
141
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
141
|
+
| <a href="http://github.com/sunaku/rumai/blob/68157cba221ac3cbed28a6a5882b57f4db0516a9/lib/rumai/wm.rb#L456" target="_blank" class="github_url">on GitHub</a>
|
142
142
|
|
143
143
|
</p>
|
144
|
-
<div id="
|
145
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line
|
144
|
+
<div id="M000060_source" class="dyn-source">
|
145
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 456</span>
|
146
146
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clients</span>
|
147
147
|
<span class="ruby-identifier">client_ids</span>.<span class="ruby-identifier">map!</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span> <span class="ruby-constant">Client</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">i</span> }
|
148
148
|
<span class="ruby-keyword kw">end</span></pre>
|
@@ -152,9 +152,9 @@ Returns the clients contained in this container.
|
|
152
152
|
</div>
|
153
153
|
|
154
154
|
<div class="method">
|
155
|
-
<div class="title" id="
|
155
|
+
<div class="title" id="M000061">
|
156
156
|
|
157
|
-
<a name="
|
157
|
+
<a name="M000061"></a><b>grouping</b>()
|
158
158
|
|
159
159
|
</div>
|
160
160
|
|
@@ -170,13 +170,13 @@ Returns all grouped clients in this container.
|
|
170
170
|
|
171
171
|
<div class="sourcecode">
|
172
172
|
<p class="source-link">
|
173
|
-
Source: <a href="javascript:toggleSource('
|
173
|
+
Source: <a href="javascript:toggleSource('M000061_source')" id="l_M000061_source">show</a>
|
174
174
|
|
175
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
175
|
+
| <a href="http://github.com/sunaku/rumai/blob/68157cba221ac3cbed28a6a5882b57f4db0516a9/lib/rumai/wm.rb#L472" target="_blank" class="github_url">on GitHub</a>
|
176
176
|
|
177
177
|
</p>
|
178
|
-
<div id="
|
179
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line
|
178
|
+
<div id="M000061_source" class="dyn-source">
|
179
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 472</span>
|
180
180
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">grouping</span>
|
181
181
|
<span class="ruby-identifier">clients</span>.<span class="ruby-identifier">select</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">group?</span> }
|
182
182
|
<span class="ruby-keyword kw">end</span></pre>
|
@@ -57,7 +57,7 @@ connection.
|
|
57
57
|
<dd>
|
58
58
|
<ul>
|
59
59
|
|
60
|
-
<li><a href="#
|
60
|
+
<li><a href="#M000172">attach</a></li>
|
61
61
|
|
62
62
|
</ul>
|
63
63
|
</dd>
|
@@ -66,9 +66,9 @@ connection.
|
|
66
66
|
<dd>
|
67
67
|
<ul>
|
68
68
|
|
69
|
-
<li><a href="#
|
69
|
+
<li><a href="#M000173">clunk</a>,</li>
|
70
70
|
|
71
|
-
<li><a href="#
|
71
|
+
<li><a href="#M000160">create</a></li>
|
72
72
|
|
73
73
|
</ul>
|
74
74
|
</dd>
|
@@ -77,7 +77,7 @@ connection.
|
|
77
77
|
<dd>
|
78
78
|
<ul>
|
79
79
|
|
80
|
-
<li><a href="#
|
80
|
+
<li><a href="#M000158">entries</a></li>
|
81
81
|
|
82
82
|
</ul>
|
83
83
|
</dd>
|
@@ -86,7 +86,7 @@ connection.
|
|
86
86
|
<dd>
|
87
87
|
<ul>
|
88
88
|
|
89
|
-
<li><a href="#
|
89
|
+
<li><a href="#M000086">new</a></li>
|
90
90
|
|
91
91
|
</ul>
|
92
92
|
</dd>
|
@@ -95,7 +95,7 @@ connection.
|
|
95
95
|
<dd>
|
96
96
|
<ul>
|
97
97
|
|
98
|
-
<li><a href="#
|
98
|
+
<li><a href="#M000107">open</a></li>
|
99
99
|
|
100
100
|
</ul>
|
101
101
|
</dd>
|
@@ -104,11 +104,11 @@ connection.
|
|
104
104
|
<dd>
|
105
105
|
<ul>
|
106
106
|
|
107
|
-
<li><a href="#
|
107
|
+
<li><a href="#M000157">read</a>,</li>
|
108
108
|
|
109
|
-
<li><a href="#
|
109
|
+
<li><a href="#M000162">remove</a>,</li>
|
110
110
|
|
111
|
-
<li><a href="#
|
111
|
+
<li><a href="#M000163">remove_fid</a></li>
|
112
112
|
|
113
113
|
</ul>
|
114
114
|
</dd>
|
@@ -117,9 +117,9 @@ connection.
|
|
117
117
|
<dd>
|
118
118
|
<ul>
|
119
119
|
|
120
|
-
<li><a href="#
|
120
|
+
<li><a href="#M000167">stat</a>,</li>
|
121
121
|
|
122
|
-
<li><a href="#
|
122
|
+
<li><a href="#M000168">stat_fid</a></li>
|
123
123
|
|
124
124
|
</ul>
|
125
125
|
</dd>
|
@@ -128,7 +128,7 @@ connection.
|
|
128
128
|
<dd>
|
129
129
|
<ul>
|
130
130
|
|
131
|
-
<li><a href="#
|
131
|
+
<li><a href="#M000099">talk</a></li>
|
132
132
|
|
133
133
|
</ul>
|
134
134
|
</dd>
|
@@ -137,11 +137,11 @@ connection.
|
|
137
137
|
<dd>
|
138
138
|
<ul>
|
139
139
|
|
140
|
-
<li><a href="#
|
140
|
+
<li><a href="#M000169">walk</a>,</li>
|
141
141
|
|
142
|
-
<li><a href="#
|
142
|
+
<li><a href="#M000170">walk_fid</a>,</li>
|
143
143
|
|
144
|
-
<li><a href="#
|
144
|
+
<li><a href="#M000159">write</a></li>
|
145
145
|
|
146
146
|
</ul>
|
147
147
|
</dd>
|
@@ -199,9 +199,9 @@ connection.
|
|
199
199
|
<div class="sectiontitle">Class Public methods</div>
|
200
200
|
|
201
201
|
<div class="method">
|
202
|
-
<div class="title" id="
|
202
|
+
<div class="title" id="M000086">
|
203
203
|
|
204
|
-
<a name="
|
204
|
+
<a name="M000086"></a><b>new</b>(stream)
|
205
205
|
|
206
206
|
</div>
|
207
207
|
|
@@ -210,12 +210,12 @@ connection.
|
|
210
210
|
|
211
211
|
<div class="sourcecode">
|
212
212
|
<p class="source-link">
|
213
|
-
Source: <a href="javascript:toggleSource('
|
213
|
+
Source: <a href="javascript:toggleSource('M000086_source')" id="l_M000086_source">show</a>
|
214
214
|
|
215
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
215
|
+
| <a href="http://github.com/sunaku/rumai/blob/002c49633477b80743577bdc6d2f4f8c9a1bdd46/lib/rumai/ixp/transport.rb#L19" target="_blank" class="github_url">on GitHub</a>
|
216
216
|
|
217
217
|
</p>
|
218
|
-
<div id="
|
218
|
+
<div id="M000086_source" class="dyn-source">
|
219
219
|
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 19</span>
|
220
220
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">stream</span>
|
221
221
|
<span class="ruby-ivar">@stream</span> = <span class="ruby-identifier">stream</span>
|
@@ -263,9 +263,9 @@ connection.
|
|
263
263
|
<div class="sectiontitle">Instance Public methods</div>
|
264
264
|
|
265
265
|
<div class="method">
|
266
|
-
<div class="title" id="
|
266
|
+
<div class="title" id="M000172">
|
267
267
|
|
268
|
-
<a name="
|
268
|
+
<a name="M000172"></a><b>attach</b>(root_fid, auth_fid = Fcall::NOFID, auth_name = ENV['USER'])
|
269
269
|
|
270
270
|
</div>
|
271
271
|
|
@@ -281,12 +281,12 @@ Associates the given FID with the FS root.
|
|
281
281
|
|
282
282
|
<div class="sourcecode">
|
283
283
|
<p class="source-link">
|
284
|
-
Source: <a href="javascript:toggleSource('
|
284
|
+
Source: <a href="javascript:toggleSource('M000172_source')" id="l_M000172_source">show</a>
|
285
285
|
|
286
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
286
|
+
| <a href="http://github.com/sunaku/rumai/blob/002c49633477b80743577bdc6d2f4f8c9a1bdd46/lib/rumai/ixp/transport.rb#L413" target="_blank" class="github_url">on GitHub</a>
|
287
287
|
|
288
288
|
</p>
|
289
|
-
<div id="
|
289
|
+
<div id="M000172_source" class="dyn-source">
|
290
290
|
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 413</span>
|
291
291
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">attach</span> <span class="ruby-identifier">root_fid</span>, <span class="ruby-identifier">auth_fid</span> = <span class="ruby-constant">Fcall</span><span class="ruby-operator">::</span><span class="ruby-constant">NOFID</span>, <span class="ruby-identifier">auth_name</span> = <span class="ruby-constant">ENV</span>[<span class="ruby-value str">'USER'</span>]
|
292
292
|
<span class="ruby-identifier">talk</span> <span class="ruby-constant">Tattach</span>.<span class="ruby-identifier">new</span>(
|
@@ -302,9 +302,9 @@ Associates the given FID with the FS root.
|
|
302
302
|
</div>
|
303
303
|
|
304
304
|
<div class="method">
|
305
|
-
<div class="title" id="
|
305
|
+
<div class="title" id="M000173">
|
306
306
|
|
307
|
-
<a name="
|
307
|
+
<a name="M000173"></a><b>clunk</b>(fid)
|
308
308
|
|
309
309
|
</div>
|
310
310
|
|
@@ -320,12 +320,12 @@ Retires the given FID from use.
|
|
320
320
|
|
321
321
|
<div class="sourcecode">
|
322
322
|
<p class="source-link">
|
323
|
-
Source: <a href="javascript:toggleSource('
|
323
|
+
Source: <a href="javascript:toggleSource('M000173_source')" id="l_M000173_source">show</a>
|
324
324
|
|
325
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
325
|
+
| <a href="http://github.com/sunaku/rumai/blob/002c49633477b80743577bdc6d2f4f8c9a1bdd46/lib/rumai/ixp/transport.rb#L425" target="_blank" class="github_url">on GitHub</a>
|
326
326
|
|
327
327
|
</p>
|
328
|
-
<div id="
|
328
|
+
<div id="M000173_source" class="dyn-source">
|
329
329
|
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 425</span>
|
330
330
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clunk</span> <span class="ruby-identifier">fid</span>
|
331
331
|
<span class="ruby-identifier">talk</span> <span class="ruby-constant">Tclunk</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">:fid</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">fid</span>)
|
@@ -337,9 +337,9 @@ Retires the given FID from use.
|
|
337
337
|
</div>
|
338
338
|
|
339
339
|
<div class="method">
|
340
|
-
<div class="title" id="
|
340
|
+
<div class="title" id="M000160">
|
341
341
|
|
342
|
-
<a name="
|
342
|
+
<a name="M000160"></a><b>create</b>(path, mode = 'rw', perm = 0644)
|
343
343
|
|
344
344
|
</div>
|
345
345
|
|
@@ -356,12 +356,12 @@ modes for a user having the given permission bits.
|
|
356
356
|
|
357
357
|
<div class="sourcecode">
|
358
358
|
<p class="source-link">
|
359
|
-
Source: <a href="javascript:toggleSource('
|
359
|
+
Source: <a href="javascript:toggleSource('M000160_source')" id="l_M000160_source">show</a>
|
360
360
|
|
361
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
361
|
+
| <a href="http://github.com/sunaku/rumai/blob/002c49633477b80743577bdc6d2f4f8c9a1bdd46/lib/rumai/ixp/transport.rb#L336" target="_blank" class="github_url">on GitHub</a>
|
362
362
|
|
363
363
|
</p>
|
364
|
-
<div id="
|
364
|
+
<div id="M000160_source" class="dyn-source">
|
365
365
|
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 336</span>
|
366
366
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create</span> <span class="ruby-identifier">path</span>, <span class="ruby-identifier">mode</span> = <span class="ruby-value str">'rw'</span>, <span class="ruby-identifier">perm</span> = <span class="ruby-value">0644</span>
|
367
367
|
<span class="ruby-identifier">prefix</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-identifier">path</span>)
|
@@ -387,9 +387,9 @@ modes for a user having the given permission bits.
|
|
387
387
|
</div>
|
388
388
|
|
389
389
|
<div class="method">
|
390
|
-
<div class="title" id="
|
390
|
+
<div class="title" id="M000158">
|
391
391
|
|
392
|
-
<a name="
|
392
|
+
<a name="M000158"></a><b>entries</b>(path)
|
393
393
|
|
394
394
|
</div>
|
395
395
|
|
@@ -405,12 +405,12 @@ Returns the names of all files inside the directory whose path is given.
|
|
405
405
|
|
406
406
|
<div class="sourcecode">
|
407
407
|
<p class="source-link">
|
408
|
-
Source: <a href="javascript:toggleSource('
|
408
|
+
Source: <a href="javascript:toggleSource('M000158_source')" id="l_M000158_source">show</a>
|
409
409
|
|
410
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
410
|
+
| <a href="http://github.com/sunaku/rumai/blob/002c49633477b80743577bdc6d2f4f8c9a1bdd46/lib/rumai/ixp/transport.rb#L315" target="_blank" class="github_url">on GitHub</a>
|
411
411
|
|
412
412
|
</p>
|
413
|
-
<div id="
|
413
|
+
<div id="M000158_source" class="dyn-source">
|
414
414
|
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 315</span>
|
415
415
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">entries</span> <span class="ruby-identifier">path</span>
|
416
416
|
<span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">stat</span>(<span class="ruby-identifier">path</span>).<span class="ruby-identifier">directory?</span>
|
@@ -425,9 +425,9 @@ Returns the names of all files inside the directory whose path is given.
|
|
425
425
|
</div>
|
426
426
|
|
427
427
|
<div class="method">
|
428
|
-
<div class="title" id="
|
428
|
+
<div class="title" id="M000107">
|
429
429
|
|
430
|
-
<a name="
|
430
|
+
<a name="M000107"></a><b>open</b>(path, mode = 'r')
|
431
431
|
|
432
432
|
</div>
|
433
433
|
|
@@ -449,12 +449,12 @@ See File::open in the Ruby documentation.
|
|
449
449
|
|
450
450
|
<div class="sourcecode">
|
451
451
|
<p class="source-link">
|
452
|
-
Source: <a href="javascript:toggleSource('
|
452
|
+
Source: <a href="javascript:toggleSource('M000107_source')" id="l_M000107_source">show</a>
|
453
453
|
|
454
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
454
|
+
| <a href="http://github.com/sunaku/rumai/blob/002c49633477b80743577bdc6d2f4f8c9a1bdd46/lib/rumai/ixp/transport.rb#L157" target="_blank" class="github_url">on GitHub</a>
|
455
455
|
|
456
456
|
</p>
|
457
|
-
<div id="
|
457
|
+
<div id="M000107_source" class="dyn-source">
|
458
458
|
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 157</span>
|
459
459
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">open</span> <span class="ruby-identifier">path</span>, <span class="ruby-identifier">mode</span> = <span class="ruby-value str">'r'</span> <span class="ruby-comment cmt"># :yields: FidStream</span>
|
460
460
|
<span class="ruby-identifier">mode</span> = <span class="ruby-constant">MODES</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">mode</span>)
|
@@ -486,9 +486,9 @@ See File::open in the Ruby documentation.
|
|
486
486
|
</div>
|
487
487
|
|
488
488
|
<div class="method">
|
489
|
-
<div class="title" id="
|
489
|
+
<div class="title" id="M000157">
|
490
490
|
|
491
|
-
<a name="
|
491
|
+
<a name="M000157"></a><b>read</b>(path, *args)
|
492
492
|
|
493
493
|
</div>
|
494
494
|
|
@@ -504,12 +504,12 @@ Returns the content of the file/directory at the given path.
|
|
504
504
|
|
505
505
|
<div class="sourcecode">
|
506
506
|
<p class="source-link">
|
507
|
-
Source: <a href="javascript:toggleSource('
|
507
|
+
Source: <a href="javascript:toggleSource('M000157_source')" id="l_M000157_source">show</a>
|
508
508
|
|
509
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
509
|
+
| <a href="http://github.com/sunaku/rumai/blob/002c49633477b80743577bdc6d2f4f8c9a1bdd46/lib/rumai/ixp/transport.rb#L306" target="_blank" class="github_url">on GitHub</a>
|
510
510
|
|
511
511
|
</p>
|
512
|
-
<div id="
|
512
|
+
<div id="M000157_source" class="dyn-source">
|
513
513
|
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 306</span>
|
514
514
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">read</span> <span class="ruby-identifier">path</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>
|
515
515
|
<span class="ruby-identifier">open</span> <span class="ruby-identifier">path</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span>
|
@@ -522,9 +522,9 @@ Returns the content of the file/directory at the given path.
|
|
522
522
|
</div>
|
523
523
|
|
524
524
|
<div class="method">
|
525
|
-
<div class="title" id="
|
525
|
+
<div class="title" id="M000162">
|
526
526
|
|
527
|
-
<a name="
|
527
|
+
<a name="M000162"></a><b>remove</b>(path)
|
528
528
|
|
529
529
|
</div>
|
530
530
|
|
@@ -540,12 +540,12 @@ Deletes the file at the given path.
|
|
540
540
|
|
541
541
|
<div class="sourcecode">
|
542
542
|
<p class="source-link">
|
543
|
-
Source: <a href="javascript:toggleSource('
|
543
|
+
Source: <a href="javascript:toggleSource('M000162_source')" id="l_M000162_source">show</a>
|
544
544
|
|
545
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
545
|
+
| <a href="http://github.com/sunaku/rumai/blob/002c49633477b80743577bdc6d2f4f8c9a1bdd46/lib/rumai/ixp/transport.rb#L358" target="_blank" class="github_url">on GitHub</a>
|
546
546
|
|
547
547
|
</p>
|
548
|
-
<div id="
|
548
|
+
<div id="M000162_source" class="dyn-source">
|
549
549
|
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 358</span>
|
550
550
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove</span> <span class="ruby-identifier">path</span>
|
551
551
|
<span class="ruby-identifier">path_fid</span> = <span class="ruby-identifier">walk</span>(<span class="ruby-identifier">path</span>)
|
@@ -557,9 +557,9 @@ Deletes the file at the given path.
|
|
557
557
|
</div>
|
558
558
|
|
559
559
|
<div class="method">
|
560
|
-
<div class="title" id="
|
560
|
+
<div class="title" id="M000163">
|
561
561
|
|
562
|
-
<a name="
|
562
|
+
<a name="M000163"></a><b>remove_fid</b>(path_fid)
|
563
563
|
|
564
564
|
</div>
|
565
565
|
|
@@ -575,12 +575,12 @@ Deletes the file corresponding to the given FID and clunks the given FID.
|
|
575
575
|
|
576
576
|
<div class="sourcecode">
|
577
577
|
<p class="source-link">
|
578
|
-
Source: <a href="javascript:toggleSource('
|
578
|
+
Source: <a href="javascript:toggleSource('M000163_source')" id="l_M000163_source">show</a>
|
579
579
|
|
580
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
580
|
+
| <a href="http://github.com/sunaku/rumai/blob/002c49633477b80743577bdc6d2f4f8c9a1bdd46/lib/rumai/ixp/transport.rb#L367" target="_blank" class="github_url">on GitHub</a>
|
581
581
|
|
582
582
|
</p>
|
583
|
-
<div id="
|
583
|
+
<div id="M000163_source" class="dyn-source">
|
584
584
|
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 367</span>
|
585
585
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove_fid</span> <span class="ruby-identifier">path_fid</span>
|
586
586
|
<span class="ruby-identifier">talk</span> <span class="ruby-constant">Tremove</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">:fid</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">path_fid</span>)
|
@@ -591,9 +591,9 @@ Deletes the file corresponding to the given FID and clunks the given FID.
|
|
591
591
|
</div>
|
592
592
|
|
593
593
|
<div class="method">
|
594
|
-
<div class="title" id="
|
594
|
+
<div class="title" id="M000167">
|
595
595
|
|
596
|
-
<a name="
|
596
|
+
<a name="M000167"></a><b>stat</b>(path)
|
597
597
|
|
598
598
|
</div>
|
599
599
|
|
@@ -609,12 +609,12 @@ Returns information about the file at the given path.
|
|
609
609
|
|
610
610
|
<div class="sourcecode">
|
611
611
|
<p class="source-link">
|
612
|
-
Source: <a href="javascript:toggleSource('
|
612
|
+
Source: <a href="javascript:toggleSource('M000167_source')" id="l_M000167_source">show</a>
|
613
613
|
|
614
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
614
|
+
| <a href="http://github.com/sunaku/rumai/blob/002c49633477b80743577bdc6d2f4f8c9a1bdd46/lib/rumai/ixp/transport.rb#L374" target="_blank" class="github_url">on GitHub</a>
|
615
615
|
|
616
616
|
</p>
|
617
|
-
<div id="
|
617
|
+
<div id="M000167_source" class="dyn-source">
|
618
618
|
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 374</span>
|
619
619
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stat</span> <span class="ruby-identifier">path</span>
|
620
620
|
<span class="ruby-identifier">with_fid</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">path_fid</span><span class="ruby-operator">|</span>
|
@@ -628,9 +628,9 @@ Returns information about the file at the given path.
|
|
628
628
|
</div>
|
629
629
|
|
630
630
|
<div class="method">
|
631
|
-
<div class="title" id="
|
631
|
+
<div class="title" id="M000168">
|
632
632
|
|
633
|
-
<a name="
|
633
|
+
<a name="M000168"></a><b>stat_fid</b>(path_fid)
|
634
634
|
|
635
635
|
</div>
|
636
636
|
|
@@ -646,12 +646,12 @@ Returns information about the file referenced by the given FID.
|
|
646
646
|
|
647
647
|
<div class="sourcecode">
|
648
648
|
<p class="source-link">
|
649
|
-
Source: <a href="javascript:toggleSource('
|
649
|
+
Source: <a href="javascript:toggleSource('M000168_source')" id="l_M000168_source">show</a>
|
650
650
|
|
651
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
651
|
+
| <a href="http://github.com/sunaku/rumai/blob/002c49633477b80743577bdc6d2f4f8c9a1bdd46/lib/rumai/ixp/transport.rb#L384" target="_blank" class="github_url">on GitHub</a>
|
652
652
|
|
653
653
|
</p>
|
654
|
-
<div id="
|
654
|
+
<div id="M000168_source" class="dyn-source">
|
655
655
|
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 384</span>
|
656
656
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stat_fid</span> <span class="ruby-identifier">path_fid</span>
|
657
657
|
<span class="ruby-identifier">req</span> = <span class="ruby-constant">Tstat</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">:fid</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">path_fid</span>)
|
@@ -664,9 +664,9 @@ Returns information about the file referenced by the given FID.
|
|
664
664
|
</div>
|
665
665
|
|
666
666
|
<div class="method">
|
667
|
-
<div class="title" id="
|
667
|
+
<div class="title" id="M000099">
|
668
668
|
|
669
|
-
<a name="
|
669
|
+
<a name="M000099"></a><b>talk</b>(request)
|
670
670
|
|
671
671
|
</div>
|
672
672
|
|
@@ -687,12 +687,12 @@ about the details of tag collisions and thread safety.
|
|
687
687
|
|
688
688
|
<div class="sourcecode">
|
689
689
|
<p class="source-link">
|
690
|
-
Source: <a href="javascript:toggleSource('
|
690
|
+
Source: <a href="javascript:toggleSource('M000099_source')" id="l_M000099_source">show</a>
|
691
691
|
|
692
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
692
|
+
| <a href="http://github.com/sunaku/rumai/blob/002c49633477b80743577bdc6d2f4f8c9a1bdd46/lib/rumai/ixp/transport.rb#L110" target="_blank" class="github_url">on GitHub</a>
|
693
693
|
|
694
694
|
</p>
|
695
|
-
<div id="
|
695
|
+
<div id="M000099_source" class="dyn-source">
|
696
696
|
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 110</span>
|
697
697
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">talk</span> <span class="ruby-identifier">request</span>
|
698
698
|
<span class="ruby-comment cmt"># send the request</span>
|
@@ -721,9 +721,9 @@ about the details of tag collisions and thread safety.
|
|
721
721
|
</div>
|
722
722
|
|
723
723
|
<div class="method">
|
724
|
-
<div class="title" id="
|
724
|
+
<div class="title" id="M000169">
|
725
725
|
|
726
|
-
<a name="
|
726
|
+
<a name="M000169"></a><b>walk</b>(path)
|
727
727
|
|
728
728
|
</div>
|
729
729
|
|
@@ -739,12 +739,12 @@ Returns an FID corresponding to the given path.
|
|
739
739
|
|
740
740
|
<div class="sourcecode">
|
741
741
|
<p class="source-link">
|
742
|
-
Source: <a href="javascript:toggleSource('
|
742
|
+
Source: <a href="javascript:toggleSource('M000169_source')" id="l_M000169_source">show</a>
|
743
743
|
|
744
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
744
|
+
| <a href="http://github.com/sunaku/rumai/blob/002c49633477b80743577bdc6d2f4f8c9a1bdd46/lib/rumai/ixp/transport.rb#L393" target="_blank" class="github_url">on GitHub</a>
|
745
745
|
|
746
746
|
</p>
|
747
|
-
<div id="
|
747
|
+
<div id="M000169_source" class="dyn-source">
|
748
748
|
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 393</span>
|
749
749
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">walk</span> <span class="ruby-identifier">path</span>
|
750
750
|
<span class="ruby-identifier">fid</span> = <span class="ruby-ivar">@fid_pool</span>.<span class="ruby-identifier">obtain</span>
|
@@ -757,9 +757,9 @@ Returns an FID corresponding to the given path.
|
|
757
757
|
</div>
|
758
758
|
|
759
759
|
<div class="method">
|
760
|
-
<div class="title" id="
|
760
|
+
<div class="title" id="M000170">
|
761
761
|
|
762
|
-
<a name="
|
762
|
+
<a name="M000170"></a><b>walk_fid</b>(path_fid, path)
|
763
763
|
|
764
764
|
</div>
|
765
765
|
|
@@ -775,12 +775,12 @@ Associates the given FID to the given path.
|
|
775
775
|
|
776
776
|
<div class="sourcecode">
|
777
777
|
<p class="source-link">
|
778
|
-
Source: <a href="javascript:toggleSource('
|
778
|
+
Source: <a href="javascript:toggleSource('M000170_source')" id="l_M000170_source">show</a>
|
779
779
|
|
780
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
780
|
+
| <a href="http://github.com/sunaku/rumai/blob/002c49633477b80743577bdc6d2f4f8c9a1bdd46/lib/rumai/ixp/transport.rb#L402" target="_blank" class="github_url">on GitHub</a>
|
781
781
|
|
782
782
|
</p>
|
783
|
-
<div id="
|
783
|
+
<div id="M000170_source" class="dyn-source">
|
784
784
|
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 402</span>
|
785
785
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">walk_fid</span> <span class="ruby-identifier">path_fid</span>, <span class="ruby-identifier">path</span>
|
786
786
|
<span class="ruby-identifier">talk</span> <span class="ruby-constant">Twalk</span>.<span class="ruby-identifier">new</span>(
|
@@ -795,9 +795,9 @@ Associates the given FID to the given path.
|
|
795
795
|
</div>
|
796
796
|
|
797
797
|
<div class="method">
|
798
|
-
<div class="title" id="
|
798
|
+
<div class="title" id="M000159">
|
799
799
|
|
800
|
-
<a name="
|
800
|
+
<a name="M000159"></a><b>write</b>(path, content)
|
801
801
|
|
802
802
|
</div>
|
803
803
|
|
@@ -813,12 +813,12 @@ Returns the content of the file/directory at the given path.
|
|
813
813
|
|
814
814
|
<div class="sourcecode">
|
815
815
|
<p class="source-link">
|
816
|
-
Source: <a href="javascript:toggleSource('
|
816
|
+
Source: <a href="javascript:toggleSource('M000159_source')" id="l_M000159_source">show</a>
|
817
817
|
|
818
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
818
|
+
| <a href="http://github.com/sunaku/rumai/blob/002c49633477b80743577bdc6d2f4f8c9a1bdd46/lib/rumai/ixp/transport.rb#L326" target="_blank" class="github_url">on GitHub</a>
|
819
819
|
|
820
820
|
</p>
|
821
|
-
<div id="
|
821
|
+
<div id="M000159_source" class="dyn-source">
|
822
822
|
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 326</span>
|
823
823
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">write</span> <span class="ruby-identifier">path</span>, <span class="ruby-identifier">content</span>
|
824
824
|
<span class="ruby-identifier">open</span> <span class="ruby-identifier">path</span>, <span class="ruby-value str">'w'</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span>
|