folio 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. data/CHANGES +2 -0
  2. data/MANIFEST +20 -5
  3. data/METADATA +3 -2
  4. data/README +5 -0
  5. data/doc/rdoc/classes/Enumerator.html +92 -0
  6. data/doc/rdoc/classes/Folio.html +12 -2
  7. data/doc/rdoc/classes/Folio/BlockDevice.html +4 -4
  8. data/doc/rdoc/classes/Folio/CharacterDevice.html +4 -4
  9. data/doc/rdoc/classes/Folio/Directory.html +169 -41
  10. data/doc/rdoc/classes/Folio/Document.html +130 -51
  11. data/doc/rdoc/classes/Folio/FileObject.html +318 -313
  12. data/doc/rdoc/classes/Folio/Pipe.html +8 -8
  13. data/doc/rdoc/classes/Folio/Prompt.html +261 -218
  14. data/doc/rdoc/created.rid +1 -1
  15. data/doc/rdoc/files/CHANGES.html +92 -0
  16. data/doc/rdoc/files/METADATA.html +7 -6
  17. data/doc/rdoc/files/README.html +1 -1
  18. data/doc/rdoc/files/lib/folio/directory_rb.html +1 -1
  19. data/doc/rdoc/files/lib/folio/document_rb.html +1 -1
  20. data/doc/rdoc/files/lib/folio/fileobject_rb.html +6 -1
  21. data/doc/rdoc/files/lib/folio/prompt_rb.html +1 -1
  22. data/doc/rdoc/files/lib/folio_rb.html +1 -1
  23. data/doc/rdoc/fr_class_index.html +1 -0
  24. data/doc/rdoc/fr_file_index.html +1 -0
  25. data/doc/rdoc/fr_method_index.html +126 -116
  26. data/doc/ri/Enumerator/cdesc-Enumerator.yaml +15 -0
  27. data/doc/ri/Folio/Directory/%2f-i.yaml +1 -1
  28. data/doc/ri/Folio/Directory/cdesc-Directory.yaml +10 -2
  29. data/doc/ri/Folio/Directory/chdir-i.yaml +3 -1
  30. data/doc/ri/Folio/Directory/chmod_r-i.yaml +2 -0
  31. data/doc/ri/Folio/Directory/chown_r-i.yaml +1 -1
  32. data/doc/ri/Folio/Directory/chroot-i.yaml +2 -0
  33. data/doc/ri/Folio/Directory/cp_r-i.yaml +1 -1
  34. data/doc/ri/Folio/Directory/directories-i.yaml +12 -0
  35. data/doc/ri/Folio/Directory/directory_entries-i.yaml +12 -0
  36. data/doc/ri/Folio/Directory/document_entries-i.yaml +12 -0
  37. data/doc/ri/Folio/Directory/documents-i.yaml +12 -0
  38. data/doc/ri/Folio/Directory/entries-i.yaml +1 -1
  39. data/doc/ri/Folio/Directory/files-i.yaml +12 -0
  40. data/doc/ri/Folio/Directory/foreach-i.yaml +2 -0
  41. data/doc/ri/Folio/Directory/rm_r-i.yaml +2 -0
  42. data/doc/ri/Folio/Directory/rm_rf-i.yaml +2 -0
  43. data/doc/ri/Folio/Directory/rmdir-i.yaml +2 -0
  44. data/doc/ri/Folio/Document/%3c%3c-i.yaml +12 -0
  45. data/doc/ri/Folio/{Prompt/paths-i.yaml → Document/%3c-i.yaml} +4 -4
  46. data/doc/ri/Folio/Document/append-i.yaml +13 -0
  47. data/doc/ri/Folio/Document/cdesc-Document.yaml +10 -2
  48. data/doc/ri/Folio/{Directory/paths-i.yaml → Document/document%3f-i.yaml} +3 -3
  49. data/doc/ri/Folio/Document/write-i.yaml +13 -0
  50. data/doc/ri/Folio/FileObject/cdesc-FileObject.yaml +2 -2
  51. data/doc/ri/Folio/FileObject/{file%3f-i.yaml → document%3f-i.yaml} +4 -2
  52. data/doc/ri/Folio/Prompt/{pwd-i.yaml → %5b%5d-i.yaml} +5 -3
  53. data/doc/ri/Folio/Prompt/cdesc-Prompt.yaml +11 -5
  54. data/doc/ri/Folio/Prompt/directories-i.yaml +1 -1
  55. data/doc/ri/Folio/Prompt/directory_entries-i.yaml +12 -0
  56. data/doc/ri/Folio/Prompt/document_entries-i.yaml +12 -0
  57. data/doc/ri/Folio/Prompt/documents-i.yaml +12 -0
  58. data/doc/ri/Folio/Prompt/entries-i.yaml +1 -1
  59. data/doc/ri/Folio/Prompt/file-i.yaml +4 -3
  60. data/doc/ri/Folio/Prompt/files-i.yaml +1 -1
  61. data/doc/ri/Folio/Prompt/fileutils-i.yaml +2 -0
  62. data/doc/ri/Folio/Prompt/mode-i.yaml +1 -1
  63. data/doc/ri/created.rid +1 -1
  64. data/lib/folio.rb +7 -50
  65. data/lib/folio/directory.rb +55 -10
  66. data/lib/folio/document.rb +14 -1
  67. data/lib/folio/fileobject.rb +9 -1
  68. data/lib/folio/prompt.rb +65 -25
  69. metadata +25 -9
  70. data/doc/ri/Folio/Document/file%3f-i.yaml +0 -10
@@ -82,8 +82,8 @@ FileObject
82
82
 
83
83
  <div class="sectiontitle">Methods</div>
84
84
  <ul>
85
- <li><a href="#M000032">new</a></li>
86
- <li><a href="#M000033">pipe?</a></li>
85
+ <li><a href="#M000036">new</a></li>
86
+ <li><a href="#M000037">pipe?</a></li>
87
87
  </ul>
88
88
 
89
89
 
@@ -94,11 +94,11 @@ FileObject
94
94
  <div class="sectiontitle">Public Class methods</div>
95
95
  <div class="method">
96
96
  <div class="title">
97
- <a name="M000032"></a><b>new</b>(path)
97
+ <a name="M000036"></a><b>new</b>(path)
98
98
  </div>
99
99
  <div class="sourcecode">
100
- <p class="source-link">[ <a href="javascript:toggleSource('M000032_source')" id="l_M000032_source">show source</a> ]</p>
101
- <div id="M000032_source" class="dyn-source">
100
+ <p class="source-link">[ <a href="javascript:toggleSource('M000036_source')" id="l_M000036_source">show source</a> ]</p>
101
+ <div id="M000036_source" class="dyn-source">
102
102
  <pre>
103
103
  <span class="ruby-comment cmt"># File lib/folio/pipe.rb, line 7</span>
104
104
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">path</span>)
@@ -111,11 +111,11 @@ FileObject
111
111
  <div class="sectiontitle">Public Instance methods</div>
112
112
  <div class="method">
113
113
  <div class="title">
114
- <a name="M000033"></a><b>pipe?</b>()
114
+ <a name="M000037"></a><b>pipe?</b>()
115
115
  </div>
