cft_smartcloud 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. data/README.rdoc +4 -0
  2. data/Rakefile +3 -3
  3. data/VERSION +1 -1
  4. data/bin/cft_smartcloud +37 -0
  5. data/cft_smartcloud.gemspec +88 -7
  6. data/lib/smartcloud.rb +12 -2
  7. data/lib/smartcloud_logger.rb +1 -1
  8. data/rdoc/classes/ConfigTable/BoolItem.html +172 -0
  9. data/rdoc/classes/ConfigTable/ExecItem.html +252 -0
  10. data/rdoc/classes/ConfigTable/Item.html +308 -0
  11. data/rdoc/classes/ConfigTable/MetaConfigEnvironment.html +445 -0
  12. data/rdoc/classes/ConfigTable/PackageSelectionItem.html +188 -0
  13. data/rdoc/classes/ConfigTable/PathItem.html +148 -0
  14. data/rdoc/classes/ConfigTable/ProgramItem.html +148 -0
  15. data/rdoc/classes/ConfigTable/SelectItem.html +175 -0
  16. data/rdoc/classes/ConfigTable.html +724 -0
  17. data/rdoc/classes/Enumerable.html +157 -0
  18. data/rdoc/classes/Errno/ENOTEMPTY.html +111 -0
  19. data/rdoc/classes/Errno.html +111 -0
  20. data/rdoc/classes/File.html +197 -0
  21. data/rdoc/classes/FileOperations.html +600 -0
  22. data/rdoc/classes/Hash.html +163 -0
  23. data/rdoc/classes/HookScriptAPI.html +413 -0
  24. data/rdoc/classes/IBMSmartCloud.html +1484 -0
  25. data/rdoc/classes/Installer/Shebang.html +245 -0
  26. data/rdoc/classes/Installer.html +1660 -0
  27. data/rdoc/classes/MIME/InvalidContentType.html +119 -0
  28. data/rdoc/classes/MIME/Type.html +1366 -0
  29. data/rdoc/classes/MIME/Types.html +643 -0
  30. data/rdoc/classes/MIME.html +124 -0
  31. data/rdoc/classes/MockSmartCloud.html +376 -0
  32. data/rdoc/classes/Net/HTTP.html +164 -0
  33. data/rdoc/classes/Net.html +122 -0
  34. data/rdoc/classes/RestClient/AbstractResponse.html +417 -0
  35. data/rdoc/classes/RestClient/Exception.html +305 -0
  36. data/rdoc/classes/RestClient/ExceptionWithResponse.html +119 -0
  37. data/rdoc/classes/RestClient/Exceptions.html +130 -0
  38. data/rdoc/classes/RestClient/MaxRedirectsReached.html +113 -0
  39. data/rdoc/classes/RestClient/Payload/Base.html +422 -0
  40. data/rdoc/classes/RestClient/Payload/Multipart.html +372 -0
  41. data/rdoc/classes/RestClient/Payload/Streamed.html +191 -0
  42. data/rdoc/classes/RestClient/Payload/UrlEncoded.html +202 -0
  43. data/rdoc/classes/RestClient/Payload.html +192 -0
  44. data/rdoc/classes/RestClient/RawResponse.html +236 -0
  45. data/rdoc/classes/RestClient/Redirect.html +168 -0
  46. data/rdoc/classes/RestClient/Request.html +950 -0
  47. data/rdoc/classes/RestClient/RequestFailed.html +178 -0
  48. data/rdoc/classes/RestClient/Resource.html +607 -0
  49. data/rdoc/classes/RestClient/Response.html +208 -0
  50. data/rdoc/classes/RestClient/ResponseForException.html +152 -0
  51. data/rdoc/classes/RestClient/SSLCertificateNotVerified.html +149 -0
  52. data/rdoc/classes/RestClient/ServerBrokeConnection.html +157 -0
  53. data/rdoc/classes/RestClient.html +737 -0
  54. data/rdoc/classes/SetupError.html +111 -0
  55. data/rdoc/classes/SmartcloudLogger.html +162 -0
  56. data/rdoc/classes/TestMIME.html +109 -0
  57. data/rdoc/classes/ToplevelInstaller.html +987 -0
  58. data/rdoc/classes/ToplevelInstallerMulti.html +593 -0
  59. data/rdoc/classes/XmlSimple/Cache.html +372 -0
  60. data/rdoc/classes/XmlSimple.html +475 -0
  61. data/rdoc/created.rid +1 -0
  62. data/rdoc/files/README_rdoc.html +198 -0
  63. data/rdoc/files/lib/hash_fix_rb.html +115 -0
  64. data/rdoc/files/lib/mime-types-1_16/lib/mime/types_rb.html +107 -0
  65. data/rdoc/files/lib/mime-types-1_16/setup_rb.html +157 -0
  66. data/rdoc/files/lib/mime-types-1_16/test/test_mime_type_rb.html +109 -0
  67. data/rdoc/files/lib/mime-types-1_16/test/test_mime_types_rb.html +109 -0
  68. data/rdoc/files/lib/mock_smartcloud_rb.html +115 -0
  69. data/rdoc/files/lib/rest-client-1_6_3/lib/rest-client_rb.html +107 -0
  70. data/rdoc/files/lib/rest-client-1_6_3/lib/rest_client_rb.html +108 -0
  71. data/rdoc/files/lib/rest-client-1_6_3/lib/restclient/abstract_response_rb.html +108 -0
  72. data/rdoc/files/lib/rest-client-1_6_3/lib/restclient/exceptions_rb.html +101 -0
  73. data/rdoc/files/lib/rest-client-1_6_3/lib/restclient/net_http_ext_rb.html +113 -0
  74. data/rdoc/files/lib/rest-client-1_6_3/lib/restclient/payload_rb.html +110 -0
  75. data/rdoc/files/lib/rest-client-1_6_3/lib/restclient/raw_response_rb.html +101 -0
  76. data/rdoc/files/lib/rest-client-1_6_3/lib/restclient/request_rb.html +110 -0
  77. data/rdoc/files/lib/rest-client-1_6_3/lib/restclient/resource_rb.html +101 -0
  78. data/rdoc/files/lib/rest-client-1_6_3/lib/restclient/response_rb.html +101 -0
  79. data/rdoc/files/lib/rest-client-1_6_3/lib/restclient_rb.html +111 -0
  80. data/rdoc/files/lib/restclient_fix_rb.html +115 -0
  81. data/rdoc/files/lib/smartcloud_logger_rb.html +115 -0
  82. data/rdoc/files/lib/smartcloud_rb.html +143 -0
  83. data/rdoc/files/lib/xml-simple-1_0_12/lib/xmlsimple_rb.html +124 -0
  84. data/rdoc/fr_class_index.html +79 -0
  85. data/rdoc/fr_file_index.html +48 -0
  86. data/rdoc/fr_method_index.html +441 -0
  87. data/rdoc/index.html +26 -0
  88. data/rdoc/rdoc-style.css +208 -0
  89. metadata +90 -6
