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.
- data/README.rdoc +4 -0
- data/Rakefile +3 -3
- data/VERSION +1 -1
- data/bin/cft_smartcloud +37 -0
- data/cft_smartcloud.gemspec +88 -7
- data/lib/smartcloud.rb +12 -2
- data/lib/smartcloud_logger.rb +1 -1
- data/rdoc/classes/ConfigTable/BoolItem.html +172 -0
- data/rdoc/classes/ConfigTable/ExecItem.html +252 -0
- data/rdoc/classes/ConfigTable/Item.html +308 -0
- data/rdoc/classes/ConfigTable/MetaConfigEnvironment.html +445 -0
- data/rdoc/classes/ConfigTable/PackageSelectionItem.html +188 -0
- data/rdoc/classes/ConfigTable/PathItem.html +148 -0
- data/rdoc/classes/ConfigTable/ProgramItem.html +148 -0
- data/rdoc/classes/ConfigTable/SelectItem.html +175 -0
- data/rdoc/classes/ConfigTable.html +724 -0
- data/rdoc/classes/Enumerable.html +157 -0
- data/rdoc/classes/Errno/ENOTEMPTY.html +111 -0
- data/rdoc/classes/Errno.html +111 -0
- data/rdoc/classes/File.html +197 -0
- data/rdoc/classes/FileOperations.html +600 -0
- data/rdoc/classes/Hash.html +163 -0
- data/rdoc/classes/HookScriptAPI.html +413 -0
- data/rdoc/classes/IBMSmartCloud.html +1484 -0
- data/rdoc/classes/Installer/Shebang.html +245 -0
- data/rdoc/classes/Installer.html +1660 -0
- data/rdoc/classes/MIME/InvalidContentType.html +119 -0
- data/rdoc/classes/MIME/Type.html +1366 -0
- data/rdoc/classes/MIME/Types.html +643 -0
- data/rdoc/classes/MIME.html +124 -0
- data/rdoc/classes/MockSmartCloud.html +376 -0
- data/rdoc/classes/Net/HTTP.html +164 -0
- data/rdoc/classes/Net.html +122 -0
- data/rdoc/classes/RestClient/AbstractResponse.html +417 -0
- data/rdoc/classes/RestClient/Exception.html +305 -0
- data/rdoc/classes/RestClient/ExceptionWithResponse.html +119 -0
- data/rdoc/classes/RestClient/Exceptions.html +130 -0
- data/rdoc/classes/RestClient/MaxRedirectsReached.html +113 -0
- data/rdoc/classes/RestClient/Payload/Base.html +422 -0
- data/rdoc/classes/RestClient/Payload/Multipart.html +372 -0
- data/rdoc/classes/RestClient/Payload/Streamed.html +191 -0
- data/rdoc/classes/RestClient/Payload/UrlEncoded.html +202 -0
- data/rdoc/classes/RestClient/Payload.html +192 -0
- data/rdoc/classes/RestClient/RawResponse.html +236 -0
- data/rdoc/classes/RestClient/Redirect.html +168 -0
- data/rdoc/classes/RestClient/Request.html +950 -0
- data/rdoc/classes/RestClient/RequestFailed.html +178 -0
- data/rdoc/classes/RestClient/Resource.html +607 -0
- data/rdoc/classes/RestClient/Response.html +208 -0
- data/rdoc/classes/RestClient/ResponseForException.html +152 -0
- data/rdoc/classes/RestClient/SSLCertificateNotVerified.html +149 -0
- data/rdoc/classes/RestClient/ServerBrokeConnection.html +157 -0
- data/rdoc/classes/RestClient.html +737 -0
- data/rdoc/classes/SetupError.html +111 -0
- data/rdoc/classes/SmartcloudLogger.html +162 -0
- data/rdoc/classes/TestMIME.html +109 -0
- data/rdoc/classes/ToplevelInstaller.html +987 -0
- data/rdoc/classes/ToplevelInstallerMulti.html +593 -0
- data/rdoc/classes/XmlSimple/Cache.html +372 -0
- data/rdoc/classes/XmlSimple.html +475 -0
- data/rdoc/created.rid +1 -0
- data/rdoc/files/README_rdoc.html +198 -0
- data/rdoc/files/lib/hash_fix_rb.html +115 -0
- data/rdoc/files/lib/mime-types-1_16/lib/mime/types_rb.html +107 -0
- data/rdoc/files/lib/mime-types-1_16/setup_rb.html +157 -0
- data/rdoc/files/lib/mime-types-1_16/test/test_mime_type_rb.html +109 -0
- data/rdoc/files/lib/mime-types-1_16/test/test_mime_types_rb.html +109 -0
- data/rdoc/files/lib/mock_smartcloud_rb.html +115 -0
- data/rdoc/files/lib/rest-client-1_6_3/lib/rest-client_rb.html +107 -0
- data/rdoc/files/lib/rest-client-1_6_3/lib/rest_client_rb.html +108 -0
- data/rdoc/files/lib/rest-client-1_6_3/lib/restclient/abstract_response_rb.html +108 -0
- data/rdoc/files/lib/rest-client-1_6_3/lib/restclient/exceptions_rb.html +101 -0
- data/rdoc/files/lib/rest-client-1_6_3/lib/restclient/net_http_ext_rb.html +113 -0
- data/rdoc/files/lib/rest-client-1_6_3/lib/restclient/payload_rb.html +110 -0
- data/rdoc/files/lib/rest-client-1_6_3/lib/restclient/raw_response_rb.html +101 -0
- data/rdoc/files/lib/rest-client-1_6_3/lib/restclient/request_rb.html +110 -0
- data/rdoc/files/lib/rest-client-1_6_3/lib/restclient/resource_rb.html +101 -0
- data/rdoc/files/lib/rest-client-1_6_3/lib/restclient/response_rb.html +101 -0
- data/rdoc/files/lib/rest-client-1_6_3/lib/restclient_rb.html +111 -0
- data/rdoc/files/lib/restclient_fix_rb.html +115 -0
- data/rdoc/files/lib/smartcloud_logger_rb.html +115 -0
- data/rdoc/files/lib/smartcloud_rb.html +143 -0
- data/rdoc/files/lib/xml-simple-1_0_12/lib/xmlsimple_rb.html +124 -0
- data/rdoc/fr_class_index.html +79 -0
- data/rdoc/fr_file_index.html +48 -0
- data/rdoc/fr_method_index.html +441 -0
- data/rdoc/index.html +26 -0
- data/rdoc/rdoc-style.css +208 -0
- metadata +90 -6
@@ -0,0 +1,987 @@
|
|
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: ToplevelInstaller</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">ToplevelInstaller</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="#M000028">config</a>
|
90
|
+
<a href="#M000053">exec_clean</a>
|
91
|
+
<a href="#M000048">exec_config</a>
|
92
|
+
<a href="#M000054">exec_distclean</a>
|
93
|
+
<a href="#M000050">exec_install</a>
|
94
|
+
<a href="#M000049">exec_setup</a>
|
95
|
+
<a href="#M000052">exec_show</a>
|
96
|
+
<a href="#M000051">exec_test</a>
|
97
|
+
<a href="#M000032">init_installers</a>
|
98
|
+
<a href="#M000029">inspect</a>
|
99
|
+
<a href="#M000030">invoke</a>
|
100
|
+
<a href="#M000024">invoke</a>
|
101
|
+
<a href="#M000026">load_rbconfig</a>
|
102
|
+
<a href="#M000025">multipackage?</a>
|
103
|
+
<a href="#M000027">new</a>
|
104
|
+
<a href="#M000034">objdir_root</a>
|
105
|
+
<a href="#M000043">parsearg_clean</a>
|
106
|
+
<a href="#M000045">parsearg_config</a>
|
107
|
+
<a href="#M000044">parsearg_distclean</a>
|
108
|
+
<a href="#M000036">parsearg_global</a>
|
109
|
+
<a href="#M000046">parsearg_install</a>
|
110
|
+
<a href="#M000039">parsearg_no_options</a>
|
111
|
+
<a href="#M000041">parsearg_setup</a>
|
112
|
+
<a href="#M000040">parsearg_show</a>
|
113
|
+
<a href="#M000042">parsearg_test</a>
|
114
|
+
<a href="#M000047">print_usage</a>
|
115
|
+
<a href="#M000035">relpath</a>
|
116
|
+
<a href="#M000031">run_metaconfigs</a>
|
117
|
+
<a href="#M000033">srcdir_root</a>
|
118
|
+
<a href="#M000037">valid_task?</a>
|
119
|
+
<a href="#M000038">valid_task_re</a>
|
120
|
+
</div>
|
121
|
+
</div>
|
122
|
+
|
123
|
+
</div>
|
124
|
+
|
125
|
+
|
126
|
+
<!-- if includes -->
|
127
|
+
|
128
|
+
<div id="section">
|
129
|
+
|
130
|
+
|
131
|
+
<div id="constants-list">
|
132
|
+
<h3 class="section-bar">Constants</h3>
|
133
|
+
|
134
|
+
<div class="name-list">
|
135
|
+
<table summary="Constants">
|
136
|
+
<tr class="top-aligned-row context-row">
|
137
|
+
<td class="context-item-name">Version</td>
|
138
|
+
<td>=</td>
|
139
|
+
<td class="context-item-value">'3.4.1'</td>
|
140
|
+
</tr>
|
141
|
+
<tr class="top-aligned-row context-row">
|
142
|
+
<td class="context-item-name">Copyright</td>
|
143
|
+
<td>=</td>
|
144
|
+
<td class="context-item-value">'Copyright (c) 2000-2005 Minero Aoki'</td>
|
145
|
+
</tr>
|
146
|
+
<tr class="top-aligned-row context-row">
|
147
|
+
<td class="context-item-name">TASKS</td>
|
148
|
+
<td>=</td>
|
149
|
+
<td class="context-item-value">[ [ 'all', 'do config, setup, then install' ], [ 'config', 'saves your configurations' ], [ 'show', 'shows current configuration' ], [ 'setup', 'compiles ruby extentions and others' ], [ 'install', 'installs files' ], [ 'test', 'run all tests in test/' ], [ 'clean', "does `make clean' for each extention" ], [ 'distclean',"does `make distclean' for each extention" ]</td>
|
150
|
+
</tr>
|
151
|
+
</table>
|
152
|
+
</div>
|
153
|
+
</div>
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
<!-- if method_list -->
|
161
|
+
<div id="methods">
|
162
|
+
<h3 class="section-bar">Public Class methods</h3>
|
163
|
+
|
164
|
+
<div id="method-M000024" class="method-detail">
|
165
|
+
<a name="M000024"></a>
|
166
|
+
|
167
|
+
<div class="method-heading">
|
168
|
+
<a href="#M000024" class="method-signature">
|
169
|
+
<span class="method-name">invoke</span><span class="method-args">()</span>
|
170
|
+
</a>
|
171
|
+
</div>
|
172
|
+
|
173
|
+
<div class="method-description">
|
174
|
+
<p><a class="source-toggle" href="#"
|
175
|
+
onclick="toggleCode('M000024-source');return false;">[Source]</a></p>
|
176
|
+
<div class="method-source-code" id="M000024-source">
|
177
|
+
<pre>
|
178
|
+
<span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 767</span>
|
179
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">ToplevelInstaller</span>.<span class="ruby-identifier">invoke</span>
|
180
|
+
<span class="ruby-identifier">config</span> = <span class="ruby-constant">ConfigTable</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">load_rbconfig</span>())
|
181
|
+
<span class="ruby-identifier">config</span>.<span class="ruby-identifier">load_standard_entries</span>
|
182
|
+
<span class="ruby-identifier">config</span>.<span class="ruby-identifier">load_multipackage_entries</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">multipackage?</span>
|
183
|
+
<span class="ruby-identifier">config</span>.<span class="ruby-identifier">fixup</span>
|
184
|
+
<span class="ruby-identifier">klass</span> = (<span class="ruby-identifier">multipackage?</span>() <span class="ruby-operator">?</span> <span class="ruby-constant">ToplevelInstallerMulti</span> <span class="ruby-operator">:</span> <span class="ruby-constant">ToplevelInstaller</span>)
|
185
|
+
<span class="ruby-identifier">klass</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-identifier">$0</span>), <span class="ruby-identifier">config</span>).<span class="ruby-identifier">invoke</span>
|
186
|
+
<span class="ruby-keyword kw">end</span>
|
187
|
+
</pre>
|
188
|
+
</div>
|
189
|
+
</div>
|
190
|
+
</div>
|
191
|
+
|
192
|
+
<div id="method-M000026" class="method-detail">
|
193
|
+
<a name="M000026"></a>
|
194
|
+
|
195
|
+
<div class="method-heading">
|
196
|
+
<a href="#M000026" class="method-signature">
|
197
|
+
<span class="method-name">load_rbconfig</span><span class="method-args">()</span>
|
198
|
+
</a>
|
199
|
+
</div>
|
200
|
+
|
201
|
+
<div class="method-description">
|
202
|
+
<p><a class="source-toggle" href="#"
|
203
|
+
onclick="toggleCode('M000026-source');return false;">[Source]</a></p>
|
204
|
+
<div class="method-source-code" id="M000026-source">
|
205
|
+
<pre>
|
206
|
+
<span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 780</span>
|
207
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">ToplevelInstaller</span>.<span class="ruby-identifier">load_rbconfig</span>
|
208
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">arg</span> = <span class="ruby-constant">ARGV</span>.<span class="ruby-identifier">detect</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">arg</span><span class="ruby-operator">|</span> <span class="ruby-regexp re">/\A--rbconfig=/</span> <span class="ruby-operator">=~</span> <span class="ruby-identifier">arg</span> }
|
209
|
+
<span class="ruby-constant">ARGV</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">arg</span>)
|
210
|
+
<span class="ruby-identifier">load</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-identifier">arg</span>.<span class="ruby-identifier">split</span>(<span class="ruby-regexp re">/=/</span>, <span class="ruby-value">2</span>)[<span class="ruby-value">1</span>])
|
211
|
+
<span class="ruby-identifier">$"</span>.<span class="ruby-identifier">push</span> <span class="ruby-value str">'rbconfig.rb'</span>
|
212
|
+
<span class="ruby-keyword kw">else</span>
|
213
|
+
<span class="ruby-identifier">require</span> <span class="ruby-value str">'rbconfig'</span>
|
214
|
+
<span class="ruby-keyword kw">end</span>
|
215
|
+
<span class="ruby-operator">::</span><span class="ruby-constant">Config</span><span class="ruby-operator">::</span><span class="ruby-constant">CONFIG</span>
|
216
|
+
<span class="ruby-keyword kw">end</span>
|
217
|
+
</pre>
|
218
|
+
</div>
|
219
|
+
</div>
|
220
|
+
</div>
|
221
|
+
|
222
|
+
<div id="method-M000025" class="method-detail">
|
223
|
+
<a name="M000025"></a>
|
224
|
+
|
225
|
+
<div class="method-heading">
|
226
|
+
<a href="#M000025" class="method-signature">
|
227
|
+
<span class="method-name">multipackage?</span><span class="method-args">()</span>
|
228
|
+
</a>
|
229
|
+
</div>
|
230
|
+
|
231
|
+
<div class="method-description">
|
232
|
+
<p><a class="source-toggle" href="#"
|
233
|
+
onclick="toggleCode('M000025-source');return false;">[Source]</a></p>
|
234
|
+
<div class="method-source-code" id="M000025-source">
|
235
|
+
<pre>
|
236
|
+
<span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 776</span>
|
237
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">ToplevelInstaller</span>.<span class="ruby-identifier">multipackage?</span>
|
238
|
+
<span class="ruby-constant">File</span>.<span class="ruby-identifier">dir?</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-identifier">$0</span>) <span class="ruby-operator">+</span> <span class="ruby-value str">'/packages'</span>)
|
239
|
+
<span class="ruby-keyword kw">end</span>
|
240
|
+
</pre>
|
241
|
+
</div>
|
242
|
+
</div>
|
243
|
+
</div>
|
244
|
+
|
245
|
+
<div id="method-M000027" class="method-detail">
|
246
|
+
<a name="M000027"></a>
|
247
|
+
|
248
|
+
<div class="method-heading">
|
249
|
+
<a href="#M000027" class="method-signature">
|
250
|
+
<span class="method-name">new</span><span class="method-args">(ardir_root, config)</span>
|
251
|
+
</a>
|
252
|
+
</div>
|
253
|
+
|
254
|
+
<div class="method-description">
|
255
|
+
<p><a class="source-toggle" href="#"
|
256
|
+
onclick="toggleCode('M000027-source');return false;">[Source]</a></p>
|
257
|
+
<div class="method-source-code" id="M000027-source">
|
258
|
+
<pre>
|
259
|
+
<span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 791</span>
|
260
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">ardir_root</span>, <span class="ruby-identifier">config</span>)
|
261
|
+
<span class="ruby-ivar">@ardir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-identifier">ardir_root</span>)
|
262
|
+
<span class="ruby-ivar">@config</span> = <span class="ruby-identifier">config</span>
|
263
|
+
<span class="ruby-comment cmt"># cache</span>
|
264
|
+
<span class="ruby-ivar">@valid_task_re</span> = <span class="ruby-keyword kw">nil</span>
|
265
|
+
<span class="ruby-keyword kw">end</span>
|
266
|
+
</pre>
|
267
|
+
</div>
|
268
|
+
</div>
|
269
|
+
</div>
|
270
|
+
|
271
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
272
|
+
|
273
|
+
<div id="method-M000028" class="method-detail">
|
274
|
+
<a name="M000028"></a>
|
275
|
+
|
276
|
+
<div class="method-heading">
|
277
|
+
<a href="#M000028" class="method-signature">
|
278
|
+
<span class="method-name">config</span><span class="method-args">(key)</span>
|
279
|
+
</a>
|
280
|
+
</div>
|
281
|
+
|
282
|
+
<div class="method-description">
|
283
|
+
<p><a class="source-toggle" href="#"
|
284
|
+
onclick="toggleCode('M000028-source');return false;">[Source]</a></p>
|
285
|
+
<div class="method-source-code" id="M000028-source">
|
286
|
+
<pre>
|
287
|
+
<span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 798</span>
|
288
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">config</span>(<span class="ruby-identifier">key</span>)
|
289
|
+
<span class="ruby-ivar">@config</span>[<span class="ruby-identifier">key</span>]
|
290
|
+
<span class="ruby-keyword kw">end</span>
|
291
|
+
</pre>
|
292
|
+
</div>
|
293
|
+
</div>
|
294
|
+
</div>
|
295
|
+
|
296
|
+
<div id="method-M000053" class="method-detail">
|
297
|
+
<a name="M000053"></a>
|
298
|
+
|
299
|
+
<div class="method-heading">
|
300
|
+
<a href="#M000053" class="method-signature">
|
301
|
+
<span class="method-name">exec_clean</span><span class="method-args">()</span>
|
302
|
+
</a>
|
303
|
+
</div>
|
304
|
+
|
305
|
+
<div class="method-description">
|
306
|
+
<p><a class="source-toggle" href="#"
|
307
|
+
onclick="toggleCode('M000053-source');return false;">[Source]</a></p>
|
308
|
+
<div class="method-source-code" id="M000053-source">
|
309
|
+
<pre>
|
310
|
+
<span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1013</span>
|
311
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">exec_clean</span>
|
312
|
+
<span class="ruby-ivar">@installer</span>.<span class="ruby-identifier">exec_clean</span>
|
313
|
+
<span class="ruby-keyword kw">end</span>
|
314
|
+
</pre>
|
315
|
+
</div>
|
316
|
+
</div>
|
317
|
+
</div>
|
318
|
+
|
319
|
+
<div id="method-M000048" class="method-detail">
|
320
|
+
<a name="M000048"></a>
|
321
|
+
|
322
|
+
<div class="method-heading">
|
323
|
+
<a href="#M000048" class="method-signature">
|
324
|
+
<span class="method-name">exec_config</span><span class="method-args">()</span>
|
325
|
+
</a>
|
326
|
+
</div>
|
327
|
+
|
328
|
+
<div class="method-description">
|
329
|
+
<p>
|
330
|
+
Task Handlers
|
331
|
+
</p>
|
332
|
+
<p><a class="source-toggle" href="#"
|
333
|
+
onclick="toggleCode('M000048-source');return false;">[Source]</a></p>
|
334
|
+
<div class="method-source-code" id="M000048-source">
|
335
|
+
<pre>
|
336
|
+
<span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 990</span>
|
337
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">exec_config</span>
|
338
|
+
<span class="ruby-ivar">@installer</span>.<span class="ruby-identifier">exec_config</span>
|
339
|
+
<span class="ruby-ivar">@config</span>.<span class="ruby-identifier">save</span> <span class="ruby-comment cmt"># must be final</span>
|
340
|
+
<span class="ruby-keyword kw">end</span>
|
341
|
+
</pre>
|
342
|
+
</div>
|
343
|
+
</div>
|
344
|
+
</div>
|
345
|
+
|
346
|
+
<div id="method-M000054" class="method-detail">
|
347
|
+
<a name="M000054"></a>
|
348
|
+
|
349
|
+
<div class="method-heading">
|
350
|
+
<a href="#M000054" class="method-signature">
|
351
|
+
<span class="method-name">exec_distclean</span><span class="method-args">()</span>
|
352
|
+
</a>
|
353
|
+
</div>
|
354
|
+
|
355
|
+
<div class="method-description">
|
356
|
+
<p><a class="source-toggle" href="#"
|
357
|
+
onclick="toggleCode('M000054-source');return false;">[Source]</a></p>
|
358
|
+
<div class="method-source-code" id="M000054-source">
|
359
|
+
<pre>
|
360
|
+
<span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1017</span>
|
361
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">exec_distclean</span>
|
362
|
+
<span class="ruby-ivar">@installer</span>.<span class="ruby-identifier">exec_distclean</span>
|
363
|
+
<span class="ruby-keyword kw">end</span>
|
364
|
+
</pre>
|
365
|
+
</div>
|
366
|
+
</div>
|
367
|
+
</div>
|
368
|
+
|
369
|
+
<div id="method-M000050" class="method-detail">
|
370
|
+
<a name="M000050"></a>
|
371
|
+
|
372
|
+
<div class="method-heading">
|
373
|
+
<a href="#M000050" class="method-signature">
|
374
|
+
<span class="method-name">exec_install</span><span class="method-args">()</span>
|
375
|
+
</a>
|
376
|
+
</div>
|
377
|
+
|
378
|
+
<div class="method-description">
|
379
|
+
<p><a class="source-toggle" href="#"
|
380
|
+
onclick="toggleCode('M000050-source');return false;">[Source]</a></p>
|
381
|
+
<div class="method-source-code" id="M000050-source">
|
382
|
+
<pre>
|
383
|
+
<span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 999</span>
|
384
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">exec_install</span>
|
385
|
+
<span class="ruby-ivar">@installer</span>.<span class="ruby-identifier">exec_install</span>
|
386
|
+
<span class="ruby-keyword kw">end</span>
|
387
|
+
</pre>
|
388
|
+
</div>
|
389
|
+
</div>
|
390
|
+
</div>
|
391
|
+
|
392
|
+
<div id="method-M000049" class="method-detail">
|
393
|
+
<a name="M000049"></a>
|
394
|
+
|
395
|
+
<div class="method-heading">
|
396
|
+
<a href="#M000049" class="method-signature">
|
397
|
+
<span class="method-name">exec_setup</span><span class="method-args">()</span>
|
398
|
+
</a>
|
399
|
+
</div>
|
400
|
+
|
401
|
+
<div class="method-description">
|
402
|
+
<p><a class="source-toggle" href="#"
|
403
|
+
onclick="toggleCode('M000049-source');return false;">[Source]</a></p>
|
404
|
+
<div class="method-source-code" id="M000049-source">
|
405
|
+
<pre>
|
406
|
+
<span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 995</span>
|
407
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">exec_setup</span>
|
408
|
+
<span class="ruby-ivar">@installer</span>.<span class="ruby-identifier">exec_setup</span>
|
409
|
+
<span class="ruby-keyword kw">end</span>
|
410
|
+
</pre>
|
411
|
+
</div>
|
412
|
+
</div>
|
413
|
+
</div>
|
414
|
+
|
415
|
+
<div id="method-M000052" class="method-detail">
|
416
|
+
<a name="M000052"></a>
|
417
|
+
|
418
|
+
<div class="method-heading">
|
419
|
+
<a href="#M000052" class="method-signature">
|
420
|
+
<span class="method-name">exec_show</span><span class="method-args">()</span>
|
421
|
+
</a>
|
422
|
+
</div>
|
423
|
+
|
424
|
+
<div class="method-description">
|
425
|
+
<p><a class="source-toggle" href="#"
|
426
|
+
onclick="toggleCode('M000052-source');return false;">[Source]</a></p>
|
427
|
+
<div class="method-source-code" id="M000052-source">
|
428
|
+
<pre>
|
429
|
+
<span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1007</span>
|
430
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">exec_show</span>
|
431
|
+
<span class="ruby-ivar">@config</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
|
432
|
+
<span class="ruby-identifier">printf</span> <span class="ruby-value str">"%-20s %s\n"</span>, <span class="ruby-identifier">i</span>.<span class="ruby-identifier">name</span>, <span class="ruby-identifier">i</span>.<span class="ruby-identifier">value</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">i</span>.<span class="ruby-identifier">value?</span>
|
433
|
+
<span class="ruby-keyword kw">end</span>
|
434
|
+
<span class="ruby-keyword kw">end</span>
|
435
|
+
</pre>
|
436
|
+
</div>
|
437
|
+
</div>
|
438
|
+
</div>
|
439
|
+
|
440
|
+
<div id="method-M000051" class="method-detail">
|
441
|
+
<a name="M000051"></a>
|
442
|
+
|
443
|
+
<div class="method-heading">
|
444
|
+
<a href="#M000051" class="method-signature">
|
445
|
+
<span class="method-name">exec_test</span><span class="method-args">()</span>
|
446
|
+
</a>
|
447
|
+
</div>
|
448
|
+
|
449
|
+
<div class="method-description">
|
450
|
+
<p><a class="source-toggle" href="#"
|
451
|
+
onclick="toggleCode('M000051-source');return false;">[Source]</a></p>
|
452
|
+
<div class="method-source-code" id="M000051-source">
|
453
|
+
<pre>
|
454
|
+
<span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1003</span>
|
455
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">exec_test</span>
|
456
|
+
<span class="ruby-ivar">@installer</span>.<span class="ruby-identifier">exec_test</span>
|
457
|
+
<span class="ruby-keyword kw">end</span>
|
458
|
+
</pre>
|
459
|
+
</div>
|
460
|
+
</div>
|
461
|
+
</div>
|
462
|
+
|
463
|
+
<div id="method-M000032" class="method-detail">
|
464
|
+
<a name="M000032"></a>
|
465
|
+
|
466
|
+
<div class="method-heading">
|
467
|
+
<a href="#M000032" class="method-signature">
|
468
|
+
<span class="method-name">init_installers</span><span class="method-args">()</span>
|
469
|
+
</a>
|
470
|
+
</div>
|
471
|
+
|
472
|
+
<div class="method-description">
|
473
|
+
<p><a class="source-toggle" href="#"
|
474
|
+
onclick="toggleCode('M000032-source');return false;">[Source]</a></p>
|
475
|
+
<div class="method-source-code" id="M000032-source">
|
476
|
+
<pre>
|
477
|
+
<span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 834</span>
|
478
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init_installers</span>
|
479
|
+
<span class="ruby-ivar">@installer</span> = <span class="ruby-constant">Installer</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@config</span>, <span class="ruby-ivar">@ardir</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-value str">'.'</span>))
|
480
|
+
<span class="ruby-keyword kw">end</span>
|
481
|
+
</pre>
|
482
|
+
</div>
|
483
|
+
</div>
|
484
|
+
</div>
|
485
|
+
|
486
|
+
<div id="method-M000029" class="method-detail">
|
487
|
+
<a name="M000029"></a>
|
488
|
+
|
489
|
+
<div class="method-heading">
|
490
|
+
<a href="#M000029" class="method-signature">
|
491
|
+
<span class="method-name">inspect</span><span class="method-args">()</span>
|
492
|
+
</a>
|
493
|
+
</div>
|
494
|
+
|
495
|
+
<div class="method-description">
|
496
|
+
<p><a class="source-toggle" href="#"
|
497
|
+
onclick="toggleCode('M000029-source');return false;">[Source]</a></p>
|
498
|
+
<div class="method-source-code" id="M000029-source">
|
499
|
+
<pre>
|
500
|
+
<span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 802</span>
|
501
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inspect</span>
|
502
|
+
<span class="ruby-node">"#<#{self.class} #{__id__()}>"</span>
|
503
|
+
<span class="ruby-keyword kw">end</span>
|
504
|
+
</pre>
|
505
|
+
</div>
|
506
|
+
</div>
|
507
|
+
</div>
|
508
|
+
|
509
|
+
<div id="method-M000030" class="method-detail">
|
510
|
+
<a name="M000030"></a>
|
511
|
+
|
512
|
+
<div class="method-heading">
|
513
|
+
<a href="#M000030" class="method-signature">
|
514
|
+
<span class="method-name">invoke</span><span class="method-args">()</span>
|
515
|
+
</a>
|
516
|
+
</div>
|
517
|
+
|
518
|
+
<div class="method-description">
|
519
|
+
<p><a class="source-toggle" href="#"
|
520
|
+
onclick="toggleCode('M000030-source');return false;">[Source]</a></p>
|
521
|
+
<div class="method-source-code" id="M000030-source">
|
522
|
+
<pre>
|
523
|
+
<span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 806</span>
|
524
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">invoke</span>
|
525
|
+
<span class="ruby-identifier">run_metaconfigs</span>
|
526
|
+
<span class="ruby-keyword kw">case</span> <span class="ruby-identifier">task</span> = <span class="ruby-identifier">parsearg_global</span>()
|
527
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-keyword kw">nil</span>, <span class="ruby-value str">'all'</span>
|
528
|
+
<span class="ruby-identifier">parsearg_config</span>
|
529
|
+
<span class="ruby-identifier">init_installers</span>
|
530
|
+
<span class="ruby-identifier">exec_config</span>
|
531
|
+
<span class="ruby-identifier">exec_setup</span>
|
532
|
+
<span class="ruby-identifier">exec_install</span>
|
533
|
+
<span class="ruby-keyword kw">else</span>
|
534
|
+
<span class="ruby-keyword kw">case</span> <span class="ruby-identifier">task</span>
|
535
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-value str">'config'</span>, <span class="ruby-value str">'test'</span>
|
536
|
+
;
|
537
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-value str">'clean'</span>, <span class="ruby-value str">'distclean'</span>
|
538
|
+
<span class="ruby-ivar">@config</span>.<span class="ruby-identifier">load_savefile</span> <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-ivar">@config</span>.<span class="ruby-identifier">savefile</span>)
|
539
|
+
<span class="ruby-keyword kw">else</span>
|
540
|
+
<span class="ruby-ivar">@config</span>.<span class="ruby-identifier">load_savefile</span>
|
541
|
+
<span class="ruby-keyword kw">end</span>
|
542
|
+
<span class="ruby-identifier">__send__</span> <span class="ruby-node">"parsearg_#{task}"</span>
|
543
|
+
<span class="ruby-identifier">init_installers</span>
|
544
|
+
<span class="ruby-identifier">__send__</span> <span class="ruby-node">"exec_#{task}"</span>
|
545
|
+
<span class="ruby-keyword kw">end</span>
|
546
|
+
<span class="ruby-keyword kw">end</span>
|
547
|
+
</pre>
|
548
|
+
</div>
|
549
|
+
</div>
|
550
|
+
</div>
|
551
|
+
|
552
|
+
<div id="method-M000034" class="method-detail">
|
553
|
+
<a name="M000034"></a>
|
554
|
+
|
555
|
+
<div class="method-heading">
|
556
|
+
<a href="#M000034" class="method-signature">
|
557
|
+
<span class="method-name">objdir_root</span><span class="method-args">()</span>
|
558
|
+
</a>
|
559
|
+
</div>
|
560
|
+
|
561
|
+
<div class="method-description">
|
562
|
+
<p><a class="source-toggle" href="#"
|
563
|
+
onclick="toggleCode('M000034-source');return false;">[Source]</a></p>
|
564
|
+
<div class="method-source-code" id="M000034-source">
|
565
|
+
<pre>
|
566
|
+
<span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 846</span>
|
567
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">objdir_root</span>
|
568
|
+
<span class="ruby-value str">'.'</span>
|
569
|
+
<span class="ruby-keyword kw">end</span>
|
570
|
+
</pre>
|
571
|
+
</div>
|
572
|
+
</div>
|
573
|
+
</div>
|
574
|
+
|
575
|
+
<div id="method-M000043" class="method-detail">
|
576
|
+
<a name="M000043"></a>
|
577
|
+
|
578
|
+
<div class="method-heading">
|
579
|
+
<span class="method-name">parsearg_clean</span><span class="method-args">()</span>
|
580
|
+
</div>
|
581
|
+
|
582
|
+
<div class="method-description">
|
583
|
+
<p>
|
584
|
+
Alias for <a href="ToplevelInstaller.html#M000039">parsearg_no_options</a>
|
585
|
+
</p>
|
586
|
+
</div>
|
587
|
+
</div>
|
588
|
+
|
589
|
+
<div id="method-M000045" class="method-detail">
|
590
|
+
<a name="M000045"></a>
|
591
|
+
|
592
|
+
<div class="method-heading">
|
593
|
+
<a href="#M000045" class="method-signature">
|
594
|
+
<span class="method-name">parsearg_config</span><span class="method-args">()</span>
|
595
|
+
</a>
|
596
|
+
</div>
|
597
|
+
|
598
|
+
<div class="method-description">
|
599
|
+
<p><a class="source-toggle" href="#"
|
600
|
+
onclick="toggleCode('M000045-source');return false;">[Source]</a></p>
|
601
|
+
<div class="method-source-code" id="M000045-source">
|
602
|
+
<pre>
|
603
|
+
<span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 905</span>
|
604
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parsearg_config</span>
|
605
|
+
<span class="ruby-identifier">evalopt</span> = []
|
606
|
+
<span class="ruby-identifier">set</span> = []
|
607
|
+
<span class="ruby-ivar">@config</span>.<span class="ruby-identifier">config_opt</span> = []
|
608
|
+
<span class="ruby-keyword kw">while</span> <span class="ruby-identifier">i</span> = <span class="ruby-constant">ARGV</span>.<span class="ruby-identifier">shift</span>
|
609
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-regexp re">/\A--?\z/</span> <span class="ruby-operator">=~</span> <span class="ruby-identifier">i</span>
|
610
|
+
<span class="ruby-ivar">@config</span>.<span class="ruby-identifier">config_opt</span> = <span class="ruby-constant">ARGV</span>.<span class="ruby-identifier">dup</span>
|
611
|
+
<span class="ruby-keyword kw">break</span>
|
612
|
+
<span class="ruby-keyword kw">end</span>
|
613
|
+
<span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span> = <span class="ruby-operator">*</span><span class="ruby-ivar">@config</span>.<span class="ruby-identifier">parse_opt</span>(<span class="ruby-identifier">i</span>)
|
614
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@config</span>.<span class="ruby-identifier">value_config?</span>(<span class="ruby-identifier">name</span>)
|
615
|
+
<span class="ruby-ivar">@config</span>[<span class="ruby-identifier">name</span>] = <span class="ruby-identifier">value</span>
|
616
|
+
<span class="ruby-keyword kw">else</span>
|
617
|
+
<span class="ruby-identifier">evalopt</span>.<span class="ruby-identifier">push</span> [<span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span>]
|
618
|
+
<span class="ruby-keyword kw">end</span>
|
619
|
+
<span class="ruby-identifier">set</span>.<span class="ruby-identifier">push</span> <span class="ruby-identifier">name</span>
|
620
|
+
<span class="ruby-keyword kw">end</span>
|
621
|
+
<span class="ruby-identifier">evalopt</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
|
622
|
+
<span class="ruby-ivar">@config</span>.<span class="ruby-identifier">lookup</span>(<span class="ruby-identifier">name</span>).<span class="ruby-identifier">evaluate</span> <span class="ruby-identifier">value</span>, <span class="ruby-ivar">@config</span>
|
623
|
+
<span class="ruby-keyword kw">end</span>
|
624
|
+
<span class="ruby-comment cmt"># Check if configuration is valid</span>
|
625
|
+
<span class="ruby-identifier">set</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">n</span><span class="ruby-operator">|</span>
|
626
|
+
<span class="ruby-ivar">@config</span>[<span class="ruby-identifier">n</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@config</span>.<span class="ruby-identifier">value_config?</span>(<span class="ruby-identifier">n</span>)
|
627
|
+
<span class="ruby-keyword kw">end</span>
|
628
|
+
<span class="ruby-keyword kw">end</span>
|
629
|
+
</pre>
|
630
|
+
</div>
|
631
|
+
</div>
|
632
|
+
</div>
|
633
|
+
|
634
|
+
<div id="method-M000044" class="method-detail">
|
635
|
+
<a name="M000044"></a>
|
636
|
+
|
637
|
+
<div class="method-heading">
|
638
|
+
<span class="method-name">parsearg_distclean</span><span class="method-args">()</span>
|
639
|
+
</div>
|
640
|
+
|
641
|
+
<div class="method-description">
|
642
|
+
<p>
|
643
|
+
Alias for <a href="ToplevelInstaller.html#M000039">parsearg_no_options</a>
|
644
|
+
</p>
|
645
|
+
</div>
|
646
|
+
</div>
|
647
|
+
|
648
|
+
<div id="method-M000036" class="method-detail">
|
649
|
+
<a name="M000036"></a>
|
650
|
+
|
651
|
+
<div class="method-heading">
|
652
|
+
<a href="#M000036" class="method-signature">
|
653
|
+
<span class="method-name">parsearg_global</span><span class="method-args">()</span>
|
654
|
+
</a>
|
655
|
+
</div>
|
656
|
+
|
657
|
+
<div class="method-description">
|
658
|
+
<p>
|
659
|
+
Option Parsing
|
660
|
+
</p>
|
661
|
+
<p><a class="source-toggle" href="#"
|
662
|
+
onclick="toggleCode('M000036-source');return false;">[Source]</a></p>
|
663
|
+
<div class="method-source-code" id="M000036-source">
|
664
|
+
<pre>
|
665
|
+
<span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 858</span>
|
666
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parsearg_global</span>
|
667
|
+
<span class="ruby-keyword kw">while</span> <span class="ruby-identifier">arg</span> = <span class="ruby-constant">ARGV</span>.<span class="ruby-identifier">shift</span>
|
668
|
+
<span class="ruby-keyword kw">case</span> <span class="ruby-identifier">arg</span>
|
669
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-regexp re">/\A\w+\z/</span>
|
670
|
+
<span class="ruby-identifier">setup_rb_error</span> <span class="ruby-node">"invalid task: #{arg}"</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">valid_task?</span>(<span class="ruby-identifier">arg</span>)
|
671
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">arg</span>
|
672
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-value str">'-q'</span>, <span class="ruby-value str">'--quiet'</span>
|
673
|
+
<span class="ruby-ivar">@config</span>.<span class="ruby-identifier">verbose</span> = <span class="ruby-keyword kw">false</span>
|
674
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-value str">'--verbose'</span>
|
675
|
+
<span class="ruby-ivar">@config</span>.<span class="ruby-identifier">verbose</span> = <span class="ruby-keyword kw">true</span>
|
676
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-value str">'--help'</span>
|
677
|
+
<span class="ruby-identifier">print_usage</span> <span class="ruby-identifier">$stdout</span>
|
678
|
+
<span class="ruby-identifier">exit</span> <span class="ruby-value">0</span>
|
679
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-value str">'--version'</span>
|
680
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-node">"#{File.basename($0)} version #{Version}"</span>
|
681
|
+
<span class="ruby-identifier">exit</span> <span class="ruby-value">0</span>
|
682
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-value str">'--copyright'</span>
|
683
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-constant">Copyright</span>
|
684
|
+
<span class="ruby-identifier">exit</span> <span class="ruby-value">0</span>
|
685
|
+
<span class="ruby-keyword kw">else</span>
|
686
|
+
<span class="ruby-identifier">setup_rb_error</span> <span class="ruby-node">"unknown global option '#{arg}'"</span>
|
687
|
+
<span class="ruby-keyword kw">end</span>
|
688
|
+
<span class="ruby-keyword kw">end</span>
|
689
|
+
<span class="ruby-keyword kw">nil</span>
|
690
|
+
<span class="ruby-keyword kw">end</span>
|
691
|
+
</pre>
|
692
|
+
</div>
|
693
|
+
</div>
|
694
|
+
</div>
|
695
|
+
|
696
|
+
<div id="method-M000046" class="method-detail">
|
697
|
+
<a name="M000046"></a>
|
698
|
+
|
699
|
+
<div class="method-heading">
|
700
|
+
<a href="#M000046" class="method-signature">
|
701
|
+
<span class="method-name">parsearg_install</span><span class="method-args">()</span>
|
702
|
+
</a>
|
703
|
+
</div>
|
704
|
+
|
705
|
+
<div class="method-description">
|
706
|
+
<p><a class="source-toggle" href="#"
|
707
|
+
onclick="toggleCode('M000046-source');return false;">[Source]</a></p>
|
708
|
+
<div class="method-source-code" id="M000046-source">
|
709
|
+
<pre>
|
710
|
+
<span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 931</span>
|
711
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parsearg_install</span>
|
712
|
+
<span class="ruby-ivar">@config</span>.<span class="ruby-identifier">no_harm</span> = <span class="ruby-keyword kw">false</span>
|
713
|
+
<span class="ruby-ivar">@config</span>.<span class="ruby-identifier">install_prefix</span> = <span class="ruby-value str">''</span>
|
714
|
+
<span class="ruby-keyword kw">while</span> <span class="ruby-identifier">a</span> = <span class="ruby-constant">ARGV</span>.<span class="ruby-identifier">shift</span>
|
715
|
+
<span class="ruby-keyword kw">case</span> <span class="ruby-identifier">a</span>
|
716
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-value str">'--no-harm'</span>
|
717
|
+
<span class="ruby-ivar">@config</span>.<span class="ruby-identifier">no_harm</span> = <span class="ruby-keyword kw">true</span>
|
718
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-regexp re">/\A--prefix=/</span>
|
719
|
+
<span class="ruby-identifier">path</span> = <span class="ruby-identifier">a</span>.<span class="ruby-identifier">split</span>(<span class="ruby-regexp re">/=/</span>, <span class="ruby-value">2</span>)[<span class="ruby-value">1</span>]
|
720
|
+
<span class="ruby-identifier">path</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-identifier">path</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">path</span>[<span class="ruby-value">0</span>,<span class="ruby-value">1</span>] <span class="ruby-operator">==</span> <span class="ruby-value str">'/'</span>
|
721
|
+
<span class="ruby-ivar">@config</span>.<span class="ruby-identifier">install_prefix</span> = <span class="ruby-identifier">path</span>
|
722
|
+
<span class="ruby-keyword kw">else</span>
|
723
|
+
<span class="ruby-identifier">setup_rb_error</span> <span class="ruby-node">"install: unknown option #{a}"</span>
|
724
|
+
<span class="ruby-keyword kw">end</span>
|
725
|
+
<span class="ruby-keyword kw">end</span>
|
726
|
+
<span class="ruby-keyword kw">end</span>
|
727
|
+
</pre>
|
728
|
+
</div>
|
729
|
+
</div>
|
730
|
+
</div>
|
731
|
+
|
732
|
+
<div id="method-M000039" class="method-detail">
|
733
|
+
<a name="M000039"></a>
|
734
|
+
|
735
|
+
<div class="method-heading">
|
736
|
+
<a href="#M000039" class="method-signature">
|
737
|
+
<span class="method-name">parsearg_no_options</span><span class="method-args">()</span>
|
738
|
+
</a>
|
739
|
+
</div>
|
740
|
+
|
741
|
+
<div class="method-description">
|
742
|
+
<p><a class="source-toggle" href="#"
|
743
|
+
onclick="toggleCode('M000039-source');return false;">[Source]</a></p>
|
744
|
+
<div class="method-source-code" id="M000039-source">
|
745
|
+
<pre>
|
746
|
+
<span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 892</span>
|
747
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parsearg_no_options</span>
|
748
|
+
<span class="ruby-keyword kw">unless</span> <span class="ruby-constant">ARGV</span>.<span class="ruby-identifier">empty?</span>
|
749
|
+
<span class="ruby-identifier">task</span> = <span class="ruby-identifier">caller</span>(<span class="ruby-value">0</span>).<span class="ruby-identifier">first</span>.<span class="ruby-identifier">slice</span>(<span class="ruby-regexp re">%r<`parsearg_(\w+)'></span>, <span class="ruby-value">1</span>)
|
750
|
+
<span class="ruby-identifier">setup_rb_error</span> <span class="ruby-node">"#{task}: unknown options: #{ARGV.join(' ')}"</span>
|
751
|
+
<span class="ruby-keyword kw">end</span>
|
752
|
+
<span class="ruby-keyword kw">end</span>
|
753
|
+
</pre>
|
754
|
+
</div>
|
755
|
+
</div>
|
756
|
+
</div>
|
757
|
+
|
758
|
+
<div id="method-M000041" class="method-detail">
|
759
|
+
<a name="M000041"></a>
|
760
|
+
|
761
|
+
<div class="method-heading">
|
762
|
+
<span class="method-name">parsearg_setup</span><span class="method-args">()</span>
|
763
|
+
</div>
|
764
|
+
|
765
|
+
<div class="method-description">
|
766
|
+
<p>
|
767
|
+
Alias for <a href="ToplevelInstaller.html#M000039">parsearg_no_options</a>
|
768
|
+
</p>
|
769
|
+
</div>
|
770
|
+
</div>
|
771
|
+
|
772
|
+
<div id="method-M000040" class="method-detail">
|
773
|
+
<a name="M000040"></a>
|
774
|
+
|
775
|
+
<div class="method-heading">
|
776
|
+
<span class="method-name">parsearg_show</span><span class="method-args">()</span>
|
777
|
+
</div>
|
778
|
+
|
779
|
+
<div class="method-description">
|
780
|
+
<p>
|
781
|
+
Alias for <a href="ToplevelInstaller.html#M000039">parsearg_no_options</a>
|
782
|
+
</p>
|
783
|
+
</div>
|
784
|
+
</div>
|
785
|
+
|
786
|
+
<div id="method-M000042" class="method-detail">
|
787
|
+
<a name="M000042"></a>
|
788
|
+
|
789
|
+
<div class="method-heading">
|
790
|
+
<span class="method-name">parsearg_test</span><span class="method-args">()</span>
|
791
|
+
</div>
|
792
|
+
|
793
|
+
<div class="method-description">
|
794
|
+
<p>
|
795
|
+
Alias for <a href="ToplevelInstaller.html#M000039">parsearg_no_options</a>
|
796
|
+
</p>
|
797
|
+
</div>
|
798
|
+
</div>
|
799
|
+
|
800
|
+
<div id="method-M000047" class="method-detail">
|
801
|
+
<a name="M000047"></a>
|
802
|
+
|
803
|
+
<div class="method-heading">
|
804
|
+
<a href="#M000047" class="method-signature">
|
805
|
+
<span class="method-name">print_usage</span><span class="method-args">(out)</span>
|
806
|
+
</a>
|
807
|
+
</div>
|
808
|
+
|
809
|
+
<div class="method-description">
|
810
|
+
<p><a class="source-toggle" href="#"
|
811
|
+
onclick="toggleCode('M000047-source');return false;">[Source]</a></p>
|
812
|
+
<div class="method-source-code" id="M000047-source">
|
813
|
+
<pre>
|
814
|
+
<span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 948</span>
|
815
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">print_usage</span>(<span class="ruby-identifier">out</span>)
|
816
|
+
<span class="ruby-identifier">out</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">'Typical Installation Procedure:'</span>
|
817
|
+
<span class="ruby-identifier">out</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">" $ ruby #{File.basename $0} config"</span>
|
818
|
+
<span class="ruby-identifier">out</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">" $ ruby #{File.basename $0} setup"</span>
|
819
|
+
<span class="ruby-identifier">out</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">" # ruby #{File.basename $0} install (may require root privilege)"</span>
|
820
|
+
<span class="ruby-identifier">out</span>.<span class="ruby-identifier">puts</span>
|
821
|
+
<span class="ruby-identifier">out</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">'Detailed Usage:'</span>
|
822
|
+
<span class="ruby-identifier">out</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">" ruby #{File.basename $0} <global option>"</span>
|
823
|
+
<span class="ruby-identifier">out</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">" ruby #{File.basename $0} [<global options>] <task> [<task options>]"</span>
|
824
|
+
|
825
|
+
<span class="ruby-identifier">fmt</span> = <span class="ruby-value str">" %-24s %s\n"</span>
|
826
|
+
<span class="ruby-identifier">out</span>.<span class="ruby-identifier">puts</span>
|
827
|
+
<span class="ruby-identifier">out</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">'Global options:'</span>
|
828
|
+
<span class="ruby-identifier">out</span>.<span class="ruby-identifier">printf</span> <span class="ruby-identifier">fmt</span>, <span class="ruby-value str">'-q,--quiet'</span>, <span class="ruby-value str">'suppress message outputs'</span>
|
829
|
+
<span class="ruby-identifier">out</span>.<span class="ruby-identifier">printf</span> <span class="ruby-identifier">fmt</span>, <span class="ruby-value str">' --verbose'</span>, <span class="ruby-value str">'output messages verbosely'</span>
|
830
|
+
<span class="ruby-identifier">out</span>.<span class="ruby-identifier">printf</span> <span class="ruby-identifier">fmt</span>, <span class="ruby-value str">' --help'</span>, <span class="ruby-value str">'print this message'</span>
|
831
|
+
<span class="ruby-identifier">out</span>.<span class="ruby-identifier">printf</span> <span class="ruby-identifier">fmt</span>, <span class="ruby-value str">' --version'</span>, <span class="ruby-value str">'print version and quit'</span>
|
832
|
+
<span class="ruby-identifier">out</span>.<span class="ruby-identifier">printf</span> <span class="ruby-identifier">fmt</span>, <span class="ruby-value str">' --copyright'</span>, <span class="ruby-value str">'print copyright and quit'</span>
|
833
|
+
<span class="ruby-identifier">out</span>.<span class="ruby-identifier">puts</span>
|
834
|
+
<span class="ruby-identifier">out</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">'Tasks:'</span>
|
835
|
+
<span class="ruby-constant">TASKS</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">name</span>, <span class="ruby-identifier">desc</span><span class="ruby-operator">|</span>
|
836
|
+
<span class="ruby-identifier">out</span>.<span class="ruby-identifier">printf</span> <span class="ruby-identifier">fmt</span>, <span class="ruby-identifier">name</span>, <span class="ruby-identifier">desc</span>
|
837
|
+
<span class="ruby-keyword kw">end</span>
|
838
|
+
|
839
|
+
<span class="ruby-identifier">fmt</span> = <span class="ruby-value str">" %-24s %s [%s]\n"</span>
|
840
|
+
<span class="ruby-identifier">out</span>.<span class="ruby-identifier">puts</span>
|
841
|
+
<span class="ruby-identifier">out</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">'Options for CONFIG or ALL:'</span>
|
842
|
+
<span class="ruby-ivar">@config</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">item</span><span class="ruby-operator">|</span>
|
843
|
+
<span class="ruby-identifier">out</span>.<span class="ruby-identifier">printf</span> <span class="ruby-identifier">fmt</span>, <span class="ruby-identifier">item</span>.<span class="ruby-identifier">help_opt</span>, <span class="ruby-identifier">item</span>.<span class="ruby-identifier">description</span>, <span class="ruby-identifier">item</span>.<span class="ruby-identifier">help_default</span>
|
844
|
+
<span class="ruby-keyword kw">end</span>
|
845
|
+
<span class="ruby-identifier">out</span>.<span class="ruby-identifier">printf</span> <span class="ruby-identifier">fmt</span>, <span class="ruby-value str">'--rbconfig=path'</span>, <span class="ruby-value str">'rbconfig.rb to load'</span>,<span class="ruby-value str">"running ruby's"</span>
|
846
|
+
<span class="ruby-identifier">out</span>.<span class="ruby-identifier">puts</span>
|
847
|
+
<span class="ruby-identifier">out</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">'Options for INSTALL:'</span>
|
848
|
+
<span class="ruby-identifier">out</span>.<span class="ruby-identifier">printf</span> <span class="ruby-identifier">fmt</span>, <span class="ruby-value str">'--no-harm'</span>, <span class="ruby-value str">'only display what to do if given'</span>, <span class="ruby-value str">'off'</span>
|
849
|
+
<span class="ruby-identifier">out</span>.<span class="ruby-identifier">printf</span> <span class="ruby-identifier">fmt</span>, <span class="ruby-value str">'--prefix=path'</span>, <span class="ruby-value str">'install path prefix'</span>, <span class="ruby-value str">''</span>
|
850
|
+
<span class="ruby-identifier">out</span>.<span class="ruby-identifier">puts</span>
|
851
|
+
<span class="ruby-keyword kw">end</span>
|
852
|
+
</pre>
|
853
|
+
</div>
|
854
|
+
</div>
|
855
|
+
</div>
|
856
|
+
|
857
|
+
<div id="method-M000035" class="method-detail">
|
858
|
+
<a name="M000035"></a>
|
859
|
+
|
860
|
+
<div class="method-heading">
|
861
|
+
<a href="#M000035" class="method-signature">
|
862
|
+
<span class="method-name">relpath</span><span class="method-args">()</span>
|
863
|
+
</a>
|
864
|
+
</div>
|
865
|
+
|
866
|
+
<div class="method-description">
|
867
|
+
<p><a class="source-toggle" href="#"
|
868
|
+
onclick="toggleCode('M000035-source');return false;">[Source]</a></p>
|
869
|
+
<div class="method-source-code" id="M000035-source">
|
870
|
+
<pre>
|
871
|
+
<span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 850</span>
|
872
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">relpath</span>
|
873
|
+
<span class="ruby-value str">'.'</span>
|
874
|
+
<span class="ruby-keyword kw">end</span>
|
875
|
+
</pre>
|
876
|
+
</div>
|
877
|
+
</div>
|
878
|
+
</div>
|
879
|
+
|
880
|
+
<div id="method-M000031" class="method-detail">
|
881
|
+
<a name="M000031"></a>
|
882
|
+
|
883
|
+
<div class="method-heading">
|
884
|
+
<a href="#M000031" class="method-signature">
|
885
|
+
<span class="method-name">run_metaconfigs</span><span class="method-args">()</span>
|
886
|
+
</a>
|
887
|
+
</div>
|
888
|
+
|
889
|
+
<div class="method-description">
|
890
|
+
<p><a class="source-toggle" href="#"
|
891
|
+
onclick="toggleCode('M000031-source');return false;">[Source]</a></p>
|
892
|
+
<div class="method-source-code" id="M000031-source">
|
893
|
+
<pre>
|
894
|
+
<span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 830</span>
|
895
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run_metaconfigs</span>
|
896
|
+
<span class="ruby-ivar">@config</span>.<span class="ruby-identifier">load_script</span> <span class="ruby-node">"#{@ardir}/metaconfig"</span>
|
897
|
+
<span class="ruby-keyword kw">end</span>
|
898
|
+
</pre>
|
899
|
+
</div>
|
900
|
+
</div>
|
901
|
+
</div>
|
902
|
+
|
903
|
+
<div id="method-M000033" class="method-detail">
|
904
|
+
<a name="M000033"></a>
|
905
|
+
|
906
|
+
<div class="method-heading">
|
907
|
+
<a href="#M000033" class="method-signature">
|
908
|
+
<span class="method-name">srcdir_root</span><span class="method-args">()</span>
|
909
|
+
</a>
|
910
|
+
</div>
|
911
|
+
|
912
|
+
<div class="method-description">
|
913
|
+
<p>
|
914
|
+
Hook Script API bases
|
915
|
+
</p>
|
916
|
+
<p><a class="source-toggle" href="#"
|
917
|
+
onclick="toggleCode('M000033-source');return false;">[Source]</a></p>
|
918
|
+
<div class="method-source-code" id="M000033-source">
|
919
|
+
<pre>
|
920
|
+
<span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 842</span>
|
921
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">srcdir_root</span>
|
922
|
+
<span class="ruby-ivar">@ardir</span>
|
923
|
+
<span class="ruby-keyword kw">end</span>
|
924
|
+
</pre>
|
925
|
+
</div>
|
926
|
+
</div>
|
927
|
+
</div>
|
928
|
+
|
929
|
+
<div id="method-M000037" class="method-detail">
|
930
|
+
<a name="M000037"></a>
|
931
|
+
|
932
|
+
<div class="method-heading">
|
933
|
+
<a href="#M000037" class="method-signature">
|
934
|
+
<span class="method-name">valid_task?</span><span class="method-args">(t)</span>
|
935
|
+
</a>
|
936
|
+
</div>
|
937
|
+
|
938
|
+
<div class="method-description">
|
939
|
+
<p><a class="source-toggle" href="#"
|
940
|
+
onclick="toggleCode('M000037-source');return false;">[Source]</a></p>
|
941
|
+
<div class="method-source-code" id="M000037-source">
|
942
|
+
<pre>
|
943
|
+
<span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 884</span>
|
944
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">valid_task?</span>(<span class="ruby-identifier">t</span>)
|
945
|
+
<span class="ruby-identifier">valid_task_re</span>() <span class="ruby-operator">=~</span> <span class="ruby-identifier">t</span>
|
946
|
+
<span class="ruby-keyword kw">end</span>
|
947
|
+
</pre>
|
948
|
+
</div>
|
949
|
+
</div>
|
950
|
+
</div>
|
951
|
+
|
952
|
+
<div id="method-M000038" class="method-detail">
|
953
|
+
<a name="M000038"></a>
|
954
|
+
|
955
|
+
<div class="method-heading">
|
956
|
+
<a href="#M000038" class="method-signature">
|
957
|
+
<span class="method-name">valid_task_re</span><span class="method-args">()</span>
|
958
|
+
</a>
|
959
|
+
</div>
|
960
|
+
|
961
|
+
<div class="method-description">
|
962
|
+
<p><a class="source-toggle" href="#"
|
963
|
+
onclick="toggleCode('M000038-source');return false;">[Source]</a></p>
|
964
|
+
<div class="method-source-code" id="M000038-source">
|
965
|
+
<pre>
|
966
|
+
<span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 888</span>
|
967
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">valid_task_re</span>
|
968
|
+
<span class="ruby-ivar">@valid_task_re</span> <span class="ruby-operator">||=</span> <span class="ruby-node">/\A(?:#{TASKS.map {|task,desc| task }.join('|')})\z/</span>
|
969
|
+
<span class="ruby-keyword kw">end</span>
|
970
|
+
</pre>
|
971
|
+
</div>
|
972
|
+
</div>
|
973
|
+
</div>
|
974
|
+
|
975
|
+
|
976
|
+
</div>
|
977
|
+
|
978
|
+
|
979
|
+
</div>
|
980
|
+
|
981
|
+
|
982
|
+
<div id="validator-badges">
|
983
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
984
|
+
</div>
|
985
|
+
|
986
|
+
</body>
|
987
|
+
</html>
|