116
116
  <div class="sourcecode">
117
- <p class="source-link">[ <a href="javascript:toggleSource('M000033_source')" id="l_M000033_source">show source</a> ]</p>
118
- <div id="M000033_source" class="dyn-source">
117
+ <p class="source-link">[ <a href="javascript:toggleSource('M000037_source')" id="l_M000037_source">show source</a> ]</p>
118
+ <div id="M000037_source" class="dyn-source">
119
119
  <pre>
120
120
  <span class="ruby-comment cmt"># File lib/folio/pipe.rb, line 11</span>
121
121
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pipe?</span> ; <span class="ruby-keyword kw">true</span> ; <span class="ruby-keyword kw">end</span>
@@ -82,39 +82,41 @@ Object
82
82
 
83
83
  <div class="sectiontitle">Methods</div>
84
84
  <ul>
85
- <li><a href="#M000039">+</a></li>
86
- <li><a href="#M000040">/</a></li>
87
- <li><a href="#M000066">[]</a></li>
88
- <li><a href="#M000047">cd</a></li>
89
- <li><a href="#M000061">chmod</a></li>
90
- <li><a href="#M000062">chmod_r</a></li>
91
- <li><a href="#M000063">chown</a></li>
92
- <li><a href="#M000064">chown_r</a></li>
93
- <li><a href="#M000054">cp</a></li>
94
- <li><a href="#M000055">cp_r</a></li>
95
- <li><a href="#M000044">directories</a></li>
96
- <li><a href="#M000042">entries</a></li>
97
- <li><a href="#M000038">file</a></li>
98
- <li><a href="#M000045">files</a></li>
99
- <li><a href="#M000046">glob</a></li>
100
- <li><a href="#M000060">install</a></li>
101
- <li><a href="#M000051">ln</a></li>
102
- <li><a href="#M000052">ln_s</a></li>
103
- <li><a href="#M000053">ln_sf</a></li>
104
- <li><a href="#M000043">ls</a></li>
105
- <li><a href="#M000048">mkdir</a></li>
106
- <li><a href="#M000049">mkdir_p</a></li>
107
- <li><a href="#M000035">mode</a></li>
108
- <li><a href="#M000056">mv</a></li>
109
- <li><a href="#M000034">new</a></li>
110
- <li><a href="#M000041">paths</a></li>
111
- <li><a href="#M000037">pwd</a></li>
112
- <li><a href="#M000057">rm</a></li>
113
- <li><a href="#M000058">rm_r</a></li>
114
- <li><a href="#M000059">rm_rf</a></li>
115
- <li><a href="#M000050">rmdir</a></li>
116
- <li><a href="#M000036">to_s</a></li>
117
- <li><a href="#M000065">touch</a></li>
85
+ <li><a href="#M000043">+</a></li>
86
+ <li><a href="#M000044">/</a></li>
87
+ <li><a href="#M000072">[]</a></li>
88
+ <li><a href="#M000042">[]</a></li>
89
+ <li><a href="#M000053">cd</a></li>
90
+ <li><a href="#M000067">chmod</a></li>
91
+ <li><a href="#M000068">chmod_r</a></li>
92
+ <li><a href="#M000069">chown</a></li>
93
+ <li><a href="#M000070">chown_r</a></li>
94
+ <li><a href="#M000060">cp</a></li>
95
+ <li><a href="#M000061">cp_r</a></li>
96
+ <li><a href="#M000051">directories</a></li>
97
+ <li><a href="#M000047">directory_entries</a></li>
98
+ <li><a href="#M000048">document_entries</a></li>
99
+ <li><a href="#M000050">documents</a></li>
100
+ <li><a href="#M000045">entries</a></li>
101
+ <li><a href="#M000041">file</a></li>
102
+ <li><a href="#M000049">files</a></li>
103
+ <li><a href="#M000052">glob</a></li>
104
+ <li><a href="#M000066">install</a></li>
105
+ <li><a href="#M000057">ln</a></li>
106
+ <li><a href="#M000058">ln_s</a></li>
107
+ <li><a href="#M000059">ln_sf</a></li>
108
+ <li><a href="#M000046">ls</a></li>
109
+ <li><a href="#M000054">mkdir</a></li>
110
+ <li><a href="#M000055">mkdir_p</a></li>
111
+ <li><a href="#M000039">mode</a></li>
112
+ <li><a href="#M000062">mv</a></li>
113
+ <li><a href="#M000038">new</a></li>
114
+ <li><a href="#M000063">rm</a></li>
115
+ <li><a href="#M000064">rm_r</a></li>
116
+ <li><a href="#M000065">rm_rf</a></li>
117
+ <li><a href="#M000056">rmdir</a></li>
118
+ <li><a href="#M000040">to_s</a></li>
119
+ <li><a href="#M000071">touch</a></li>
118
120
  </ul>
119
121
 
120
122
 
@@ -127,21 +129,25 @@ Object
127
129
  <td class='attr-rw'>
128
130
  [R]
129
131
  </td>
130
- <td class='attr-name'>path</td>
131
- <td class='attr-desc'></td>
132
+ <td class='attr-name'>work</td>
133
+ <td class='attr-desc'>
134
+ @work store the present working directory as a <a
135
+ href="Directory.html">Directory</a> object.
136
+
137
+ </td>
132
138
  </tr>
133
139
  </table>
134
140
 
135
141
  <div class="sectiontitle">Public Class methods</div>
136
142
  <div class="method">
137
143
  <div class="title">
138
- <a name="M000066"></a><b>[]</b>(path)
144
+ <a name="M000072"></a><b>[]</b>(path)
139
145
  </div>
140
146
  <div class="sourcecode">
141
- <p class="source-link">[ <a href="javascript:toggleSource('M000066_source')" id="l_M000066_source">show source</a> ]</p>
142
- <div id="M000066_source" class="dyn-source">
147
+ <p class="source-link">[ <a href="javascript:toggleSource('M000072_source')" id="l_M000072_source">show source</a> ]</p>
148
+ <div id="M000072_source" class="dyn-source">
143
149
  <pre>
144
- <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 232</span>
150
+ <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 244</span>
145
151
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-operator">[]</span>(<span class="ruby-identifier">path</span>)
146
152
  <span class="ruby-identifier">new</span>(<span class="ruby-identifier">path</span>)
147
153
  <span class="ruby-keyword kw">end</span>
@@ -151,13 +157,13 @@ Object
151
157
  </div>
152
158
  <div class="method">
153
159
  <div class="title">
154
- <a name="M000034"></a><b>new</b>(*path)
160
+ <a name="M000038"></a><b>new</b>(*path)
155
161
  </div>
156
162
  <div class="sourcecode">
157
- <p class="source-link">[ <a href="javascript:toggleSource('M000034_source')" id="l_M000034_source">show source</a> ]</p>
158
- <div id="M000034_source" class="dyn-source">
163
+ <p class="source-link">[ <a href="javascript:toggleSource('M000038_source')" id="l_M000038_source">show source</a> ]</p>
164
+ <div id="M000038_source" class="dyn-source">
159
165
  <pre>