@@ -0,0 +1,1660 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: Installer</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">Installer</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../files/lib/mime-types-1_16/setup_rb.html">
59
+ lib/mime-types-1.16/setup.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ Object
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+
81
+
82
+
83
+ </div>
84
+
85
+ <div id="method-list">
86
+ <h3 class="section-bar">Methods</h3>
87
+
88
+ <div class="name-list">
89
+ <a href="#M000218">clean_dir_bin</a>&nbsp;&nbsp;
90
+ <a href="#M000221">clean_dir_conf</a>&nbsp;&nbsp;
91
+ <a href="#M000220">clean_dir_data</a>&nbsp;&nbsp;
92
+ <a href="#M000223">clean_dir_ext</a>&nbsp;&nbsp;
93
+ <a href="#M000219">clean_dir_lib</a>&nbsp;&nbsp;
94
+ <a href="#M000222">clean_dir_man</a>&nbsp;&nbsp;
95
+ <a href="#M000182">config_dir_bin</a>&nbsp;&nbsp;
96
+ <a href="#M000186">config_dir_conf</a>&nbsp;&nbsp;
97
+ <a href="#M000185">config_dir_data</a>&nbsp;&nbsp;
98
+ <a href="#M000184">config_dir_ext</a>&nbsp;&nbsp;
99
+ <a href="#M000183">config_dir_lib</a>&nbsp;&nbsp;
100
+ <a href="#M000187">config_dir_man</a>&nbsp;&nbsp;
101
+ <a href="#M000225">distclean_dir_bin</a>&nbsp;&nbsp;
102
+ <a href="#M000229">distclean_dir_conf</a>&nbsp;&nbsp;
103
+ <a href="#M000228">distclean_dir_data</a>&nbsp;&nbsp;
104
+ <a href="#M000227">distclean_dir_ext</a>&nbsp;&nbsp;
105
+ <a href="#M000226">distclean_dir_lib</a>&nbsp;&nbsp;
106
+ <a href="#M000230">distclean_dir_man</a>&nbsp;&nbsp;
107
+ <a href="#M000233">dive_into</a>&nbsp;&nbsp;
108
+ <a href="#M000217">exec_clean</a>&nbsp;&nbsp;
109
+ <a href="#M000181">exec_config</a>&nbsp;&nbsp;
110
+ <a href="#M000224">exec_distclean</a>&nbsp;&nbsp;
111
+ <a href="#M000199">exec_install</a>&nbsp;&nbsp;
112
+ <a href="#M000189">exec_setup</a>&nbsp;&nbsp;
113
+ <a href="#M000231">exec_task_traverse</a>&nbsp;&nbsp;
114
+ <a href="#M000216">exec_test</a>&nbsp;&nbsp;
115
+ <a href="#M000211">existfiles</a>&nbsp;&nbsp;
116
+ <a href="#M000188">extconf</a>&nbsp;&nbsp;
117
+ <a href="#M000214">glob_reject</a>&nbsp;&nbsp;
118
+ <a href="#M000213">glob_select</a>&nbsp;&nbsp;
119
+ <a href="#M000215">globs2re</a>&nbsp;&nbsp;
120
+ <a href="#M000212">hookfiles</a>&nbsp;&nbsp;
121
+ <a href="#M000173">inspect</a>&nbsp;&nbsp;
122
+ <a href="#M000200">install_dir_bin</a>&nbsp;&nbsp;
123
+ <a href="#M000204">install_dir_conf</a>&nbsp;&nbsp;
124
+ <a href="#M000203">install_dir_data</a>&nbsp;&nbsp;
125
+ <a href="#M000202">install_dir_ext</a>&nbsp;&nbsp;
126
+ <a href="#M000201">install_dir_lib</a>&nbsp;&nbsp;
127
+ <a href="#M000205">install_dir_man</a>&nbsp;&nbsp;
128
+ <a href="#M000206">install_files</a>&nbsp;&nbsp;
129
+ <a href="#M000207">libfiles</a>&nbsp;&nbsp;
130
+ <a href="#M000210">mapdir</a>&nbsp;&nbsp;
131
+ <a href="#M000172">new</a>&nbsp;&nbsp;
132
+ <a href="#M000197">new_shebang</a>&nbsp;&nbsp;
133
+ <a href="#M000179">no_harm?</a>&nbsp;&nbsp;
134
+ <a href="#M000174">noop</a>&nbsp;&nbsp;
135
+ <a href="#M000176">objdir_root</a>&nbsp;&nbsp;
136
+ <a href="#M000198">open_atomic_writer</a>&nbsp;&nbsp;
137
+ <a href="#M000177">relpath</a>&nbsp;&nbsp;
138
+ <a href="#M000208">rubyextentions</a>&nbsp;&nbsp;
139
+ <a href="#M000234">run_hook</a>&nbsp;&nbsp;
140
+ <a href="#M000190">setup_dir_bin</a>&nbsp;&nbsp;
141
+ <a href="#M000194">setup_dir_conf</a>&nbsp;&nbsp;
142
+ <a href="#M000193">setup_dir_data</a>&nbsp;&nbsp;
143
+ <a href="#M000192">setup_dir_ext</a>&nbsp;&nbsp;
144
+ <a href="#M000191">setup_dir_lib</a>&nbsp;&nbsp;
145
+ <a href="#M000195">setup_dir_man</a>&nbsp;&nbsp;
146
+ <a href="#M000175">srcdir_root</a>&nbsp;&nbsp;
147
+ <a href="#M000209">targetfiles</a>&nbsp;&nbsp;
148
+ <a href="#M000232">traverse</a>&nbsp;&nbsp;
149
+ <a href="#M000196">update_shebang_line</a>&nbsp;&nbsp;
150
+ <a href="#M000178">verbose?</a>&nbsp;&nbsp;
151
+ <a href="#M000180">verbose_off</a>&nbsp;&nbsp;
152
+ </div>
153
+ </div>
154
+
155
+ </div>
156
+
157
+
158
+ <!-- if includes -->
159
+ <div id="includes">
160
+ <h3 class="section-bar">Included Modules</h3>
161
+
162
+ <div id="includes-list">
163
+ <span class="include-name"><a href="FileOperations.html">FileOperations</a></span>
164
+ <span class="include-name"><a href="HookScriptAPI.html">HookScriptAPI</a></span>
165
+ </div>
166
+ </div>
167
+
168
+ <div id="section">
169
+
170
+ <div id="class-list">
171
+ <h3 class="section-bar">Classes and Modules</h3>
172
+
173
+ Class <a href="Installer/Shebang.html" class="link">Installer::Shebang</a><br />
174
+
175
+ </div>
176
+
177
+ <div id="constants-list">
178
+ <h3 class="section-bar">Constants</h3>
179
+
180
+ <div class="name-list">
181
+ <table summary="Constants">
182
+ <tr class="top-aligned-row context-row">
183
+ <td class="context-item-name">FILETYPES</td>
184
+ <td>=</td>
185
+ <td class="context-item-value">%w( bin lib ext data conf man )</td>
186
+ </tr>
187
+ <tr class="top-aligned-row context-row">
188
+ <td class="context-item-name">JUNK_FILES</td>
189
+ <td>=</td>
190
+ <td class="context-item-value">%w( core RCSLOG tags TAGS .make.state .nse_depinfo #* .#* cvslog.* ,* .del-* *.olb *~ *.old *.bak *.BAK *.orig *.rej _$* *$ *.org *.in .* )</td>
191
+ <td width="3em">&nbsp;</td>
192
+ <td class="context-item-desc">
193
+ picked up many entries from cvs-1.11.1/src/ignore.c
194
+
195
+ </td>
196
+ </tr>
197
+ <tr class="top-aligned-row context-row">
198
+ <td class="context-item-name">GLOB2REGEX</td>
199
+ <td>=</td>
200
+ <td class="context-item-value">{ '.' =&gt; '\.', '$' =&gt; '\$', '#' =&gt; '\#', '*' =&gt; '.*'</td>
201
+ </tr>
202
+ <tr class="top-aligned-row context-row">
203
+ <td class="context-item-name">TESTDIR</td>
204
+ <td>=</td>
205
+ <td class="context-item-value">'test'</td>
206
+ <td width="3em">&nbsp;</td>
207
+ <td class="context-item-desc">
208
+ TASK test
209
+
210
+ </td>
211
+ </tr>
212
+ </table>
213
+ </div>
214
+ </div>
215
+
216
+
217
+
218
+
219
+
220
+
221
+ <!-- if method_list -->
222
+ <div id="methods">
223
+ <h3 class="section-bar">Public Class methods</h3>
224
+
225
+ <div id="method-M000172" class="method-detail">
226
+ <a name="M000172"></a>
227
+
228
+ <div class="method-heading">
229
+ <a href="#M000172" class="method-signature">
230
+ <span class="method-name">new</span><span class="method-args">(config, srcroot, objroot)</span>
231
+ </a>
232
+ </div>
233
+
234
+ <div class="method-description">
235
+ <p><a class="source-toggle" href="#"
236
+ onclick="toggleCode('M000172-source');return false;">[Source]</a></p>
237
+ <div class="method-source-code" id="M000172-source">
238
+ <pre>
239
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1165</span>
240
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">config</span>, <span class="ruby-identifier">srcroot</span>, <span class="ruby-identifier">objroot</span>)
241
+ <span class="ruby-ivar">@config</span> = <span class="ruby-identifier">config</span>
242
+ <span class="ruby-ivar">@srcdir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-identifier">srcroot</span>)
243
+ <span class="ruby-ivar">@objdir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-identifier">objroot</span>)
244
+ <span class="ruby-ivar">@currdir</span> = <span class="ruby-value str">'.'</span>
245
+ <span class="ruby-keyword kw">end</span>
246
+ </pre>
247
+ </div>
248
+ </div>
249
+ </div>
250
+
251
+ <h3 class="section-bar">Public Instance methods</h3>
252
+
253
+ <div id="method-M000218" class="method-detail">
254
+ <a name="M000218"></a>
255
+
256
+ <div class="method-heading">
257
+ <span class="method-name">clean_dir_bin</span><span class="method-args">(rel)</span>
258
+ </div>
259
+
260
+ <div class="method-description">
261
+ <p>
262
+ Alias for <a href="Installer.html#M000174">noop</a>
263
+ </p>
264
+ </div>
265
+ </div>
266
+
267
+ <div id="method-M000221" class="method-detail">
268
+ <a name="M000221"></a>
269
+
270
+ <div class="method-heading">
271
+ <span class="method-name">clean_dir_conf</span><span class="method-args">(rel)</span>
272
+ </div>
273
+
274
+ <div class="method-description">
275
+ <p>
276
+ Alias for <a href="Installer.html#M000174">noop</a>
277
+ </p>
278
+ </div>
279
+ </div>
280
+
281
+ <div id="method-M000220" class="method-detail">
282
+ <a name="M000220"></a>
283
+
284
+ <div class="method-heading">
285
+ <span class="method-name">clean_dir_data</span><span class="method-args">(rel)</span>
286
+ </div>
287
+
288
+ <div class="method-description">
289
+ <p>
290
+ Alias for <a href="Installer.html#M000174">noop</a>
291
+ </p>
292
+ </div>
293
+ </div>
294
+
295
+ <div id="method-M000223" class="method-detail">
296
+ <a name="M000223"></a>
297
+
298
+ <div class="method-heading">
299
+ <a href="#M000223" class="method-signature">
300
+ <span class="method-name">clean_dir_ext</span><span class="method-args">(rel)</span>
301
+ </a>
302
+ </div>
303
+
304
+ <div class="method-description">
305
+ <p><a class="source-toggle" href="#"
306
+ onclick="toggleCode('M000223-source');return false;">[Source]</a></p>
307
+ <div class="method-source-code" id="M000223-source">
308
+ <pre>
309
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1486</span>
310
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clean_dir_ext</span>(<span class="ruby-identifier">rel</span>)
311
+ <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">extdir?</span>(<span class="ruby-identifier">curr_srcdir</span>())
312
+ <span class="ruby-identifier">make</span> <span class="ruby-value str">'clean'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">file?</span>(<span class="ruby-value str">'Makefile'</span>)
313
+ <span class="ruby-keyword kw">end</span>
314
+ </pre>
315
+ </div>
316
+ </div>
317
+ </div>
318
+
319
+ <div id="method-M000219" class="method-detail">
320
+ <a name="M000219"></a>
321
+
322
+ <div class="method-heading">
323
+ <span class="method-name">clean_dir_lib</span><span class="method-args">(rel)</span>
324
+ </div>
325
+
326
+ <div class="method-description">
327
+ <p>
328
+ Alias for <a href="Installer.html#M000174">noop</a>
329
+ </p>
330
+ </div>
331
+ </div>
332
+
333
+ <div id="method-M000222" class="method-detail">
334
+ <a name="M000222"></a>
335
+
336
+ <div class="method-heading">
337
+ <span class="method-name">clean_dir_man</span><span class="method-args">(rel)</span>
338
+ </div>
339
+
340
+ <div class="method-description">
341
+ <p>
342
+ Alias for <a href="Installer.html#M000174">noop</a>
343
+ </p>
344
+ </div>
345
+ </div>
346
+
347
+ <div id="method-M000182" class="method-detail">
348
+ <a name="M000182"></a>
349
+
350
+ <div class="method-heading">
351
+ <span class="method-name">config_dir_bin</span><span class="method-args">(rel)</span>
352
+ </div>
353
+
354
+ <div class="method-description">
355
+ <p>
356
+ Alias for <a href="Installer.html#M000174">noop</a>
357
+ </p>
358
+ </div>
359
+ </div>
360
+
361
+ <div id="method-M000186" class="method-detail">
362
+ <a name="M000186"></a>
363
+
364
+ <div class="method-heading">
365
+ <span class="method-name">config_dir_conf</span><span class="method-args">(rel)</span>
366
+ </div>
367
+
368
+ <div class="method-description">
369
+ <p>
370
+ Alias for <a href="Installer.html#M000174">noop</a>
371
+ </p>
372
+ </div>
373
+ </div>
374
+
375
+ <div id="method-M000185" class="method-detail">
376
+ <a name="M000185"></a>
377
+
378
+ <div class="method-heading">
379
+ <span class="method-name">config_dir_data</span><span class="method-args">(rel)</span>
380
+ </div>
381
+
382
+ <div class="method-description">
383
+ <p>
384
+ Alias for <a href="Installer.html#M000174">noop</a>
385
+ </p>
386
+ </div>
387
+ </div>
388
+
389
+ <div id="method-M000184" class="method-detail">
390
+ <a name="M000184"></a>
391
+
392
+ <div class="method-heading">
393
+ <a href="#M000184" class="method-signature">
394
+ <span class="method-name">config_dir_ext</span><span class="method-args">(rel)</span>
395
+ </a>
396
+ </div>
397
+
398
+ <div class="method-description">
399
+ <p><a class="source-toggle" href="#"
400
+ onclick="toggleCode('M000184-source');return false;">[Source]</a></p>
401
+ <div class="method-source-code" id="M000184-source">
402
+ <pre>
403
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1229</span>
404
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">config_dir_ext</span>(<span class="ruby-identifier">rel</span>)
405
+ <span class="ruby-identifier">extconf</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">extdir?</span>(<span class="ruby-identifier">curr_srcdir</span>())
406
+ <span class="ruby-keyword kw">end</span>
407
+ </pre>
408
+ </div>
409
+ </div>
410
+ </div>
411
+
412
+ <div id="method-M000183" class="method-detail">
413
+ <a name="M000183"></a>
414
+
415
+ <div class="method-heading">
416
+ <span class="method-name">config_dir_lib</span><span class="method-args">(rel)</span>
417
+ </div>
418
+
419
+ <div class="method-description">
420
+ <p>
421
+ Alias for <a href="Installer.html#M000174">noop</a>
422
+ </p>
423
+ </div>
424
+ </div>
425
+
426
+ <div id="method-M000187" class="method-detail">
427
+ <a name="M000187"></a>
428
+
429
+ <div class="method-heading">
430
+ <span class="method-name">config_dir_man</span><span class="method-args">(rel)</span>
431
+ </div>
432
+
433
+ <div class="method-description">
434
+ <p>
435
+ Alias for <a href="Installer.html#M000174">noop</a>
436
+ </p>
437
+ </div>
438
+ </div>
439
+
440
+ <div id="method-M000225" class="method-detail">
441
+ <a name="M000225"></a>
442
+
443
+ <div class="method-heading">
444
+ <span class="method-name">distclean_dir_bin</span><span class="method-args">(rel)</span>
445
+ </div>
446
+
447
+ <div class="method-description">
448
+ <p>
449
+ Alias for <a href="Installer.html#M000174">noop</a>
450
+ </p>
451
+ </div>
452
+ </div>
453
+
454
+ <div id="method-M000229" class="method-detail">
455
+ <a name="M000229"></a>
456
+
457
+ <div class="method-heading">
458
+ <span class="method-name">distclean_dir_conf</span><span class="method-args">(rel)</span>
459
+ </div>
460
+
461
+ <div class="method-description">
462
+ <p>
463
+ Alias for <a href="Installer.html#M000174">noop</a>
464
+ </p>
465
+ </div>
466
+ </div>
467
+
468
+ <div id="method-M000228" class="method-detail">
469
+ <a name="M000228"></a>
470
+
471
+ <div class="method-heading">
472
+ <span class="method-name">distclean_dir_data</span><span class="method-args">(rel)</span>
473
+ </div>
474
+
475
+ <div class="method-description">
476
+ <p>
477
+ Alias for <a href="Installer.html#M000174">noop</a>
478
+ </p>
479
+ </div>
480
+ </div>
481
+
482
+ <div id="method-M000227" class="method-detail">
483
+ <a name="M000227"></a>
484
+
485
+ <div class="method-heading">
486
+ <a href="#M000227" class="method-signature">
487
+ <span class="method-name">distclean_dir_ext</span><span class="method-args">(rel)</span>
488
+ </a>
489
+ </div>
490
+
491
+ <div class="method-description">
492
+ <p><a class="source-toggle" href="#"
493
+ onclick="toggleCode('M000227-source');return false;">[Source]</a></p>
494
+ <div class="method-source-code" id="M000227-source">
495
+ <pre>
496
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1504</span>
497
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">distclean_dir_ext</span>(<span class="ruby-identifier">rel</span>)
498
+ <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">extdir?</span>(<span class="ruby-identifier">curr_srcdir</span>())
499
+ <span class="ruby-identifier">make</span> <span class="ruby-value str">'distclean'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">file?</span>(<span class="ruby-value str">'Makefile'</span>)
500
+ <span class="ruby-keyword kw">end</span>
501
+ </pre>
502
+ </div>
503
+ </div>
504
+ </div>
505
+
506
+ <div id="method-M000226" class="method-detail">
507
+ <a name="M000226"></a>
508
+
509
+ <div class="method-heading">
510
+ <span class="method-name">distclean_dir_lib</span><span class="method-args">(rel)</span>
511
+ </div>
512
+
513
+ <div class="method-description">
514
+ <p>
515
+ Alias for <a href="Installer.html#M000174">noop</a>
516
+ </p>
517
+ </div>
518
+ </div>
519
+
520
+ <div id="method-M000230" class="method-detail">
521
+ <a name="M000230"></a>
522
+
523
+ <div class="method-heading">
524
+ <span class="method-name">distclean_dir_man</span><span class="method-args">(rel)</span>
525
+ </div>
526
+
527
+ <div class="method-description">
528
+ <p>
529
+ Alias for <a href="Installer.html#M000174">noop</a>
530
+ </p>
531
+ </div>
532
+ </div>
533
+
534
+ <div id="method-M000233" class="method-detail">
535
+ <a name="M000233"></a>
536
+
537
+ <div class="method-heading">
538
+ <a href="#M000233" class="method-signature">
539
+ <span class="method-name">dive_into</span><span class="method-args">(rel) {|| ...}</span>
540
+ </a>
541
+ </div>
542
+
543
+ <div class="method-description">
544
+ <p><a class="source-toggle" href="#"
545
+ onclick="toggleCode('M000233-source');return false;">[Source]</a></p>
546
+ <div class="method-source-code" id="M000233-source">
547
+ <pre>
548
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1540</span>
549
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dive_into</span>(<span class="ruby-identifier">rel</span>)
550
+ <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">dir?</span>(<span class="ruby-node">&quot;#{@srcdir}/#{rel}&quot;</span>)
551
+
552
+ <span class="ruby-identifier">dir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-identifier">rel</span>)
553
+ <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">mkdir</span> <span class="ruby-identifier">dir</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">dir?</span>(<span class="ruby-identifier">dir</span>)
554
+ <span class="ruby-identifier">prevdir</span> = <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">pwd</span>
555
+ <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">chdir</span> <span class="ruby-identifier">dir</span>
556
+ <span class="ruby-identifier">$stderr</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">'---&gt; '</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">rel</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">verbose?</span>
557
+ <span class="ruby-ivar">@currdir</span> = <span class="ruby-identifier">rel</span>
558
+ <span class="ruby-keyword kw">yield</span>
559
+ <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">chdir</span> <span class="ruby-identifier">prevdir</span>
560
+ <span class="ruby-identifier">$stderr</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">'&lt;--- '</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">rel</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">verbose?</span>
561
+ <span class="ruby-ivar">@currdir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-identifier">rel</span>)
562
+ <span class="ruby-keyword kw">end</span>
563
+ </pre>
564
+ </div>
565
+ </div>
566
+ </div>
567
+
568
+ <div id="method-M000217" class="method-detail">
569
+ <a name="M000217"></a>
570
+
571
+ <div class="method-heading">
572
+ <a href="#M000217" class="method-signature">
573
+ <span class="method-name">exec_clean</span><span class="method-args">()</span>
574
+ </a>
575
+ </div>
576
+
577
+ <div class="method-description">
578
+ <p>
579
+ TASK clean
580
+ </p>
581
+ <p><a class="source-toggle" href="#"
582
+ onclick="toggleCode('M000217-source');return false;">[Source]</a></p>
583
+ <div class="method-source-code" id="M000217-source">
584
+ <pre>
585
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1474</span>
586
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">exec_clean</span>
587
+ <span class="ruby-identifier">exec_task_traverse</span> <span class="ruby-value str">'clean'</span>
588
+ <span class="ruby-identifier">rm_f</span> <span class="ruby-ivar">@config</span>.<span class="ruby-identifier">savefile</span>
589
+ <span class="ruby-identifier">rm_f</span> <span class="ruby-value str">'InstalledFiles'</span>
590
+ <span class="ruby-keyword kw">end</span>
591
+ </pre>
592
+ </div>
593
+ </div>
594
+ </div>
595
+
596
+ <div id="method-M000181" class="method-detail">
597
+ <a name="M000181"></a>
598
+
599
+ <div class="method-heading">
600
+ <a href="#M000181" class="method-signature">
601
+ <span class="method-name">exec_config</span><span class="method-args">()</span>
602
+ </a>
603
+ </div>
604
+
605
+ <div class="method-description">
606
+ <p>
607
+ TASK config
608
+ </p>
609
+ <p><a class="source-toggle" href="#"
610
+ onclick="toggleCode('M000181-source');return false;">[Source]</a></p>
611
+ <div class="method-source-code" id="M000181-source">
612
+ <pre>
613
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1222</span>
614
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">exec_config</span>
615
+ <span class="ruby-identifier">exec_task_traverse</span> <span class="ruby-value str">'config'</span>
616
+ <span class="ruby-keyword kw">end</span>
617
+ </pre>
618
+ </div>
619
+ </div>
620
+ </div>
621
+
622
+ <div id="method-M000224" class="method-detail">
623
+ <a name="M000224"></a>
624
+
625
+ <div class="method-heading">
626
+ <a href="#M000224" class="method-signature">
627
+ <span class="method-name">exec_distclean</span><span class="method-args">()</span>
628
+ </a>
629
+ </div>
630
+
631
+ <div class="method-description">
632
+ <p>
633
+ TASK distclean
634
+ </p>
635
+ <p><a class="source-toggle" href="#"
636
+ onclick="toggleCode('M000224-source');return false;">[Source]</a></p>
637
+ <div class="method-source-code" id="M000224-source">
638
+ <pre>
639
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1495</span>
640
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">exec_distclean</span>
641
+ <span class="ruby-identifier">exec_task_traverse</span> <span class="ruby-value str">'distclean'</span>
642
+ <span class="ruby-identifier">rm_f</span> <span class="ruby-ivar">@config</span>.<span class="ruby-identifier">savefile</span>
643
+ <span class="ruby-identifier">rm_f</span> <span class="ruby-value str">'InstalledFiles'</span>
644
+ <span class="ruby-keyword kw">end</span>
645
+ </pre>
646
+ </div>
647
+ </div>
648
+ </div>
649
+
650
+ <div id="method-M000199" class="method-detail">
651
+ <a name="M000199"></a>
652
+
653
+ <div class="method-heading">
654
+ <a href="#M000199" class="method-signature">
655
+ <span class="method-name">exec_install</span><span class="method-args">()</span>
656
+ </a>
657
+ </div>
658
+
659
+ <div class="method-description">
660
+ <p>
661
+ TASK install
662
+ </p>
663
+ <p><a class="source-toggle" href="#"
664
+ onclick="toggleCode('M000199-source');return false;">[Source]</a></p>
665
+ <div class="method-source-code" id="M000199-source">
666
+ <pre>
667
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1340</span>
668
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">exec_install</span>
669
+ <span class="ruby-identifier">rm_f</span> <span class="ruby-value str">'InstalledFiles'</span>
670
+ <span class="ruby-identifier">exec_task_traverse</span> <span class="ruby-value str">'install'</span>
671
+ <span class="ruby-keyword kw">end</span>
672
+ </pre>
673
+ </div>
674
+ </div>
675
+ </div>
676
+
677
+ <div id="method-M000189" class="method-detail">
678
+ <a name="M000189"></a>
679
+
680
+ <div class="method-heading">
681
+ <a href="#M000189" class="method-signature">
682
+ <span class="method-name">exec_setup</span><span class="method-args">()</span>
683
+ </a>
684
+ </div>
685
+
686
+ <div class="method-description">
687
+ <p>
688
+ TASK setup
689
+ </p>
690
+ <p><a class="source-toggle" href="#"
691
+ onclick="toggleCode('M000189-source');return false;">[Source]</a></p>
692
+ <div class="method-source-code" id="M000189-source">
693
+ <pre>
694
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1245</span>
695
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">exec_setup</span>
696
+ <span class="ruby-identifier">exec_task_traverse</span> <span class="ruby-value str">'setup'</span>
697
+ <span class="ruby-keyword kw">end</span>
698
+ </pre>
699
+ </div>
700
+ </div>
701
+ </div>
702
+
703
+ <div id="method-M000231" class="method-detail">
704
+ <a name="M000231"></a>
705
+
706
+ <div class="method-heading">
707
+ <a href="#M000231" class="method-signature">
708
+ <span class="method-name">exec_task_traverse</span><span class="method-args">(task)</span>
709
+ </a>
710
+ </div>
711
+
712
+ <div class="method-description">
713
+ <p>
714
+ Traversing
715
+ </p>
716
+ <p><a class="source-toggle" href="#"
717
+ onclick="toggleCode('M000231-source');return false;">[Source]</a></p>
718
+ <div class="method-source-code" id="M000231-source">
719
+ <pre>
720
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1517</span>
721
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">exec_task_traverse</span>(<span class="ruby-identifier">task</span>)
722
+ <span class="ruby-identifier">run_hook</span> <span class="ruby-node">&quot;pre-#{task}&quot;</span>
723
+ <span class="ruby-constant">FILETYPES</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">type</span><span class="ruby-operator">|</span>
724
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'ext'</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">config</span>(<span class="ruby-value str">'without-ext'</span>) <span class="ruby-operator">==</span> <span class="ruby-value str">'yes'</span>
725
+ <span class="ruby-identifier">$stderr</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">'skipping ext/* by user option'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">verbose?</span>
726
+ <span class="ruby-keyword kw">next</span>
727
+ <span class="ruby-keyword kw">end</span>
728
+ <span class="ruby-identifier">traverse</span> <span class="ruby-identifier">task</span>, <span class="ruby-identifier">type</span>, <span class="ruby-node">&quot;#{task}_dir_#{type}&quot;</span>
729
+ <span class="ruby-keyword kw">end</span>
730
+ <span class="ruby-identifier">run_hook</span> <span class="ruby-node">&quot;post-#{task}&quot;</span>
731
+ <span class="ruby-keyword kw">end</span>
732
+ </pre>
733
+ </div>
734
+ </div>
735
+ </div>
736
+
737
+ <div id="method-M000216" class="method-detail">
738
+ <a name="M000216"></a>
739
+
740
+ <div class="method-heading">
741
+ <a href="#M000216" class="method-signature">
742
+ <span class="method-name">exec_test</span><span class="method-args">()</span>
743
+ </a>
744
+ </div>
745
+
746
+ <div class="method-description">
747
+ <p><a class="source-toggle" href="#"
748
+ onclick="toggleCode('M000216-source');return false;">[Source]</a></p>
749
+ <div class="method-source-code" id="M000216-source">
750
+ <pre>
751
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1454</span>
752
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">exec_test</span>
753
+ <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span>(<span class="ruby-value str">'test'</span>)
754
+ <span class="ruby-identifier">$stderr</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">'no test in this package'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">verbose?</span>
755
+ <span class="ruby-keyword kw">return</span>
756
+ <span class="ruby-keyword kw">end</span>
757
+ <span class="ruby-identifier">$stderr</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">'Running tests...'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">verbose?</span>
758
+ <span class="ruby-keyword kw">begin</span>
759
+ <span class="ruby-identifier">require</span> <span class="ruby-value str">'test/unit'</span>
760
+ <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">LoadError</span>
761
+ <span class="ruby-identifier">setup_rb_error</span> <span class="ruby-value str">'test/unit cannot loaded. You need Ruby 1.8 or later to invoke this task.'</span>
762
+ <span class="ruby-keyword kw">end</span>
763
+ <span class="ruby-identifier">runner</span> = <span class="ruby-constant">Test</span><span class="ruby-operator">::</span><span class="ruby-constant">Unit</span><span class="ruby-operator">::</span><span class="ruby-constant">AutoRunner</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">true</span>)
764
+ <span class="ruby-identifier">runner</span>.<span class="ruby-identifier">to_run</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">TESTDIR</span>
765
+ <span class="ruby-identifier">runner</span>.<span class="ruby-identifier">run</span>
766
+ <span class="ruby-keyword kw">end</span>
767
+ </pre>
768
+ </div>
769
+ </div>
770
+ </div>
771
+
772
+ <div id="method-M000211" class="method-detail">
773
+ <a name="M000211"></a>
774
+
775
+ <div class="method-heading">
776
+ <a href="#M000211" class="method-signature">
777
+ <span class="method-name">existfiles</span><span class="method-args">()</span>
778
+ </a>
779
+ </div>
780
+
781
+ <div class="method-description">
782
+ <p><a class="source-toggle" href="#"
783
+ onclick="toggleCode('M000211-source');return false;">[Source]</a></p>
784
+ <div class="method-source-code" id="M000211-source">
785
+ <pre>
786
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1415</span>
787
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">existfiles</span>
788
+ <span class="ruby-identifier">glob_reject</span>(<span class="ruby-constant">JUNK_FILES</span>, (<span class="ruby-identifier">files_of</span>(<span class="ruby-identifier">curr_srcdir</span>()) <span class="ruby-operator">|</span> <span class="ruby-identifier">files_of</span>(<span class="ruby-value str">'.'</span>)))
789
+ <span class="ruby-keyword kw">end</span>
790
+ </pre>
791
+ </div>
792
+ </div>
793
+ </div>
794
+
795
+ <div id="method-M000188" class="method-detail">
796
+ <a name="M000188"></a>
797
+
798
+ <div class="method-heading">
799
+ <a href="#M000188" class="method-signature">
800
+ <span class="method-name">extconf</span><span class="method-args">()</span>
801
+ </a>
802
+ </div>
803
+
804
+ <div class="method-description">
805
+ <p><a class="source-toggle" href="#"
806
+ onclick="toggleCode('M000188-source');return false;">[Source]</a></p>
807
+ <div class="method-source-code" id="M000188-source">
808
+ <pre>
809
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1237</span>
810
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">extconf</span>
811
+ <span class="ruby-identifier">ruby</span> <span class="ruby-node">&quot;#{curr_srcdir()}/extconf.rb&quot;</span>, <span class="ruby-operator">*</span><span class="ruby-ivar">@config</span>.<span class="ruby-identifier">config_opt</span>
812
+ <span class="ruby-keyword kw">end</span>
813
+ </pre>
814
+ </div>
815
+ </div>
816
+ </div>
817
+
818
+ <div id="method-M000214" class="method-detail">
819
+ <a name="M000214"></a>
820
+
821
+ <div class="method-heading">
822
+ <a href="#M000214" class="method-signature">
823
+ <span class="method-name">glob_reject</span><span class="method-args">(pats, ents)</span>
824
+ </a>
825
+ </div>
826
+
827
+ <div class="method-description">
828
+ <p><a class="source-toggle" href="#"
829
+ onclick="toggleCode('M000214-source');return false;">[Source]</a></p>
830
+ <div class="method-source-code" id="M000214-source">
831
+ <pre>
832
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1430</span>
833
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">glob_reject</span>(<span class="ruby-identifier">pats</span>, <span class="ruby-identifier">ents</span>)
834
+ <span class="ruby-identifier">re</span> = <span class="ruby-identifier">globs2re</span>(<span class="ruby-identifier">pats</span>)
835
+ <span class="ruby-identifier">ents</span>.<span class="ruby-identifier">reject</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">ent</span><span class="ruby-operator">|</span> <span class="ruby-identifier">re</span> <span class="ruby-operator">=~</span> <span class="ruby-identifier">ent</span> }
836
+ <span class="ruby-keyword kw">end</span>
837
+ </pre>
838
+ </div>
839
+ </div>
840
+ </div>
841
+
842
+ <div id="method-M000213" class="method-detail">
843
+ <a name="M000213"></a>
844
+
845
+ <div class="method-heading">
846
+ <a href="#M000213" class="method-signature">
847
+ <span class="method-name">glob_select</span><span class="method-args">(pat, ents)</span>
848
+ </a>
849
+ </div>
850
+
851
+ <div class="method-description">
852
+ <p><a class="source-toggle" href="#"
853
+ onclick="toggleCode('M000213-source');return false;">[Source]</a></p>
854
+ <div class="method-source-code" id="M000213-source">
855
+ <pre>
856
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1425</span>
857
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">glob_select</span>(<span class="ruby-identifier">pat</span>, <span class="ruby-identifier">ents</span>)
858
+ <span class="ruby-identifier">re</span> = <span class="ruby-identifier">globs2re</span>([<span class="ruby-identifier">pat</span>])
859
+ <span class="ruby-identifier">ents</span>.<span class="ruby-identifier">select</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">ent</span><span class="ruby-operator">|</span> <span class="ruby-identifier">re</span> <span class="ruby-operator">=~</span> <span class="ruby-identifier">ent</span> }
860
+ <span class="ruby-keyword kw">end</span>
861
+ </pre>
862
+ </div>
863
+ </div>
864
+ </div>
865
+
866
+ <div id="method-M000215" class="method-detail">
867
+ <a name="M000215"></a>
868
+
869
+ <div class="method-heading">
870
+ <a href="#M000215" class="method-signature">
871
+ <span class="method-name">globs2re</span><span class="method-args">(pats)</span>
872
+ </a>
873
+ </div>
874
+
875
+ <div class="method-description">
876
+ <p><a class="source-toggle" href="#"
877
+ onclick="toggleCode('M000215-source');return false;">[Source]</a></p>
878
+ <div class="method-source-code" id="M000215-source">
879
+ <pre>
880
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1442</span>
881
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">globs2re</span>(<span class="ruby-identifier">pats</span>)
882
+ <span class="ruby-node">/\A(?:#{
883
+ pats.map {|pat| pat.gsub(/[\.\$\#\*]/) {|ch| GLOB2REGEX[ch] } }.join('|')
884
+ })\z/</span>
885
+ <span class="ruby-keyword kw">end</span>
886
+ </pre>
887
+ </div>
888
+ </div>
889
+ </div>
890
+
891
+ <div id="method-M000212" class="method-detail">
892
+ <a name="M000212"></a>
893
+
894
+ <div class="method-heading">
895
+ <a href="#M000212" class="method-signature">
896
+ <span class="method-name">hookfiles</span><span class="method-args">()</span>
897
+ </a>
898
+ </div>
899
+
900
+ <div class="method-description">
901
+ <p><a class="source-toggle" href="#"
902
+ onclick="toggleCode('M000212-source');return false;">[Source]</a></p>
903
+ <div class="method-source-code" id="M000212-source">
904
+ <pre>
905
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1419</span>
906
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">hookfiles</span>
907
+ <span class="ruby-node">%w( pre-%s post-%s pre-%s.rb post-%s.rb )</span>.<span class="ruby-identifier">map</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">fmt</span><span class="ruby-operator">|</span>
908
+ <span class="ruby-node">%w( config setup install clean )</span>.<span class="ruby-identifier">map</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">t</span><span class="ruby-operator">|</span> <span class="ruby-identifier">sprintf</span>(<span class="ruby-identifier">fmt</span>, <span class="ruby-identifier">t</span>) }
909
+ }.<span class="ruby-identifier">flatten</span>
910
+ <span class="ruby-keyword kw">end</span>
911
+ </pre>
912
+ </div>
913
+ </div>
914
+ </div>
915
+
916
+ <div id="method-M000173" class="method-detail">
917
+ <a name="M000173"></a>
918
+
919
+ <div class="method-heading">
920
+ <a href="#M000173" class="method-signature">
921
+ <span class="method-name">inspect</span><span class="method-args">()</span>
922
+ </a>
923
+ </div>
924
+
925
+ <div class="method-description">
926
+ <p><a class="source-toggle" href="#"
927
+ onclick="toggleCode('M000173-source');return false;">[Source]</a></p>
928
+ <div class="method-source-code" id="M000173-source">
929
+ <pre>
930
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1172</span>
931
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inspect</span>
932
+ <span class="ruby-node">&quot;#&lt;#{self.class} #{File.basename(@srcdir)}&gt;&quot;</span>
933
+ <span class="ruby-keyword kw">end</span>
934
+ </pre>
935
+ </div>
936
+ </div>
937
+ </div>
938
+
939
+ <div id="method-M000200" class="method-detail">
940
+ <a name="M000200"></a>
941
+
942
+ <div class="method-heading">
943
+ <a href="#M000200" class="method-signature">
944
+ <span class="method-name">install_dir_bin</span><span class="method-args">(rel)</span>
945
+ </a>
946
+ </div>
947
+
948
+ <div class="method-description">
949
+ <p><a class="source-toggle" href="#"
950
+ onclick="toggleCode('M000200-source');return false;">[Source]</a></p>
951
+ <div class="method-source-code" id="M000200-source">
952
+ <pre>
953
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1345</span>
954
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">install_dir_bin</span>(<span class="ruby-identifier">rel</span>)
955
+ <span class="ruby-identifier">install_files</span> <span class="ruby-identifier">targetfiles</span>(), <span class="ruby-node">&quot;#{config('bindir')}/#{rel}&quot;</span>, <span class="ruby-value">0755</span>
956
+ <span class="ruby-keyword kw">end</span>
957
+ </pre>
958
+ </div>
959
+ </div>
960
+ </div>
961
+
962
+ <div id="method-M000204" class="method-detail">
963
+ <a name="M000204"></a>
964
+
965
+ <div class="method-heading">
966
+ <a href="#M000204" class="method-signature">
967
+ <span class="method-name">install_dir_conf</span><span class="method-args">(rel)</span>
968
+ </a>
969
+ </div>
970
+
971
+ <div class="method-description">
972
+ <p><a class="source-toggle" href="#"
973
+ onclick="toggleCode('M000204-source');return false;">[Source]</a></p>
974
+ <div class="method-source-code" id="M000204-source">
975
+ <pre>
976
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1364</span>
977
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">install_dir_conf</span>(<span class="ruby-identifier">rel</span>)
978
+ <span class="ruby-comment cmt"># FIXME: should not remove current config files</span>
979
+ <span class="ruby-comment cmt"># (rename previous file to .old/.org)</span>
980
+ <span class="ruby-identifier">install_files</span> <span class="ruby-identifier">targetfiles</span>(), <span class="ruby-node">&quot;#{config('sysconfdir')}/#{rel}&quot;</span>, <span class="ruby-value">0644</span>
981
+ <span class="ruby-keyword kw">end</span>
982
+ </pre>
983
+ </div>
984
+ </div>
985
+ </div>
986
+
987
+ <div id="method-M000203" class="method-detail">
988
+ <a name="M000203"></a>
989
+
990
+ <div class="method-heading">
991
+ <a href="#M000203" class="method-signature">
992
+ <span class="method-name">install_dir_data</span><span class="method-args">(rel)</span>
993
+ </a>
994
+ </div>
995
+
996
+ <div class="method-description">
997
+ <p><a class="source-toggle" href="#"
998
+ onclick="toggleCode('M000203-source');return false;">[Source]</a></p>
999
+ <div class="method-source-code" id="M000203-source">
1000
+ <pre>
1001
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1360</span>
1002
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">install_dir_data</span>(<span class="ruby-identifier">rel</span>)
1003
+ <span class="ruby-identifier">install_files</span> <span class="ruby-identifier">targetfiles</span>(), <span class="ruby-node">&quot;#{config('datadir')}/#{rel}&quot;</span>, <span class="ruby-value">0644</span>
1004
+ <span class="ruby-keyword kw">end</span>
1005
+ </pre>
1006
+ </div>
1007
+ </div>
1008
+ </div>
1009
+
1010
+ <div id="method-M000202" class="method-detail">
1011
+ <a name="M000202"></a>
1012
+
1013
+ <div class="method-heading">
1014
+ <a href="#M000202" class="method-signature">
1015
+ <span class="method-name">install_dir_ext</span><span class="method-args">(rel)</span>
1016
+ </a>
1017
+ </div>
1018
+
1019
+ <div class="method-description">
1020
+ <p><a class="source-toggle" href="#"
1021
+ onclick="toggleCode('M000202-source');return false;">[Source]</a></p>
1022
+ <div class="method-source-code" id="M000202-source">
1023
+ <pre>
1024
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1353</span>
1025
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">install_dir_ext</span>(<span class="ruby-identifier">rel</span>)
1026
+ <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">extdir?</span>(<span class="ruby-identifier">curr_srcdir</span>())
1027
+ <span class="ruby-identifier">install_files</span> <span class="ruby-identifier">rubyextentions</span>(<span class="ruby-value str">'.'</span>),
1028
+ <span class="ruby-node">&quot;#{config('sodir')}/#{File.dirname(rel)}&quot;</span>,
1029
+ <span class="ruby-value">0555</span>
1030
+ <span class="ruby-keyword kw">end</span>
1031
+ </pre>
1032
+ </div>
1033
+ </div>
1034
+ </div>
1035
+
1036
+ <div id="method-M000201" class="method-detail">
1037
+ <a name="M000201"></a>
1038
+
1039
+ <div class="method-heading">
1040
+ <a href="#M000201" class="method-signature">
1041
+ <span class="method-name">install_dir_lib</span><span class="method-args">(rel)</span>
1042
+ </a>
1043
+ </div>
1044
+
1045
+ <div class="method-description">
1046
+ <p><a class="source-toggle" href="#"
1047
+ onclick="toggleCode('M000201-source');return false;">[Source]</a></p>
1048
+ <div class="method-source-code" id="M000201-source">
1049
+ <pre>
1050
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1349</span>
1051
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">install_dir_lib</span>(<span class="ruby-identifier">rel</span>)
1052
+ <span class="ruby-identifier">install_files</span> <span class="ruby-identifier">libfiles</span>(), <span class="ruby-node">&quot;#{config('rbdir')}/#{rel}&quot;</span>, <span class="ruby-value">0644</span>
1053
+ <span class="ruby-keyword kw">end</span>
1054
+ </pre>
1055
+ </div>
1056
+ </div>
1057
+ </div>
1058
+
1059
+ <div id="method-M000205" class="method-detail">
1060
+ <a name="M000205"></a>
1061
+
1062
+ <div class="method-heading">
1063
+ <a href="#M000205" class="method-signature">
1064
+ <span class="method-name">install_dir_man</span><span class="method-args">(rel)</span>
1065
+ </a>
1066
+ </div>
1067
+
1068
+ <div class="method-description">
1069
+ <p><a class="source-toggle" href="#"
1070
+ onclick="toggleCode('M000205-source');return false;">[Source]</a></p>
1071
+ <div class="method-source-code" id="M000205-source">
1072
+ <pre>
1073
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1370</span>
1074
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">install_dir_man</span>(<span class="ruby-identifier">rel</span>)
1075
+ <span class="ruby-identifier">install_files</span> <span class="ruby-identifier">targetfiles</span>(), <span class="ruby-node">&quot;#{config('mandir')}/#{rel}&quot;</span>, <span class="ruby-value">0644</span>
1076
+ <span class="ruby-keyword kw">end</span>
1077
+ </pre>
1078
+ </div>
1079
+ </div>
1080
+ </div>
1081
+
1082
+ <div id="method-M000206" class="method-detail">
1083
+ <a name="M000206"></a>
1084
+
1085
+ <div class="method-heading">
1086
+ <a href="#M000206" class="method-signature">
1087
+ <span class="method-name">install_files</span><span class="method-args">(list, dest, mode)</span>
1088
+ </a>
1089
+ </div>
1090
+
1091
+ <div class="method-description">
1092
+ <p><a class="source-toggle" href="#"
1093
+ onclick="toggleCode('M000206-source');return false;">[Source]</a></p>
1094
+ <div class="method-source-code" id="M000206-source">
1095
+ <pre>
1096
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1374</span>
1097
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">install_files</span>(<span class="ruby-identifier">list</span>, <span class="ruby-identifier">dest</span>, <span class="ruby-identifier">mode</span>)
1098
+ <span class="ruby-identifier">mkdir_p</span> <span class="ruby-identifier">dest</span>, <span class="ruby-ivar">@config</span>.<span class="ruby-identifier">install_prefix</span>
1099
+ <span class="ruby-identifier">list</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">fname</span><span class="ruby-operator">|</span>
1100
+ <span class="ruby-identifier">install</span> <span class="ruby-identifier">fname</span>, <span class="ruby-identifier">dest</span>, <span class="ruby-identifier">mode</span>, <span class="ruby-ivar">@config</span>.<span class="ruby-identifier">install_prefix</span>
1101
+ <span class="ruby-keyword kw">end</span>
1102
+ <span class="ruby-keyword kw">end</span>
1103
+ </pre>
1104
+ </div>
1105
+ </div>
1106
+ </div>
1107
+
1108
+ <div id="method-M000207" class="method-detail">
1109
+ <a name="M000207"></a>
1110
+
1111
+ <div class="method-heading">
1112
+ <a href="#M000207" class="method-signature">
1113
+ <span class="method-name">libfiles</span><span class="method-args">()</span>
1114
+ </a>
1115
+ </div>
1116
+
1117
+ <div class="method-description">
1118
+ <p><a class="source-toggle" href="#"
1119
+ onclick="toggleCode('M000207-source');return false;">[Source]</a></p>
1120
+ <div class="method-source-code" id="M000207-source">
1121
+ <pre>
1122
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1381</span>
1123
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">libfiles</span>
1124
+ <span class="ruby-identifier">glob_reject</span>(<span class="ruby-node">%w(*.y *.output)</span>, <span class="ruby-identifier">targetfiles</span>())
1125
+ <span class="ruby-keyword kw">end</span>
1126
+ </pre>
1127
+ </div>
1128
+ </div>
1129
+ </div>
1130
+
1131
+ <div id="method-M000210" class="method-detail">
1132
+ <a name="M000210"></a>
1133
+
1134
+ <div class="method-heading">
1135
+ <a href="#M000210" class="method-signature">
1136
+ <span class="method-name">mapdir</span><span class="method-args">(ents)</span>
1137
+ </a>
1138
+ </div>
1139
+
1140
+ <div class="method-description">
1141
+ <p><a class="source-toggle" href="#"
1142
+ onclick="toggleCode('M000210-source');return false;">[Source]</a></p>
1143
+ <div class="method-source-code" id="M000210-source">
1144
+ <pre>
1145
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1397</span>
1146
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mapdir</span>(<span class="ruby-identifier">ents</span>)
1147
+ <span class="ruby-identifier">ents</span>.<span class="ruby-identifier">map</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">ent</span><span class="ruby-operator">|</span>
1148
+ <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-identifier">ent</span>)
1149
+ <span class="ruby-keyword kw">then</span> <span class="ruby-identifier">ent</span> <span class="ruby-comment cmt"># objdir</span>
1150
+ <span class="ruby-keyword kw">else</span> <span class="ruby-node">&quot;#{curr_srcdir()}/#{ent}&quot;</span> <span class="ruby-comment cmt"># srcdir</span>
1151
+ <span class="ruby-keyword kw">end</span>
1152
+ }
1153
+ <span class="ruby-keyword kw">end</span>
1154
+ </pre>
1155
+ </div>
1156
+ </div>
1157
+ </div>
1158
+
1159
+ <div id="method-M000197" class="method-detail">
1160
+ <a name="M000197"></a>
1161
+
1162
+ <div class="method-heading">
1163
+ <a href="#M000197" class="method-signature">
1164
+ <span class="method-name">new_shebang</span><span class="method-args">(old)</span>
1165
+ </a>
1166
+ </div>
1167
+
1168
+ <div class="method-description">
1169
+ <p><a class="source-toggle" href="#"
1170
+ onclick="toggleCode('M000197-source');return false;">[Source]</a></p>
1171
+ <div class="method-source-code" id="M000197-source">
1172
+ <pre>
1173
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1287</span>
1174
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">new_shebang</span>(<span class="ruby-identifier">old</span>)
1175
+ <span class="ruby-keyword kw">if</span> <span class="ruby-regexp re">/\Aruby/</span> <span class="ruby-operator">=~</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-identifier">old</span>.<span class="ruby-identifier">cmd</span>)
1176
+ <span class="ruby-constant">Shebang</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">config</span>(<span class="ruby-value str">'rubypath'</span>), <span class="ruby-identifier">old</span>.<span class="ruby-identifier">args</span>)
1177
+ <span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-identifier">old</span>.<span class="ruby-identifier">cmd</span>) <span class="ruby-operator">==</span> <span class="ruby-value str">'env'</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">old</span>.<span class="ruby-identifier">args</span>.<span class="ruby-identifier">first</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'ruby'</span>
1178
+ <span class="ruby-constant">Shebang</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">config</span>(<span class="ruby-value str">'rubypath'</span>), <span class="ruby-identifier">old</span>.<span class="ruby-identifier">args</span>[<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>])
1179
+ <span class="ruby-keyword kw">else</span>
1180
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">old</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">config</span>(<span class="ruby-value str">'shebang'</span>) <span class="ruby-operator">==</span> <span class="ruby-value str">'all'</span>
1181
+ <span class="ruby-constant">Shebang</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">config</span>(<span class="ruby-value str">'rubypath'</span>))
1182
+ <span class="ruby-keyword kw">end</span>
1183
+ <span class="ruby-keyword kw">end</span>
1184
+ </pre>
1185
+ </div>
1186
+ </div>
1187
+ </div>
1188
+
1189
+ <div id="method-M000179" class="method-detail">
1190
+ <a name="M000179"></a>
1191
+
1192
+ <div class="method-heading">
1193
+ <a href="#M000179" class="method-signature">
1194
+ <span class="method-name">no_harm?</span><span class="method-args">()</span>
1195
+ </a>
1196
+ </div>
1197
+
1198
+ <div class="method-description">
1199
+ <p>
1200
+ module <a href="FileOperations.html">FileOperations</a> requires this
1201
+ </p>
1202
+ <p><a class="source-toggle" href="#"
1203
+ onclick="toggleCode('M000179-source');return false;">[Source]</a></p>
1204
+ <div class="method-source-code" id="M000179-source">
1205
+ <pre>
1206
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1205</span>
1207
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">no_harm?</span>
1208
+ <span class="ruby-ivar">@config</span>.<span class="ruby-identifier">no_harm?</span>
1209
+ <span class="ruby-keyword kw">end</span>
1210
+ </pre>
1211
+ </div>
1212
+ </div>
1213
+ </div>
1214
+
1215
+ <div id="method-M000174" class="method-detail">
1216
+ <a name="M000174"></a>
1217
+
1218
+ <div class="method-heading">
1219
+ <a href="#M000174" class="method-signature">
1220
+ <span class="method-name">noop</span><span class="method-args">(rel)</span>
1221
+ </a>
1222
+ </div>
1223
+
1224
+ <div class="method-description">
1225
+ <p><a class="source-toggle" href="#"
1226
+ onclick="toggleCode('M000174-source');return false;">[Source]</a></p>
1227
+ <div class="method-source-code" id="M000174-source">
1228
+ <pre>
1229
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1176</span>
1230
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">noop</span>(<span class="ruby-identifier">rel</span>)
1231
+ <span class="ruby-keyword kw">end</span>
1232
+ </pre>
1233
+ </div>
1234
+ </div>
1235
+ </div>
1236
+
1237
+ <div id="method-M000176" class="method-detail">
1238
+ <a name="M000176"></a>
1239
+
1240
+ <div class="method-heading">
1241
+ <a href="#M000176" class="method-signature">
1242
+ <span class="method-name">objdir_root</span><span class="method-args">()</span>
1243
+ </a>
1244
+ </div>
1245
+
1246
+ <div class="method-description">
1247
+ <p><a class="source-toggle" href="#"
1248
+ onclick="toggleCode('M000176-source');return false;">[Source]</a></p>
1249
+ <div class="method-source-code" id="M000176-source">
1250
+ <pre>
1251
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1187</span>
1252
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">objdir_root</span>
1253
+ <span class="ruby-ivar">@objdir</span>
1254
+ <span class="ruby-keyword kw">end</span>
1255
+ </pre>
1256
+ </div>
1257
+ </div>
1258
+ </div>
1259
+
1260
+ <div id="method-M000198" class="method-detail">
1261
+ <a name="M000198"></a>
1262
+
1263
+ <div class="method-heading">
1264
+ <a href="#M000198" class="method-signature">
1265
+ <span class="method-name">open_atomic_writer</span><span class="method-args">(path, &amp;block)</span>
1266
+ </a>
1267
+ </div>
1268
+
1269
+ <div class="method-description">
1270
+ <p><a class="source-toggle" href="#"
1271
+ onclick="toggleCode('M000198-source');return false;">[Source]</a></p>
1272
+ <div class="method-source-code" id="M000198-source">
1273
+ <pre>
1274
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1298</span>
1275
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">open_atomic_writer</span>(<span class="ruby-identifier">path</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
1276
+ <span class="ruby-identifier">tmpfile</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-identifier">path</span>) <span class="ruby-operator">+</span> <span class="ruby-value str">'.tmp'</span>
1277
+ <span class="ruby-keyword kw">begin</span>
1278
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">tmpfile</span>, <span class="ruby-value str">'wb'</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
1279
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">rename</span> <span class="ruby-identifier">tmpfile</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-identifier">path</span>)
1280
+ <span class="ruby-keyword kw">ensure</span>
1281
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">unlink</span> <span class="ruby-identifier">tmpfile</span> <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-identifier">tmpfile</span>)
1282
+ <span class="ruby-keyword kw">end</span>
1283
+ <span class="ruby-keyword kw">end</span>
1284
+ </pre>
1285
+ </div>
1286
+ </div>
1287
+ </div>
1288
+
1289
+ <div id="method-M000177" class="method-detail">
1290
+ <a name="M000177"></a>
1291
+
1292
+ <div class="method-heading">
1293
+ <a href="#M000177" class="method-signature">
1294
+ <span class="method-name">relpath</span><span class="method-args">()</span>
1295
+ </a>
1296
+ </div>
1297
+
1298
+ <div class="method-description">
1299
+ <p><a class="source-toggle" href="#"
1300
+ onclick="toggleCode('M000177-source');return false;">[Source]</a></p>
1301
+ <div class="method-source-code" id="M000177-source">
1302
+ <pre>
1303
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1191</span>
1304
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">relpath</span>
1305
+ <span class="ruby-ivar">@currdir</span>
1306
+ <span class="ruby-keyword kw">end</span>
1307
+ </pre>
1308
+ </div>
1309
+ </div>
1310
+ </div>
1311
+
1312
+ <div id="method-M000208" class="method-detail">
1313
+ <a name="M000208"></a>
1314
+
1315
+ <div class="method-heading">
1316
+ <a href="#M000208" class="method-signature">
1317
+ <span class="method-name">rubyextentions</span><span class="method-args">(dir)</span>
1318
+ </a>
1319
+ </div>
1320
+
1321
+ <div class="method-description">
1322
+ <p><a class="source-toggle" href="#"
1323
+ onclick="toggleCode('M000208-source');return false;">[Source]</a></p>
1324
+ <div class="method-source-code" id="M000208-source">
1325
+ <pre>
1326
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1385</span>
1327
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rubyextentions</span>(<span class="ruby-identifier">dir</span>)
1328
+ <span class="ruby-identifier">ents</span> = <span class="ruby-identifier">glob_select</span>(<span class="ruby-node">&quot;*.#{@config.dllext}&quot;</span>, <span class="ruby-identifier">targetfiles</span>())
1329
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">ents</span>.<span class="ruby-identifier">empty?</span>
1330
+ <span class="ruby-identifier">setup_rb_error</span> <span class="ruby-node">&quot;no ruby extention exists: 'ruby #{$0} setup' first&quot;</span>
1331
+ <span class="ruby-keyword kw">end</span>
1332
+ <span class="ruby-identifier">ents</span>
1333
+ <span class="ruby-keyword kw">end</span>
1334
+ </pre>
1335
+ </div>
1336
+ </div>
1337
+ </div>
1338
+
1339
+ <div id="method-M000234" class="method-detail">
1340
+ <a name="M000234"></a>
1341
+
1342
+ <div class="method-heading">
1343
+ <a href="#M000234" class="method-signature">
1344
+ <span class="method-name">run_hook</span><span class="method-args">(id)</span>
1345
+ </a>
1346
+ </div>
1347
+
1348
+ <div class="method-description">
1349
+ <p><a class="source-toggle" href="#"
1350
+ onclick="toggleCode('M000234-source');return false;">[Source]</a></p>
1351
+ <div class="method-source-code" id="M000234-source">
1352
+ <pre>
1353
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1555</span>
1354
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run_hook</span>(<span class="ruby-identifier">id</span>)
1355
+ <span class="ruby-identifier">path</span> = [ <span class="ruby-node">&quot;#{curr_srcdir()}/#{id}&quot;</span>,
1356
+ <span class="ruby-node">&quot;#{curr_srcdir()}/#{id}.rb&quot;</span> ].<span class="ruby-identifier">detect</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">cand</span><span class="ruby-operator">|</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">file?</span>(<span class="ruby-identifier">cand</span>) }
1357
+ <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">path</span>
1358
+ <span class="ruby-keyword kw">begin</span>
1359
+ <span class="ruby-identifier">instance_eval</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">path</span>), <span class="ruby-identifier">path</span>, <span class="ruby-value">1</span>
1360
+ <span class="ruby-keyword kw">rescue</span>
1361
+ <span class="ruby-identifier">raise</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">$DEBUG</span>
1362
+ <span class="ruby-identifier">setup_rb_error</span> <span class="ruby-node">&quot;hook #{path} failed:\n&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">$!</span>.<span class="ruby-identifier">message</span>
1363
+ <span class="ruby-keyword kw">end</span>
1364
+ <span class="ruby-keyword kw">end</span>
1365
+ </pre>
1366
+ </div>
1367
+ </div>
1368
+ </div>
1369
+
1370
+ <div id="method-M000190" class="method-detail">
1371
+ <a name="M000190"></a>
1372
+
1373
+ <div class="method-heading">
1374
+ <a href="#M000190" class="method-signature">
1375
+ <span class="method-name">setup_dir_bin</span><span class="method-args">(rel)</span>
1376
+ </a>
1377
+ </div>
1378
+
1379
+ <div class="method-description">
1380
+ <p><a class="source-toggle" href="#"
1381
+ onclick="toggleCode('M000190-source');return false;">[Source]</a></p>
1382
+ <div class="method-source-code" id="M000190-source">
1383
+ <pre>
1384
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1249</span>
1385
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup_dir_bin</span>(<span class="ruby-identifier">rel</span>)
1386
+ <span class="ruby-identifier">files_of</span>(<span class="ruby-identifier">curr_srcdir</span>()).<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">fname</span><span class="ruby-operator">|</span>
1387
+ <span class="ruby-identifier">update_shebang_line</span> <span class="ruby-node">&quot;#{curr_srcdir()}/#{fname}&quot;</span>
1388
+ <span class="ruby-keyword kw">end</span>
1389
+ <span class="ruby-keyword kw">end</span>
1390
+ </pre>
1391
+ </div>
1392
+ </div>
1393
+ </div>
1394
+
1395
+ <div id="method-M000194" class="method-detail">
1396
+ <a name="M000194"></a>
1397
+
1398
+ <div class="method-heading">
1399
+ <span class="method-name">setup_dir_conf</span><span class="method-args">(rel)</span>
1400
+ </div>
1401
+
1402
+ <div class="method-description">
1403
+ <p>
1404
+ Alias for <a href="Installer.html#M000174">noop</a>
1405
+ </p>
1406
+ </div>
1407
+ </div>
1408
+
1409
+ <div id="method-M000193" class="method-detail">
1410
+ <a name="M000193"></a>
1411
+
1412
+ <div class="method-heading">
1413
+ <span class="method-name">setup_dir_data</span><span class="method-args">(rel)</span>
1414
+ </div>
1415
+
1416
+ <div class="method-description">
1417
+ <p>
1418
+ Alias for <a href="Installer.html#M000174">noop</a>
1419
+ </p>
1420
+ </div>
1421
+ </div>
1422
+
1423
+ <div id="method-M000192" class="method-detail">
1424
+ <a name="M000192"></a>
1425
+
1426
+ <div class="method-heading">
1427
+ <a href="#M000192" class="method-signature">
1428
+ <span class="method-name">setup_dir_ext</span><span class="method-args">(rel)</span>
1429
+ </a>
1430
+ </div>
1431
+
1432
+ <div class="method-description">
1433
+ <p><a class="source-toggle" href="#"
1434
+ onclick="toggleCode('M000192-source');return false;">[Source]</a></p>
1435
+ <div class="method-source-code" id="M000192-source">
1436
+ <pre>
1437
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1257</span>
1438
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup_dir_ext</span>(<span class="ruby-identifier">rel</span>)
1439
+ <span class="ruby-identifier">make</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">extdir?</span>(<span class="ruby-identifier">curr_srcdir</span>())
1440
+ <span class="ruby-keyword kw">end</span>
1441
+ </pre>
1442
+ </div>
1443
+ </div>
1444
+ </div>
1445
+
1446
+ <div id="method-M000191" class="method-detail">
1447
+ <a name="M000191"></a>
1448
+
1449
+ <div class="method-heading">
1450
+ <span class="method-name">setup_dir_lib</span><span class="method-args">(rel)</span>
1451
+ </div>
1452
+
1453
+ <div class="method-description">
1454
+ <p>
1455
+ Alias for <a href="Installer.html#M000174">noop</a>
1456
+ </p>
1457
+ </div>
1458
+ </div>
1459
+
1460
+ <div id="method-M000195" class="method-detail">
1461
+ <a name="M000195"></a>
1462
+
1463
+ <div class="method-heading">
1464
+ <span class="method-name">setup_dir_man</span><span class="method-args">(rel)</span>
1465
+ </div>
1466
+
1467
+ <div class="method-description">
1468
+ <p>
1469
+ Alias for <a href="Installer.html#M000174">noop</a>
1470
+ </p>
1471
+ </div>
1472
+ </div>
1473
+
1474
+ <div id="method-M000175" class="method-detail">
1475
+ <a name="M000175"></a>
1476
+
1477
+ <div class="method-heading">
1478
+ <a href="#M000175" class="method-signature">
1479
+ <span class="method-name">srcdir_root</span><span class="method-args">()</span>
1480
+ </a>
1481
+ </div>
1482
+
1483
+ <div class="method-description">
1484
+ <p>
1485
+ Hook Script API base methods
1486
+ </p>
1487
+ <p><a class="source-toggle" href="#"
1488
+ onclick="toggleCode('M000175-source');return false;">[Source]</a></p>
1489
+ <div class="method-source-code" id="M000175-source">
1490
+ <pre>
1491
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1183</span>
1492
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">srcdir_root</span>
1493
+ <span class="ruby-ivar">@srcdir</span>
1494
+ <span class="ruby-keyword kw">end</span>
1495
+ </pre>
1496
+ </div>
1497
+ </div>
1498
+ </div>
1499
+
1500
+ <div id="method-M000209" class="method-detail">
1501
+ <a name="M000209"></a>
1502
+
1503
+ <div class="method-heading">
1504
+ <a href="#M000209" class="method-signature">
1505
+ <span class="method-name">targetfiles</span><span class="method-args">()</span>
1506
+ </a>
1507
+ </div>
1508
+
1509
+ <div class="method-description">
1510
+ <p><a class="source-toggle" href="#"
1511
+ onclick="toggleCode('M000209-source');return false;">[Source]</a></p>
1512
+ <div class="method-source-code" id="M000209-source">
1513
+ <pre>
1514
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1393</span>
1515
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">targetfiles</span>
1516
+ <span class="ruby-identifier">mapdir</span>(<span class="ruby-identifier">existfiles</span>() <span class="ruby-operator">-</span> <span class="ruby-identifier">hookfiles</span>())
1517
+ <span class="ruby-keyword kw">end</span>
1518
+ </pre>
1519
+ </div>
1520
+ </div>
1521
+ </div>
1522
+
1523
+ <div id="method-M000232" class="method-detail">
1524
+ <a name="M000232"></a>
1525
+
1526
+ <div class="method-heading">
1527
+ <a href="#M000232" class="method-signature">
1528
+ <span class="method-name">traverse</span><span class="method-args">(task, rel, mid)</span>
1529
+ </a>
1530
+ </div>
1531
+
1532
+ <div class="method-description">
1533
+ <p><a class="source-toggle" href="#"
1534
+ onclick="toggleCode('M000232-source');return false;">[Source]</a></p>
1535
+ <div class="method-source-code" id="M000232-source">
1536
+ <pre>
1537
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1529</span>
1538
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">traverse</span>(<span class="ruby-identifier">task</span>, <span class="ruby-identifier">rel</span>, <span class="ruby-identifier">mid</span>)
1539
+ <span class="ruby-identifier">dive_into</span>(<span class="ruby-identifier">rel</span>) {
1540
+ <span class="ruby-identifier">run_hook</span> <span class="ruby-node">&quot;pre-#{task}&quot;</span>
1541
+ <span class="ruby-identifier">__send__</span> <span class="ruby-identifier">mid</span>, <span class="ruby-identifier">rel</span>.<span class="ruby-identifier">sub</span>(<span class="ruby-regexp re">%r[\A.*?(?:/|\z)]</span>, <span class="ruby-value str">''</span>)
1542
+ <span class="ruby-identifier">directories_of</span>(<span class="ruby-identifier">curr_srcdir</span>()).<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">d</span><span class="ruby-operator">|</span>
1543
+ <span class="ruby-identifier">traverse</span> <span class="ruby-identifier">task</span>, <span class="ruby-node">&quot;#{rel}/#{d}&quot;</span>, <span class="ruby-identifier">mid</span>
1544
+ <span class="ruby-keyword kw">end</span>
1545
+ <span class="ruby-identifier">run_hook</span> <span class="ruby-node">&quot;post-#{task}&quot;</span>
1546
+ }
1547
+ <span class="ruby-keyword kw">end</span>
1548
+ </pre>
1549
+ </div>
1550
+ </div>
1551
+ </div>
1552
+
1553
+ <div id="method-M000196" class="method-detail">
1554
+ <a name="M000196"></a>
1555
+
1556
+ <div class="method-heading">
1557
+ <a href="#M000196" class="method-signature">
1558
+ <span class="method-name">update_shebang_line</span><span class="method-args">(path)</span>
1559
+ </a>
1560
+ </div>
1561
+
1562
+ <div class="method-description">
1563
+ <p><a class="source-toggle" href="#"
1564
+ onclick="toggleCode('M000196-source');return false;">[Source]</a></p>
1565
+ <div class="method-source-code" id="M000196-source">
1566
+ <pre>
1567
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1265</span>
1568
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update_shebang_line</span>(<span class="ruby-identifier">path</span>)
1569
+ <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">no_harm?</span>
1570
+ <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">config</span>(<span class="ruby-value str">'shebang'</span>) <span class="ruby-operator">==</span> <span class="ruby-value str">'never'</span>
1571
+ <span class="ruby-identifier">old</span> = <span class="ruby-constant">Shebang</span>.<span class="ruby-identifier">load</span>(<span class="ruby-identifier">path</span>)
1572
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">old</span>
1573
+ <span class="ruby-identifier">$stderr</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;warning: #{path}: Shebang line includes too many args. It is not portable and your program may not work.&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">old</span>.<span class="ruby-identifier">args</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">1</span>
1574
+ <span class="ruby-identifier">new</span> = <span class="ruby-identifier">new_shebang</span>(<span class="ruby-identifier">old</span>)
1575
+ <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">new</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">old</span>.<span class="ruby-identifier">to_s</span>
1576
+ <span class="ruby-keyword kw">else</span>
1577
+ <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">config</span>(<span class="ruby-value str">'shebang'</span>) <span class="ruby-operator">==</span> <span class="ruby-value str">'all'</span>
1578
+ <span class="ruby-identifier">new</span> = <span class="ruby-constant">Shebang</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">config</span>(<span class="ruby-value str">'rubypath'</span>))
1579
+ <span class="ruby-keyword kw">end</span>
1580
+ <span class="ruby-identifier">$stderr</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;updating shebang: #{File.basename(path)}&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">verbose?</span>
1581
+ <span class="ruby-identifier">open_atomic_writer</span>(<span class="ruby-identifier">path</span>) {<span class="ruby-operator">|</span><span class="ruby-identifier">output</span><span class="ruby-operator">|</span>
1582
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">path</span>, <span class="ruby-value str">'rb'</span>) {<span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span>
1583
+ <span class="ruby-identifier">f</span>.<span class="ruby-identifier">gets</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">old</span> <span class="ruby-comment cmt"># discard</span>
1584
+ <span class="ruby-identifier">output</span>.<span class="ruby-identifier">puts</span> <span class="ruby-identifier">new</span>.<span class="ruby-identifier">to_s</span>
1585
+ <span class="ruby-identifier">output</span>.<span class="ruby-identifier">print</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">read</span>
1586
+ }
1587
+ }
1588
+ <span class="ruby-keyword kw">end</span>
1589
+ </pre>
1590
+ </div>
1591
+ </div>
1592
+ </div>
1593
+
1594
+ <div id="method-M000178" class="method-detail">
1595
+ <a name="M000178"></a>
1596
+
1597
+ <div class="method-heading">
1598
+ <a href="#M000178" class="method-signature">
1599
+ <span class="method-name">verbose?</span><span class="method-args">()</span>
1600
+ </a>
1601
+ </div>
1602
+
1603
+ <div class="method-description">
1604
+ <p>
1605
+ module <a href="FileOperations.html">FileOperations</a> requires this
1606
+ </p>
1607
+ <p><a class="source-toggle" href="#"
1608
+ onclick="toggleCode('M000178-source');return false;">[Source]</a></p>
1609
+ <div class="method-source-code" id="M000178-source">
1610
+ <pre>
1611
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1200</span>
1612
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">verbose?</span>
1613
+ <span class="ruby-ivar">@config</span>.<span class="ruby-identifier">verbose?</span>
1614
+ <span class="ruby-keyword kw">end</span>
1615
+ </pre>
1616
+ </div>
1617
+ </div>
1618
+ </div>
1619
+
1620
+ <div id="method-M000180" class="method-detail">
1621
+ <a name="M000180"></a>
1622
+
1623
+ <div class="method-heading">
1624
+ <a href="#M000180" class="method-signature">
1625
+ <span class="method-name">verbose_off</span><span class="method-args">() {|| ...}</span>
1626
+ </a>
1627
+ </div>
1628
+
1629
+ <div class="method-description">
1630
+ <p><a class="source-toggle" href="#"
1631
+ onclick="toggleCode('M000180-source');return false;">[Source]</a></p>
1632
+ <div class="method-source-code" id="M000180-source">
1633
+ <pre>
1634
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1209</span>
1635
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">verbose_off</span>
1636
+ <span class="ruby-keyword kw">begin</span>
1637
+ <span class="ruby-identifier">save</span>, <span class="ruby-ivar">@config</span>.<span class="ruby-identifier">verbose</span> = <span class="ruby-ivar">@config</span>.<span class="ruby-identifier">verbose?</span>, <span class="ruby-keyword kw">false</span>
1638
+ <span class="ruby-keyword kw">yield</span>
1639
+ <span class="ruby-keyword kw">ensure</span>
1640
+ <span class="ruby-ivar">@config</span>.<span class="ruby-identifier">verbose</span> = <span class="ruby-identifier">save</span>
1641
+ <span class="ruby-keyword kw">end</span>
1642
+ <span class="ruby-keyword kw">end</span>
1643
+ </pre>
1644
+ </div>
1645
+ </div>
1646
+ </div>
1647
+
1648
+
1649
+ </div>
1650
+
1651
+
1652
+ </div>
1653
+
1654
+
1655
+ <div id="validator-badges">
1656
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
1657
+ </div>
1658
+
1659
+ </body>
1660
+ </html>