160
- <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 10</span>
166
+ <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 20</span>
161
167
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">path</span>)
162
168
  <span class="ruby-identifier">opts</span> = (<span class="ruby-constant">Hash</span><span class="ruby-operator">===</span><span class="ruby-identifier">path</span>.<span class="ruby-identifier">last</span> <span class="ruby-value">? </span><span class="ruby-identifier">path</span>.<span class="ruby-identifier">pop</span> <span class="ruby-operator">:</span> {})
163
169
  <span class="ruby-identifier">mode</span>(<span class="ruby-identifier">opts</span>)
@@ -180,24 +186,24 @@ Object
180
186
  <div class="sectiontitle">Public Instance methods</div>
181
187
  <div class="method">
182
188
  <div class="title">
183
- <a name="M000039"></a><b>+</b>(fname)
189
+ <a name="M000043"></a><b>+</b>(fname)
184
190
  </div>
185
191
  <div class="description">
186
192
  <p>
187
- Join <a href="Prompt.html#M000041">paths</a>.
193
+ Join paths.
188
194
  </p>
189
195
  </div>
190
196
  <div class="aka">
191
197
  This method is also aliased as
192
- <a href="Prompt.html#M000040">/</a>
198
+ <a href="Prompt.html#M000044">/</a>
193
199
  </div>
194
200
  <div class="sourcecode">
195
- <p class="source-link">[ <a href="javascript:toggleSource('M000039_source')" id="l_M000039_source">show source</a> ]</p>
196
- <div id="M000039_source" class="dyn-source">
201
+ <p class="source-link">[ <a href="javascript:toggleSource('M000043_source')" id="l_M000043_source">show source</a> ]</p>
202
+ <div id="M000043_source" class="dyn-source">
197
203
  <pre>
198
- <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 55</span>
204
+ <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 62</span>
199
205
  <span class="ruby-keyword kw">def</span> <span class="ruby-operator">+</span>(<span class="ruby-identifier">fname</span>)
200
- <span class="ruby-ivar">@path</span> =<span class="ruby-operator">+</span> <span class="ruby-identifier">fname</span>
206
+ <span class="ruby-ivar">@work</span> =<span class="ruby-operator">+</span> <span class="ruby-identifier">fname</span>
201
207
  <span class="ruby-keyword kw">end</span>
202
208
  </pre>
203
209
  </div>
@@ -205,7 +211,7 @@ Join <a href="Prompt.html#M000041">paths</a>.
205
211
  </div>
206
212
  <div class="method">
207
213
  <div class="title">
208
- <a name="M000040"></a><b>/</b>(fname)
214
+ <a name="M000044"></a><b>/</b>(fname)
209
215
  </div>
210
216
  <div class="description">
211
217
  <p>
@@ -215,19 +221,29 @@ Alias for #+
215
221
  </div>
216
222
  <div class="method">
217
223
  <div class="title">
218
- <a name="M000047"></a><b>cd</b>(dir, &amp;block)
224
+ <a name="M000042"></a><b>[]</b>(name)
225
+ </div>
226
+ <div class="description">
227
+ <p>
228
+ Alias for <a href="Prompt.html#M000041">file</a>
229
+ </p>
230
+ </div>
231
+ </div>
232
+ <div class="method">
233
+ <div class="title">
234
+ <a name="M000053"></a><b>cd</b>(dir, &amp;block)
219
235
  </div>
220
236
  <div class="sourcecode">
221
- <p class="source-link">[ <a href="javascript:toggleSource('M000047_source')" id="l_M000047_source">show source</a> ]</p>
222
- <div id="M000047_source" class="dyn-source">
237
+ <p class="source-link">[ <a href="javascript:toggleSource('M000053_source')" id="l_M000053_source">show source</a> ]</p>
238
+ <div id="M000053_source" class="dyn-source">
223
239
  <pre>
224
- <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 88</span>
240
+ <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 99</span>
225
241
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cd</span>(<span class="ruby-identifier">dir</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
226
242
  <span class="ruby-comment cmt">#dir = localize(dir)</span>
227
243
  <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block</span>
228
- <span class="ruby-ivar">@path</span>.<span class="ruby-identifier">cd</span>(<span class="ruby-identifier">dir</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
244
+ <span class="ruby-ivar">@work</span>.<span class="ruby-identifier">cd</span>(<span class="ruby-identifier">dir</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
229
245
  <span class="ruby-keyword kw">else</span>
230
- <span class="ruby-ivar">@path</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">dir</span>
246
+ <span class="ruby-ivar">@work</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">dir</span>
231
247
  <span class="ruby-keyword kw">end</span>
232
248
  <span class="ruby-keyword kw">end</span>
233
249
  </pre>
@@ -236,13 +252,13 @@ Alias for #+
236
252
  </div>
237
253
  <div class="method">
238
254
  <div class="title">
239
- <a name="M000061"></a><b>chmod</b>(mode, list, options)
255
+ <a name="M000067"></a><b>chmod</b>(mode, list, options)
240
256
  </div>
241
257
  <div class="sourcecode">
242
- <p class="source-link">[ <a href="javascript:toggleSource('M000061_source')" id="l_M000061_source">show source</a> ]</p>
243
- <div id="M000061_source" class="dyn-source">
258
+ <p class="source-link">[ <a href="javascript:toggleSource('M000067_source')" id="l_M000067_source">show source</a> ]</p>
259
+ <div id="M000067_source" class="dyn-source">
244
260
  <pre>
245
- <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 178</span>
261
+ <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 189</span>
246
262
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chmod</span>(<span class="ruby-identifier">mode</span>, <span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span>)
247
263
  <span class="ruby-identifier">list</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">list</span>)
248
264
  <span class="ruby-identifier">fileutils</span>.<span class="ruby-identifier">chmod</span>(<span class="ruby-identifier">mode</span>, <span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span>)
@@ -253,13 +269,13 @@ Alias for #+
253
269
  </div>
254
270
  <div class="method">
255
271
  <div class="title">
256
- <a name="M000062"></a><b>chmod_r</b>(mode, list, options)
272
+ <a name="M000068"></a><b>chmod_r</b>(mode, list, options)
257
273
  </div>
258
274
  <div class="sourcecode">
259
- <p class="source-link">[ <a href="javascript:toggleSource('M000062_source')" id="l_M000062_source">show source</a> ]</p>
260
- <div id="M000062_source" class="dyn-source">
275
+ <p class="source-link">[ <a href="javascript:toggleSource('M000068_source')" id="l_M000068_source">show source</a> ]</p>
276
+ <div id="M000068_source" class="dyn-source">
261
277
  <pre>
262
- <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 183</span>
278
+ <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 194</span>
263
279
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chmod_r</span>(<span class="ruby-identifier">mode</span>, <span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span>)
264
280
  <span class="ruby-identifier">list</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">list</span>)
265
281
  <span class="ruby-identifier">fileutils</span>.<span class="ruby-identifier">chmod_r</span>(<span class="ruby-identifier">mode</span>, <span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span>)
@@ -270,18 +286,18 @@ Alias for #+
270
286
  </div>
271
287
  <div class="method">
272
288
  <div class="title">
273
- <a name="M000063"></a><b>chown</b>(user, group, list, options)
289
+ <a name="M000069"></a><b>chown</b>(user, group, list, options)
274
290
  </div>
275
291
  <div class="description">
276
292
  <p>
277
- alias_method :chmod_R, :<a href="Prompt.html#M000062">chmod_r</a>
293
+ alias_method :chmod_R, :<a href="Prompt.html#M000068">chmod_r</a>
278
294
  </p>
279
295
  </div>
280
296
  <div class="sourcecode">
281
- <p class="source-link">[ <a href="javascript:toggleSource('M000063_source')" id="l_M000063_source">show source</a> ]</p>
282
- <div id="M000063_source" class="dyn-source">
297
+ <p class="source-link">[ <a href="javascript:toggleSource('M000069_source')" id="l_M000069_source">show source</a> ]</p>
298
+ <div id="M000069_source" class="dyn-source">
283
299
  <pre>
284
- <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 189</span>
300
+ <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 200</span>
285
301
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chown</span>(<span class="ruby-identifier">user</span>, <span class="ruby-identifier">group</span>, <span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span>)
286
302
  <span class="ruby-identifier">list</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">list</span>)
287
303
  <span class="ruby-identifier">fileutils</span>.<span class="ruby-identifier">chown</span>(<span class="ruby-identifier">user</span>, <span class="ruby-identifier">group</span>, <span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span>)
@@ -292,13 +308,13 @@ alias_method :chmod_R, :<a href="Prompt.html#M000062">chmod_r</a>
292
308
  </div>
293
309
  <div class="method">
294
310
  <div class="title">
295
- <a name="M000064"></a><b>chown_r</b>(user, group, list, options)
311
+ <a name="M000070"></a><b>chown_r</b>(user, group, list, options)
296
312
  </div>
297
313
  <div class="sourcecode">
298
- <p class="source-link">[ <a href="javascript:toggleSource('M000064_source')" id="l_M000064_source">show source</a> ]</p>
299
- <div id="M000064_source" class="dyn-source">
314
+ <p class="source-link">[ <a href="javascript:toggleSource('M000070_source')" id="l_M000070_source">show source</a> ]</p>
315
+ <div id="M000070_source" class="dyn-source">
300
316
  <pre>
301
- <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 194</span>
317
+ <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 205</span>
302
318
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chown_r</span>(<span class="ruby-identifier">user</span>, <span class="ruby-identifier">group</span>, <span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span>)
303
319
  <span class="ruby-identifier">list</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">list</span>)
304
320
  <span class="ruby-identifier">fileutils</span>.<span class="ruby-identifier">chown_r</span>(<span class="ruby-identifier">user</span>, <span class="ruby-identifier">group</span>, <span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span>)
@@ -309,18 +325,18 @@ alias_method :chmod_R, :<a href="Prompt.html#M000062">chmod_r</a>
309
325
  </div>
310
326
  <div class="method">
311
327
  <div class="title">
312
- <a name="M000054"></a><b>cp</b>(src, dest, options)
328
+ <a name="M000060"></a><b>cp</b>(src, dest, options)
313
329
  </div>
314
330
  <div class="description">
315
331
  <p>
316
- <a href="Prompt.html#M000054">cp</a>(list, dir, options)
332
+ <a href="Prompt.html#M000060">cp</a>(list, dir, options)
317
333
  </p>
318
334
  </div>
319
335
  <div class="sourcecode">
320
- <p class="source-link">[ <a href="javascript:toggleSource('M000054_source')" id="l_M000054_source">show source</a> ]</p>
321
- <div id="M000054_source" class="dyn-source">
336
+ <p class="source-link">[ <a href="javascript:toggleSource('M000060_source')" id="l_M000060_source">show source</a> ]</p>
337
+ <div id="M000060_source" class="dyn-source">
322
338
  <pre>
323
- <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 137</span>
339
+ <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 148</span>
324
340
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cp</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">dest</span>, <span class="ruby-identifier">options</span>)
325
341
  <span class="ruby-identifier">src</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">src</span>)
326
342
  <span class="ruby-identifier">dest</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">dest</span>)
@@ -332,18 +348,18 @@ alias_method :chmod_R, :<a href="Prompt.html#M000062">chmod_r</a>
332
348
  </div>
333
349
  <div class="method">
334
350
  <div class="title">
335
- <a name="M000055"></a><b>cp_r</b>(src, dest, options)
351
+ <a name="M000061"></a><b>cp_r</b>(src, dest, options)
336
352
  </div>
337
353
  <div class="description">
338
354
  <p>
339
- <a href="Prompt.html#M000055">cp_r</a>(list, dir, options)
355
+ <a href="Prompt.html#M000061">cp_r</a>(list, dir, options)
340
356
  </p>
341
357
  </div>
342
358
  <div class="sourcecode">
343
- <p class="source-link">[ <a href="javascript:toggleSource('M000055_source')" id="l_M000055_source">show source</a> ]</p>
344
- <div id="M000055_source" class="dyn-source">
359
+ <p class="source-link">[ <a href="javascript:toggleSource('M000061_source')" id="l_M000061_source">show source</a> ]</p>
360
+ <div id="M000061_source" class="dyn-source">
345
361
  <pre>
346
- <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 144</span>
362
+ <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 155</span>
347
363
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cp_r</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">dest</span>, <span class="ruby-identifier">options</span>)
348
364
  <span class="ruby-identifier">src</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">src</span>)
349
365
  <span class="ruby-identifier">dest</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">dest</span>)
@@ -355,21 +371,61 @@ alias_method :chmod_R, :<a href="Prompt.html#M000062">chmod_r</a>
355
371
  </div>
356
372
  <div class="method">
357
373
  <div class="title">
358
- <a name="M000044"></a><b>directories</b>()
374
+ <a name="M000051"></a><b>directories</b>()
359
375
  </div>
360
376
  <div class="description">
361
377
  <p>
362
- <a href="Directory.html">Directory</a> <a
363
- href="Prompt.html#M000042">entries</a>.
378
+ Returns <a href="../Enumerator.html">Enumerator</a> of <a
379
+ href="Prompt.html#M000050">documents</a>.
364
380
  </p>
365
381
  </div>
366
382
  <div class="sourcecode">
367
- <p class="source-link">[ <a href="javascript:toggleSource('M000044_source')" id="l_M000044_source">show source</a> ]</p>
368
- <div id="M000044_source" class="dyn-source">
383
+ <p class="source-link">[ <a href="javascript:toggleSource('M000051_source')" id="l_M000051_source">show source</a> ]</p>
384
+ <div id="M000051_source" class="dyn-source">
369
385
  <pre>
370
- <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 72</span>
371
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">directories</span>
372
- <span class="ruby-identifier">path</span>.<span class="ruby-identifier">paths</span>.<span class="ruby-identifier">select</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">directory?</span> }
386
+ <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 90</span>
387
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">directories</span> ; <span class="ruby-identifier">work</span>.<span class="ruby-identifier">directories</span> ; <span class="ruby-keyword kw">end</span>
388
+ </pre>
389
+ </div>
390
+ </div>
391
+ </div>
392
+ <div class="method">
393
+ <div class="title">
394
+ <a name="M000047"></a><b>directory_entries</b>()
395
+ </div>
396
+ <div class="description">
397
+ <p>
398
+ Lists directory <a href="Prompt.html#M000045">entries</a>.
399
+ </p>
400
+ </div>
401
+ <div class="sourcecode">
402
+ <p class="source-link">[ <a href="javascript:toggleSource('M000047_source')" id="l_M000047_source">show source</a> ]</p>
403
+ <div id="M000047_source" class="dyn-source">
404
+ <pre>
405
+ <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 74</span>
406
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">directory_entries</span>
407
+ <span class="ruby-identifier">work</span>.<span class="ruby-identifier">directory_entries</span>
408
+ <span class="ruby-keyword kw">end</span>
409
+ </pre>
410
+ </div>
411
+ </div>
412
+ </div>
413
+ <div class="method">
414
+ <div class="title">
415
+ <a name="M000048"></a><b>document_entries</b>()
416
+ </div>
417
+ <div class="description">
418
+ <p>
419
+ Lists directory <a href="Prompt.html#M000045">entries</a>.
420
+ </p>
421
+ </div>
422
+ <div class="sourcecode">
423
+ <p class="source-link">[ <a href="javascript:toggleSource('M000048_source')" id="l_M000048_source">show source</a> ]</p>
424
+ <div id="M000048_source" class="dyn-source">
425
+ <pre>
426
+ <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 79</span>
427
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">document_entries</span>
428
+ <span class="ruby-identifier">work</span>.<span class="ruby-identifier">document_entries</span>
373
429
  <span class="ruby-keyword kw">end</span>
374
430
  </pre>
375
431
  </div>
@@ -377,25 +433,44 @@ href="Prompt.html#M000042">entries</a>.
377
433
  </div>
378
434
  <div class="method">
379
435
  <div class="title">
380
- <a name="M000042"></a><b>entries</b>()
436
+ <a name="M000050"></a><b>documents</b>()
381
437
  </div>
382
438
  <div class="description">
383
439
  <p>
384
- <a href="Directory.html">Directory</a> <a
385
- href="Prompt.html#M000042">entries</a>.
440
+ Returns <a href="../Enumerator.html">Enumerator</a> of <a
441
+ href="Prompt.html#M000051">directories</a>.
442
+ </p>
443
+ </div>
444
+ <div class="sourcecode">
445
+ <p class="source-link">[ <a href="javascript:toggleSource('M000050_source')" id="l_M000050_source">show source</a> ]</p>
446
+ <div id="M000050_source" class="dyn-source">
447
+ <pre>
448
+ <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 87</span>
449
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">documents</span> ; <span class="ruby-identifier">work</span>.<span class="ruby-identifier">documents</span> ; <span class="ruby-keyword kw">end</span>
450
+ </pre>
451
+ </div>
452
+ </div>
453
+ </div>
454
+ <div class="method">
455
+ <div class="title">
456
+ <a name="M000045"></a><b>entries</b>()
457
+ </div>
458
+ <div class="description">
459
+ <p>
460
+ Lists all <a href="Prompt.html#M000045">entries</a>.
386
461
  </p>
387
462
  </div>
388
463
  <div class="aka">
389
464
  This method is also aliased as
390
- <a href="Prompt.html#M000043">ls</a>
465
+ <a href="Prompt.html#M000046">ls</a>
391
466
  </div>
392
467
  <div class="sourcecode">
393
- <p class="source-link">[ <a href="javascript:toggleSource('M000042_source')" id="l_M000042_source">show source</a> ]</p>
394
- <div id="M000042_source" class="dyn-source">
468
+ <p class="source-link">[ <a href="javascript:toggleSource('M000045_source')" id="l_M000045_source">show source</a> ]</p>
469
+ <div id="M000045_source" class="dyn-source">
395
470
  <pre>
396
- <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 66</span>
471
+ <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 68</span>
397
472
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">entries</span>
398
- <span class="ruby-identifier">path</span>.<span class="ruby-identifier">entries</span>
473
+ <span class="ruby-identifier">work</span>.<span class="ruby-identifier">entries</span>
399
474
  <span class="ruby-keyword kw">end</span>
400
475
  </pre>
401
476
  </div>
@@ -403,18 +478,23 @@ href="Prompt.html#M000042">entries</a>.
403
478
  </div>
404
479
  <div class="method">
405
480
  <div class="title">
406
- <a name="M000038"></a><b>file</b>(name)
481
+ <a name="M000041"></a><b>file</b>(name)
407
482
  </div>
408
483
  <div class="description">
409
484
  <p>
410
- Get the <a href="FileObject.html">FileObject</a>.
485
+ Get the <a href="FileObject.html">FileObject</a> for the given <a
486
+ href="Prompt.html#M000041">file</a> name.
411
487
  </p>
412
488
  </div>
489
+ <div class="aka">
490
+ This method is also aliased as
491
+ <a href="Prompt.html#M000042">[]</a>
492
+ </div>
413
493
  <div class="sourcecode">
414
- <p class="source-link">[ <a href="javascript:toggleSource('M000038_source')" id="l_M000038_source">show source</a> ]</p>
415
- <div id="M000038_source" class="dyn-source">
494
+ <p class="source-link">[ <a href="javascript:toggleSource('M000041_source')" id="l_M000041_source">show source</a> ]</p>
495
+ <div id="M000041_source" class="dyn-source">
416
496
  <pre>
417
- <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 46</span>
497
+ <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 56</span>
418
498
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">file</span>(<span class="ruby-identifier">name</span>)
419
499
  <span class="ruby-constant">FileObject</span>(<span class="ruby-identifier">name</span>)
420
500
  <span class="ruby-keyword kw">end</span>
@@ -424,29 +504,27 @@ Get the <a href="FileObject.html">FileObject</a>.
424
504
  </div>
425
505
  <div class="method">
426
506
  <div class="title">
427
- <a name="M000045"></a><b>files</b>()
507
+ <a name="M000049"></a><b>files</b>()
428
508
  </div>
429
509
  <div class="description">
430
510
  <p>
431
- <a href="Directory.html">Directory</a> <a
432
- href="Prompt.html#M000042">entries</a>.
511
+ Returns <a href="../Enumerator.html">Enumerator</a> of <a
512
+ href="Prompt.html#M000049">files</a> objects.
433
513
  </p>
434
514
  </div>
435
515
  <div class="sourcecode">
436
- <p class="source-link">[ <a href="javascript:toggleSource('M000045_source')" id="l_M000045_source">show source</a> ]</p>
437
- <div id="M000045_source" class="dyn-source">
516
+ <p class="source-link">[ <a href="javascript:toggleSource('M000049_source')" id="l_M000049_source">show source</a> ]</p>
517
+ <div id="M000049_source" class="dyn-source">
438
518
  <pre>
439
- <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 77</span>
440
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">files</span>
441
- <span class="ruby-identifier">path</span>.<span class="ruby-identifier">paths</span>.<span class="ruby-identifier">select</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">file?</span> }
442
- <span class="ruby-keyword kw">end</span>
519
+ <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 84</span>
520
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">files</span> ; <span class="ruby-identifier">work</span>.<span class="ruby-identifier">files</span> ; <span class="ruby-keyword kw">end</span>
443
521
  </pre>
444
522
  </div>
445
523
  </div>
446
524
  </div>
447
525
  <div class="method">
448
526
  <div class="title">
449
- <a name="M000046"></a><b>glob</b>(*patterns)
527
+ <a name="M000052"></a><b>glob</b>(*patterns)
450
528
  </div>
451
529
  <div class="description">
452
530
  <p>
@@ -454,10 +532,10 @@ Glob pattern.
454
532
  </p>
455
533
  </div>
456
534
  <div class="sourcecode">
457
- <p class="source-link">[ <a href="javascript:toggleSource('M000046_source')" id="l_M000046_source">show source</a> ]</p>
458
- <div id="M000046_source" class="dyn-source">
535
+ <p class="source-link">[ <a href="javascript:toggleSource('M000052_source')" id="l_M000052_source">show source</a> ]</p>
536
+ <div id="M000052_source" class="dyn-source">
459
537
  <pre>
460
- <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 82</span>
538
+ <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 93</span>
461
539
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">glob</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">patterns</span>)
462
540
  <span class="ruby-identifier">opts</span> = (<span class="ruby-operator">::</span><span class="ruby-constant">Integer</span><span class="ruby-operator">===</span><span class="ruby-identifier">patterns</span>.<span class="ruby-identifier">last</span> <span class="ruby-value">? </span><span class="ruby-identifier">patterns</span>.<span class="ruby-identifier">pop</span> <span class="ruby-operator">:</span> <span class="ruby-value">0</span>)
463
541
  <span class="ruby-identifier">pattern</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">pattern</span>)
@@ -469,13 +547,13 @@ Glob pattern.
469
547
  </div>
470
548
  <div class="method">
471
549
  <div class="title">
472
- <a name="M000060"></a><b>install</b>(src, dest, mode, options)
550
+ <a name="M000066"></a><b>install</b>(src, dest, mode, options)
473
551
  </div>
474
552
  <div class="sourcecode">
475
- <p class="source-link">[ <a href="javascript:toggleSource('M000060_source')" id="l_M000060_source">show source</a> ]</p>
476
- <div id="M000060_source" class="dyn-source">
553
+ <p class="source-link">[ <a href="javascript:toggleSource('M000066_source')" id="l_M000066_source">show source</a> ]</p>
554
+ <div id="M000066_source" class="dyn-source">
477
555
  <pre>
478
- <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 172</span>
556
+ <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 183</span>
479
557
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">install</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">dest</span>, <span class="ruby-identifier">mode</span>, <span class="ruby-identifier">options</span>)
480
558
  <span class="ruby-identifier">src</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">src</span>)
481
559
  <span class="ruby-identifier">dest</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">dest</span>)
@@ -487,18 +565,18 @@ Glob pattern.
487
565
  </div>
488
566
  <div class="method">
489
567
  <div class="title">
490
- <a name="M000051"></a><b>ln</b>(old, new, options)
568
+ <a name="M000057"></a><b>ln</b>(old, new, options)
491
569
  </div>
492
570
  <div class="description">
493
571
  <p>
494
- <a href="Prompt.html#M000051">ln</a>(list, destdir, options)
572
+ <a href="Prompt.html#M000057">ln</a>(list, destdir, options)
495
573
  </p>
496
574
  </div>
497
575
  <div class="sourcecode">
498
- <p class="source-link">[ <a href="javascript:toggleSource('M000051_source')" id="l_M000051_source">show source</a> ]</p>
499
- <div id="M000051_source" class="dyn-source">
576
+ <p class="source-link">[ <a href="javascript:toggleSource('M000057_source')" id="l_M000057_source">show source</a> ]</p>
577
+ <div id="M000057_source" class="dyn-source">
500
578
  <pre>
501
- <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 117</span>
579
+ <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 128</span>
502
580
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ln</span>(<span class="ruby-identifier">old</span>, <span class="ruby-identifier">new</span>, <span class="ruby-identifier">options</span>)
503
581
  <span class="ruby-identifier">old</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">old</span>)
504
582
  <span class="ruby-identifier">new</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">new</span>)
@@ -510,18 +588,18 @@ Glob pattern.
510
588
  </div>
511
589
  <div class="method">
512
590
  <div class="title">
513
- <a name="M000052"></a><b>ln_s</b>(old, new, options)
591
+ <a name="M000058"></a><b>ln_s</b>(old, new, options)
514
592
  </div>
515
593
  <div class="description">
516
594
  <p>
517
- <a href="Prompt.html#M000052">ln_s</a>(list, destdir, options)
595
+ <a href="Prompt.html#M000058">ln_s</a>(list, destdir, options)
518
596
  </p>
519
597
  </div>
520
598
  <div class="sourcecode">
521
- <p class="source-link">[ <a href="javascript:toggleSource('M000052_source')" id="l_M000052_source">show source</a> ]</p>
522
- <div id="M000052_source" class="dyn-source">
599
+ <p class="source-link">[ <a href="javascript:toggleSource('M000058_source')" id="l_M000058_source">show source</a> ]</p>
600
+ <div id="M000058_source" class="dyn-source">
523
601
  <pre>
524
- <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 124</span>
602
+ <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 135</span>
525
603
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ln_s</span>(<span class="ruby-identifier">old</span>, <span class="ruby-identifier">new</span>, <span class="ruby-identifier">options</span>)
526
604
  <span class="ruby-identifier">old</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">old</span>)
527
605
  <span class="ruby-identifier">new</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">new</span>)
@@ -533,13 +611,13 @@ Glob pattern.
533
611
  </div>
534
612
  <div class="method">
535
613
  <div class="title">
536
- <a name="M000053"></a><b>ln_sf</b>(old, new, options)
614
+ <a name="M000059"></a><b>ln_sf</b>(old, new, options)
537
615
  </div>
538
616
  <div class="sourcecode">
539
- <p class="source-link">[ <a href="javascript:toggleSource('M000053_source')" id="l_M000053_source">show source</a> ]</p>
540
- <div id="M000053_source" class="dyn-source">
617
+ <p class="source-link">[ <a href="javascript:toggleSource('M000059_source')" id="l_M000059_source">show source</a> ]</p>
618
+ <div id="M000059_source" class="dyn-source">
541
619
  <pre>
542
- <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 130</span>
620
+ <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 141</span>
543
621
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ln_sf</span>(<span class="ruby-identifier">old</span>, <span class="ruby-identifier">new</span>, <span class="ruby-identifier">options</span>)
544
622
  <span class="ruby-identifier">old</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">old</span>)
545
623
  <span class="ruby-identifier">new</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">new</span>)
@@ -551,23 +629,23 @@ Glob pattern.
551
629
  </div>
552
630
  <div class="method">
553
631
  <div class="title">
554
- <a name="M000043"></a><b>ls</b>()
632
+ <a name="M000046"></a><b>ls</b>()
555
633
  </div>
556
634
  <div class="description">
557
635
  <p>
558
- Alias for <a href="Prompt.html#M000042">entries</a>
636
+ Alias for <a href="Prompt.html#M000045">entries</a>
559
637
  </p>
560
638
  </div>
561
639
  </div>
562
640
  <div class="method">
563
641
  <div class="title">
564
- <a name="M000048"></a><b>mkdir</b>(dir, options)
642
+ <a name="M000054"></a><b>mkdir</b>(dir, options)
565
643
  </div>
566
644
  <div class="sourcecode">
567
- <p class="source-link">[ <a href="javascript:toggleSource('M000048_source')" id="l_M000048_source">show source</a> ]</p>
568
- <div id="M000048_source" class="dyn-source">
645
+ <p class="source-link">[ <a href="javascript:toggleSource('M000054_source')" id="l_M000054_source">show source</a> ]</p>
646
+ <div id="M000054_source" class="dyn-source">
569
647
  <pre>
570
- <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 101</span>
648
+ <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 112</span>
571
649
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mkdir</span>(<span class="ruby-identifier">dir</span>, <span class="ruby-identifier">options</span>)
572
650
  <span class="ruby-identifier">dir</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">dir</span>)
573
651
  <span class="ruby-identifier">fileutils</span>.<span class="ruby-identifier">mkdir</span>(<span class="ruby-identifier">dir</span>, <span class="ruby-identifier">options</span>)
@@ -578,13 +656,13 @@ Alias for <a href="Prompt.html#M000042">entries</a>
578
656
  </div>
579
657
  <div class="method">
580
658
  <div class="title">
581
- <a name="M000049"></a><b>mkdir_p</b>(dir, options)
659
+ <a name="M000055"></a><b>mkdir_p</b>(dir, options)
582
660
  </div>
583
661
  <div class="sourcecode">
584
- <p class="source-link">[ <a href="javascript:toggleSource('M000049_source')" id="l_M000049_source">show source</a> ]</p>
585
- <div id="M000049_source" class="dyn-source">
662
+ <p class="source-link">[ <a href="javascript:toggleSource('M000055_source')" id="l_M000055_source">show source</a> ]</p>
663
+ <div id="M000055_source" class="dyn-source">
586
664
  <pre>
587
- <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 106</span>
665
+ <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 117</span>
588
666
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mkdir_p</span>(<span class="ruby-identifier">dir</span>, <span class="ruby-identifier">options</span>)
589
667
  <span class="ruby-identifier">dir</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">dir</span>)
590
668
  <span class="ruby-identifier">fileutils</span>.<span class="ruby-identifier">mkdir_p</span>(<span class="ruby-identifier">dir</span>, <span class="ruby-identifier">options</span>)
@@ -595,18 +673,19 @@ Alias for <a href="Prompt.html#M000042">entries</a>
595
673
  </div>
596
674
  <div class="method">
597
675
  <div class="title">
598
- <a name="M000035"></a><b>mode</b>(opts=nil)
676
+ <a name="M000039"></a><b>mode</b>(opts=nil)
599
677
  </div>
600
678
  <div class="description">
601
679
  <p>
602
- opertaton <a href="Prompt.html#M000035">mode</a>
680
+ Opertaton <a href="Prompt.html#M000039">mode</a>. This can be :noop,
681
+ :verbose or :dryrun. The later is the same as the first two combined.
603
682
  </p>
604
683
  </div>
605
684
  <div class="sourcecode">
606
- <p class="source-link">[ <a href="javascript:toggleSource('M000035_source')" id="l_M000035_source">show source</a> ]</p>
607
- <div id="M000035_source" class="dyn-source">
685
+ <p class="source-link">[ <a href="javascript:toggleSource('M000039_source')" id="l_M000039_source">show source</a> ]</p>
686
+ <div id="M000039_source" class="dyn-source">
608
687
  <pre>
609
- <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 27</span>
688
+ <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 38</span>
610
689
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mode</span>(<span class="ruby-identifier">opts</span>=<span class="ruby-keyword kw">nil</span>)
611
690
  <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@mode</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">opts</span>
612
691
  <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">val</span><span class="ruby-operator">|</span>
@@ -627,18 +706,18 @@ opertaton <a href="Prompt.html#M000035">mode</a>
627
706
  </div>
628
707
  <div class="method">
629
708
  <div class="title">
630
- <a name="M000056"></a><b>mv</b>(src, dest, options)
709
+ <a name="M000062"></a><b>mv</b>(src, dest, options)
631
710
  </div>
632
711
  <div class="description">
633
712
  <p>
634
- <a href="Prompt.html#M000056">mv</a>(list, dir, options)
713
+ <a href="Prompt.html#M000062">mv</a>(list, dir, options)
635
714
  </p>
636
715
  </div>
637
716
  <div class="sourcecode">
638
- <p class="source-link">[ <a href="javascript:toggleSource('M000056_source')" id="l_M000056_source">show source</a> ]</p>
639
- <div id="M000056_source" class="dyn-source">
717
+ <p class="source-link">[ <a href="javascript:toggleSource('M000062_source')" id="l_M000062_source">show source</a> ]</p>
718
+ <div id="M000062_source" class="dyn-source">
640
719
  <pre>
641
- <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 151</span>
720
+ <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 162</span>
642
721
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mv</span>(<span class="ruby-identifier">src</span>, <span class="ruby-identifier">dest</span>, <span class="ruby-identifier">options</span>)
643
722
  <span class="ruby-identifier">src</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">src</span>)
644
723
  <span class="ruby-identifier">dest</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">dest</span>)
@@ -650,49 +729,13 @@ opertaton <a href="Prompt.html#M000035">mode</a>
650
729
  </div>
651
730
  <div class="method">
652
731
  <div class="title">
653
- <a name="M000041"></a><b>paths</b>()
654
- </div>
655
- <div class="description">
656
- <p>
657
- <a href="Directory.html">Directory</a> <a
658
- href="Prompt.html#M000042">entries</a>.
659
- </p>
660
- </div>
661
- <div class="sourcecode">
662
- <p class="source-link">[ <a href="javascript:toggleSource('M000041_source')" id="l_M000041_source">show source</a> ]</p>
663
- <div id="M000041_source" class="dyn-source">
664
- <pre>
665
- <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 61</span>
666
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">paths</span>
667
- <span class="ruby-identifier">path</span>.<span class="ruby-identifier">paths</span>
668
- <span class="ruby-keyword kw">end</span>
669
- </pre>
670
- </div>
671
- </div>
672
- </div>
673
- <div class="method">
674
- <div class="title">
675
- <a name="M000037"></a><b>pwd</b>()
676
- </div>
677
- <div class="sourcecode">
678
- <p class="source-link">[ <a href="javascript:toggleSource('M000037_source')" id="l_M000037_source">show source</a> ]</p>
679
- <div id="M000037_source" class="dyn-source">
680
- <pre>
681
- <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 43</span>
682
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pwd</span> ; <span class="ruby-identifier">path</span> ; <span class="ruby-keyword kw">end</span>
683
- </pre>
684
- </div>
685
- </div>
686
- </div>
687
- <div class="method">
688
- <div class="title">
689
- <a name="M000057"></a><b>rm</b>(list, options)
732
+ <a name="M000063"></a><b>rm</b>(list, options)
690
733
  </div>
691
734
  <div class="sourcecode">
692
- <p class="source-link">[ <a href="javascript:toggleSource('M000057_source')" id="l_M000057_source">show source</a> ]</p>
693
- <div id="M000057_source" class="dyn-source">
735
+ <p class="source-link">[ <a href="javascript:toggleSource('M000063_source')" id="l_M000063_source">show source</a> ]</p>
736
+ <div id="M000063_source" class="dyn-source">
694
737
  <pre>
695
- <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 157</span>
738
+ <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 168</span>
696
739
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rm</span>(<span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span>)
697
740
  <span class="ruby-identifier">list</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">list</span>)
698
741
  <span class="ruby-identifier">fileutils</span>.<span class="ruby-identifier">rm</span>(<span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span>)
@@ -703,13 +746,13 @@ href="Prompt.html#M000042">entries</a>.
703
746
  </div>
704
747
  <div class="method">
705
748
  <div class="title">
706
- <a name="M000058"></a><b>rm_r</b>(list, options)
749
+ <a name="M000064"></a><b>rm_r</b>(list, options)
707
750
  </div>
708
751
  <div class="sourcecode">
709
- <p class="source-link">[ <a href="javascript:toggleSource('M000058_source')" id="l_M000058_source">show source</a> ]</p>
710
- <div id="M000058_source" class="dyn-source">
752
+ <p class="source-link">[ <a href="javascript:toggleSource('M000064_source')" id="l_M000064_source">show source</a> ]</p>
753
+ <div id="M000064_source" class="dyn-source">
711
754
  <pre>
712
- <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 162</span>
755
+ <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 173</span>
713
756
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rm_r</span>(<span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span>)
714
757
  <span class="ruby-identifier">list</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">list</span>)
715
758
  <span class="ruby-identifier">fileutils</span>.<span class="ruby-identifier">rm_f</span>(<span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span>)
@@ -720,13 +763,13 @@ href="Prompt.html#M000042">entries</a>.
720
763
  </div>
721
764
  <div class="method">
722
765
  <div class="title">
723
- <a name="M000059"></a><b>rm_rf</b>(list, options)
766
+ <a name="M000065"></a><b>rm_rf</b>(list, options)
724
767
  </div>
725
768
  <div class="sourcecode">
726
- <p class="source-link">[ <a href="javascript:toggleSource('M000059_source')" id="l_M000059_source">show source</a> ]</p>
727
- <div id="M000059_source" class="dyn-source">
769
+ <p class="source-link">[ <a href="javascript:toggleSource('M000065_source')" id="l_M000065_source">show source</a> ]</p>
770
+ <div id="M000065_source" class="dyn-source">
728
771
  <pre>
729
- <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 167</span>
772
+ <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 178</span>
730
773
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rm_rf</span>(<span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span>)
731
774
  <span class="ruby-identifier">list</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">list</span>)
732
775
  <span class="ruby-identifier">fileutils</span>.<span class="ruby-identifier">rm_rf</span>(<span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span>)
@@ -737,13 +780,13 @@ href="Prompt.html#M000042">entries</a>.
737
780
  </div>
738
781
  <div class="method">
739
782
  <div class="title">
740
- <a name="M000050"></a><b>rmdir</b>(dir, options)
783
+ <a name="M000056"></a><b>rmdir</b>(dir, options)
741
784
  </div>
742
785
  <div class="sourcecode">
743
- <p class="source-link">[ <a href="javascript:toggleSource('M000050_source')" id="l_M000050_source">show source</a> ]</p>
744
- <div id="M000050_source" class="dyn-source">
786
+ <p class="source-link">[ <a href="javascript:toggleSource('M000056_source')" id="l_M000056_source">show source</a> ]</p>
787
+ <div id="M000056_source" class="dyn-source">
745
788
  <pre>
746
- <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 111</span>
789
+ <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 122</span>
747
790
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rmdir</span>(<span class="ruby-identifier">dir</span>, <span class="ruby-identifier">options</span>)
748
791
  <span class="ruby-identifier">dir</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">dir</span>)
749
792
  <span class="ruby-identifier">fileutils</span>.<span class="ruby-identifier">rmdir</span>(<span class="ruby-identifier">dir</span>, <span class="ruby-identifier">options</span>)
@@ -754,32 +797,32 @@ href="Prompt.html#M000042">entries</a>.
754
797
  </div>
755
798
  <div class="method">
756
799
  <div class="title">
757
- <a name="M000036"></a><b>to_s</b>()
800
+ <a name="M000040"></a><b>to_s</b>()
758
801
  </div>
759
802
  <div class="sourcecode">
760
- <p class="source-link">[ <a href="javascript:toggleSource('M000036_source')" id="l_M000036_source">show source</a> ]</p>
761
- <div id="M000036_source" class="dyn-source">
803
+ <p class="source-link">[ <a href="javascript:toggleSource('M000040_source')" id="l_M000040_source">show source</a> ]</p>
804
+ <div id="M000040_source" class="dyn-source">
762
805
  <pre>
763
- <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 42</span>
764
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span> ; <span class="ruby-identifier">path</span>.<span class="ruby-identifier">to_s</span> ; <span class="ruby-keyword kw">end</span>
806
+ <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 53</span>
807
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span> ; <span class="ruby-identifier">work</span>.<span class="ruby-identifier">to_s</span> ; <span class="ruby-keyword kw">end</span>
765
808
  </pre>
766
809
  </div>
767
810
  </div>
768
811
  </div>
769
812
  <div class="method">
770
813
  <div class="title">
771
- <a name="M000065"></a><b>touch</b>(list, options)
814
+ <a name="M000071"></a><b>touch</b>(list, options)
772
815
  </div>
773
816
  <div class="description">
774
817
  <p>
775
- alias_method :chown_R, :<a href="Prompt.html#M000064">chown_r</a>
818
+ alias_method :chown_R, :<a href="Prompt.html#M000070">chown_r</a>
776
819
  </p>
777
820
  </div>
778
821
  <div class="sourcecode">
779
- <p class="source-link">[ <a href="javascript:toggleSource('M000065_source')" id="l_M000065_source">show source</a> ]</p>
780
- <div id="M000065_source" class="dyn-source">
822
+ <p class="source-link">[ <a href="javascript:toggleSource('M000071_source')" id="l_M000071_source">show source</a> ]</p>
823
+ <div id="M000071_source" class="dyn-source">
781
824
  <pre>
782
- <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 200</span>
825
+ <span class="ruby-comment cmt"># File lib/folio/prompt.rb, line 211</span>
783
826
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">touch</span>(<span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span>)
784
827
  <span class="ruby-identifier">list</span> = <span class="ruby-identifier">localize</span>(<span class="ruby-identifier">list</span>)
785
828
  <span class="ruby-identifier">fileutils</span>.<span class="ruby-identifier">touch</span>(<span class="ruby-identifier">list</span>, <span class="ruby-identifier">options</span>)