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,593 @@
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: ToplevelInstallerMulti</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">ToplevelInstallerMulti</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
+ <a href="ToplevelInstaller.html">
69
+ ToplevelInstaller
70
+ </a>
71
+ </td>
72
+ </tr>
73
+ </table>
74
+ </div>
75
+ <!-- banner header -->
76
+
77
+ <div id="bodyContent">
78
+
79
+
80
+
81
+ <div id="contextContent">
82
+
83
+
84
+
85
+ </div>
86
+
87
+ <div id="method-list">
88
+ <h3 class="section-bar">Methods</h3>
89
+
90
+ <div class="name-list">
91
+ <a href="#M000167">each_selected_installers</a>&nbsp;&nbsp;
92
+ <a href="#M000165">exec_clean</a>&nbsp;&nbsp;
93
+ <a href="#M000161">exec_config</a>&nbsp;&nbsp;
94
+ <a href="#M000166">exec_distclean</a>&nbsp;&nbsp;
95
+ <a href="#M000163">exec_install</a>&nbsp;&nbsp;
96
+ <a href="#M000162">exec_setup</a>&nbsp;&nbsp;
97
+ <a href="#M000164">exec_test</a>&nbsp;&nbsp;
98
+ <a href="#M000159">extract_selection</a>&nbsp;&nbsp;
99
+ <a href="#M000158">init_installers</a>&nbsp;&nbsp;
100
+ <a href="#M000155">new</a>&nbsp;&nbsp;
101
+ <a href="#M000170">no_harm?</a>&nbsp;&nbsp;
102
+ <a href="#M000157">packages=</a>&nbsp;&nbsp;
103
+ <a href="#M000160">print_usage</a>&nbsp;&nbsp;
104
+ <a href="#M000168">run_hook</a>&nbsp;&nbsp;
105
+ <a href="#M000156">run_metaconfigs</a>&nbsp;&nbsp;
106
+ <a href="#M000169">verbose?</a>&nbsp;&nbsp;
107
+ </div>
108
+ </div>
109
+
110
+ </div>
111
+
112
+
113
+ <!-- if includes -->
114
+ <div id="includes">
115
+ <h3 class="section-bar">Included Modules</h3>
116
+
117
+ <div id="includes-list">
118
+ <span class="include-name"><a href="FileOperations.html">FileOperations</a></span>
119
+ </div>
120
+ </div>
121
+
122
+ <div id="section">
123
+
124
+
125
+
126
+
127
+
128
+ <div id="attribute-list">
129
+ <h3 class="section-bar">Attributes</h3>
130
+
131
+ <div class="name-list">
132
+ <table>
133
+ <tr class="top-aligned-row context-row">
134
+ <td class="context-item-name">packages</td>
135
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
136
+ <td class="context-item-desc"></td>
137
+ </tr>
138
+ </table>
139
+ </div>
140
+ </div>
141
+
142
+
143
+
144
+ <!-- if method_list -->
145
+ <div id="methods">
146
+ <h3 class="section-bar">Public Class methods</h3>
147
+
148
+ <div id="method-M000155" class="method-detail">
149
+ <a name="M000155"></a>
150
+
151
+ <div class="method-heading">
152
+ <a href="#M000155" class="method-signature">
153
+ <span class="method-name">new</span><span class="method-args">(ardir_root, config)</span>
154
+ </a>
155
+ </div>
156
+
157
+ <div class="method-description">
158
+ <p><a class="source-toggle" href="#"
159
+ onclick="toggleCode('M000155-source');return false;">[Source]</a></p>
160
+ <div class="method-source-code" id="M000155-source">
161
+ <pre>
162
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1028</span>
163
+ <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>)
164
+ <span class="ruby-keyword kw">super</span>
165
+ <span class="ruby-ivar">@packages</span> = <span class="ruby-identifier">directories_of</span>(<span class="ruby-node">&quot;#{@ardir}/packages&quot;</span>)
166
+ <span class="ruby-identifier">raise</span> <span class="ruby-value str">'no package exists'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@packages</span>.<span class="ruby-identifier">empty?</span>
167
+ <span class="ruby-ivar">@root_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>))
168
+ <span class="ruby-keyword kw">end</span>
169
+ </pre>
170
+ </div>
171
+ </div>
172
+ </div>
173
+
174
+ <h3 class="section-bar">Public Instance methods</h3>
175
+
176
+ <div id="method-M000167" class="method-detail">
177
+ <a name="M000167"></a>
178
+
179
+ <div class="method-heading">
180
+ <a href="#M000167" class="method-signature">
181
+ <span class="method-name">each_selected_installers</span><span class="method-args">() {|@installers[pack]| ...}</span>
182
+ </a>
183
+ </div>
184
+
185
+ <div class="method-description">
186
+ <p>
187
+ lib
188
+ </p>
189
+ <p><a class="source-toggle" href="#"
190
+ onclick="toggleCode('M000167-source');return false;">[Source]</a></p>
191
+ <div class="method-source-code" id="M000167-source">
192
+ <pre>
193
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1130</span>
194
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_selected_installers</span>
195
+ <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">mkdir</span> <span class="ruby-value str">'packages'</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">dir?</span>(<span class="ruby-value str">'packages'</span>)
196
+ <span class="ruby-ivar">@selected</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">pack</span><span class="ruby-operator">|</span>
197
+ <span class="ruby-identifier">$stderr</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;Processing the package `#{pack}' ...&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">verbose?</span>
198
+ <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">mkdir</span> <span class="ruby-node">&quot;packages/#{pack}&quot;</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;packages/#{pack}&quot;</span>)
199
+ <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">chdir</span> <span class="ruby-node">&quot;packages/#{pack}&quot;</span>
200
+ <span class="ruby-keyword kw">yield</span> <span class="ruby-ivar">@installers</span>[<span class="ruby-identifier">pack</span>]
201
+ <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">chdir</span> <span class="ruby-value str">'../..'</span>
202
+ <span class="ruby-keyword kw">end</span>
203
+ <span class="ruby-keyword kw">end</span>
204
+ </pre>
205
+ </div>
206
+ </div>
207
+ </div>
208
+
209
+ <div id="method-M000165" class="method-detail">
210
+ <a name="M000165"></a>
211
+
212
+ <div class="method-heading">
213
+ <a href="#M000165" class="method-signature">
214
+ <span class="method-name">exec_clean</span><span class="method-args">()</span>
215
+ </a>
216
+ </div>
217
+
218
+ <div class="method-description">
219
+ <p><a class="source-toggle" href="#"
220
+ onclick="toggleCode('M000165-source');return false;">[Source]</a></p>
221
+ <div class="method-source-code" id="M000165-source">
222
+ <pre>
223
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1112</span>
224
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">exec_clean</span>
225
+ <span class="ruby-identifier">rm_f</span> <span class="ruby-ivar">@config</span>.<span class="ruby-identifier">savefile</span>
226
+ <span class="ruby-identifier">run_hook</span> <span class="ruby-value str">'pre-clean'</span>
227
+ <span class="ruby-identifier">each_selected_installers</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">inst</span><span class="ruby-operator">|</span> <span class="ruby-identifier">inst</span>.<span class="ruby-identifier">exec_clean</span> }
228
+ <span class="ruby-identifier">run_hook</span> <span class="ruby-value str">'post-clean'</span>
229
+ <span class="ruby-keyword kw">end</span>
230
+ </pre>
231
+ </div>
232
+ </div>
233
+ </div>
234
+
235
+ <div id="method-M000161" class="method-detail">
236
+ <a name="M000161"></a>
237
+
238
+ <div class="method-heading">
239
+ <a href="#M000161" class="method-signature">
240
+ <span class="method-name">exec_config</span><span class="method-args">()</span>
241
+ </a>
242
+ </div>
243
+
244
+ <div class="method-description">
245
+ <p>
246
+ Task Handlers
247
+ </p>
248
+ <p><a class="source-toggle" href="#"
249
+ onclick="toggleCode('M000161-source');return false;">[Source]</a></p>
250
+ <div class="method-source-code" id="M000161-source">
251
+ <pre>
252
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1087</span>
253
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">exec_config</span>
254
+ <span class="ruby-identifier">run_hook</span> <span class="ruby-value str">'pre-config'</span>
255
+ <span class="ruby-identifier">each_selected_installers</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">inst</span><span class="ruby-operator">|</span> <span class="ruby-identifier">inst</span>.<span class="ruby-identifier">exec_config</span> }
256
+ <span class="ruby-identifier">run_hook</span> <span class="ruby-value str">'post-config'</span>
257
+ <span class="ruby-ivar">@config</span>.<span class="ruby-identifier">save</span> <span class="ruby-comment cmt"># must be final</span>
258
+ <span class="ruby-keyword kw">end</span>
259
+ </pre>
260
+ </div>
261
+ </div>
262
+ </div>
263
+
264
+ <div id="method-M000166" class="method-detail">
265
+ <a name="M000166"></a>
266
+
267
+ <div class="method-heading">
268
+ <a href="#M000166" class="method-signature">
269
+ <span class="method-name">exec_distclean</span><span class="method-args">()</span>
270
+ </a>
271
+ </div>
272
+
273
+ <div class="method-description">
274
+ <p><a class="source-toggle" href="#"
275
+ onclick="toggleCode('M000166-source');return false;">[Source]</a></p>
276
+ <div class="method-source-code" id="M000166-source">
277
+ <pre>
278
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1119</span>
279
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">exec_distclean</span>
280
+ <span class="ruby-identifier">rm_f</span> <span class="ruby-ivar">@config</span>.<span class="ruby-identifier">savefile</span>
281
+ <span class="ruby-identifier">run_hook</span> <span class="ruby-value str">'pre-distclean'</span>
282
+ <span class="ruby-identifier">each_selected_installers</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">inst</span><span class="ruby-operator">|</span> <span class="ruby-identifier">inst</span>.<span class="ruby-identifier">exec_distclean</span> }
283
+ <span class="ruby-identifier">run_hook</span> <span class="ruby-value str">'post-distclean'</span>
284
+ <span class="ruby-keyword kw">end</span>
285
+ </pre>
286
+ </div>
287
+ </div>
288
+ </div>
289
+
290
+ <div id="method-M000163" class="method-detail">
291
+ <a name="M000163"></a>
292
+
293
+ <div class="method-heading">
294
+ <a href="#M000163" class="method-signature">
295
+ <span class="method-name">exec_install</span><span class="method-args">()</span>
296
+ </a>
297
+ </div>
298
+
299
+ <div class="method-description">
300
+ <p><a class="source-toggle" href="#"
301
+ onclick="toggleCode('M000163-source');return false;">[Source]</a></p>
302
+ <div class="method-source-code" id="M000163-source">
303
+ <pre>
304
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1100</span>
305
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">exec_install</span>
306
+ <span class="ruby-identifier">run_hook</span> <span class="ruby-value str">'pre-install'</span>
307
+ <span class="ruby-identifier">each_selected_installers</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">inst</span><span class="ruby-operator">|</span> <span class="ruby-identifier">inst</span>.<span class="ruby-identifier">exec_install</span> }
308
+ <span class="ruby-identifier">run_hook</span> <span class="ruby-value str">'post-install'</span>
309
+ <span class="ruby-keyword kw">end</span>
310
+ </pre>
311
+ </div>
312
+ </div>
313
+ </div>
314
+
315
+ <div id="method-M000162" class="method-detail">
316
+ <a name="M000162"></a>
317
+
318
+ <div class="method-heading">
319
+ <a href="#M000162" class="method-signature">
320
+ <span class="method-name">exec_setup</span><span class="method-args">()</span>
321
+ </a>
322
+ </div>
323
+
324
+ <div class="method-description">
325
+ <p><a class="source-toggle" href="#"
326
+ onclick="toggleCode('M000162-source');return false;">[Source]</a></p>
327
+ <div class="method-source-code" id="M000162-source">
328
+ <pre>
329
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1094</span>
330
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">exec_setup</span>
331
+ <span class="ruby-identifier">run_hook</span> <span class="ruby-value str">'pre-setup'</span>
332
+ <span class="ruby-identifier">each_selected_installers</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">inst</span><span class="ruby-operator">|</span> <span class="ruby-identifier">inst</span>.<span class="ruby-identifier">exec_setup</span> }
333
+ <span class="ruby-identifier">run_hook</span> <span class="ruby-value str">'post-setup'</span>
334
+ <span class="ruby-keyword kw">end</span>
335
+ </pre>
336
+ </div>
337
+ </div>
338
+ </div>
339
+
340
+ <div id="method-M000164" class="method-detail">
341
+ <a name="M000164"></a>
342
+
343
+ <div class="method-heading">
344
+ <a href="#M000164" class="method-signature">
345
+ <span class="method-name">exec_test</span><span class="method-args">()</span>
346
+ </a>
347
+ </div>
348
+
349
+ <div class="method-description">
350
+ <p><a class="source-toggle" href="#"
351
+ onclick="toggleCode('M000164-source');return false;">[Source]</a></p>
352
+ <div class="method-source-code" id="M000164-source">
353
+ <pre>
354
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1106</span>
355
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">exec_test</span>
356
+ <span class="ruby-identifier">run_hook</span> <span class="ruby-value str">'pre-test'</span>
357
+ <span class="ruby-identifier">each_selected_installers</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">inst</span><span class="ruby-operator">|</span> <span class="ruby-identifier">inst</span>.<span class="ruby-identifier">exec_test</span> }
358
+ <span class="ruby-identifier">run_hook</span> <span class="ruby-value str">'post-test'</span>
359
+ <span class="ruby-keyword kw">end</span>
360
+ </pre>
361
+ </div>
362
+ </div>
363
+ </div>
364
+
365
+ <div id="method-M000159" class="method-detail">
366
+ <a name="M000159"></a>
367
+
368
+ <div class="method-heading">
369
+ <a href="#M000159" class="method-signature">
370
+ <span class="method-name">extract_selection</span><span class="method-args">(list)</span>
371
+ </a>
372
+ </div>
373
+
374
+ <div class="method-description">
375
+ <p><a class="source-toggle" href="#"
376
+ onclick="toggleCode('M000159-source');return false;">[Source]</a></p>
377
+ <div class="method-source-code" id="M000159-source">
378
+ <pre>
379
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1068</span>
380
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">extract_selection</span>(<span class="ruby-identifier">list</span>)
381
+ <span class="ruby-identifier">a</span> = <span class="ruby-identifier">list</span>.<span class="ruby-identifier">split</span>(<span class="ruby-regexp re">/,/</span>)
382
+ <span class="ruby-identifier">a</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-operator">|</span>
383
+ <span class="ruby-identifier">setup_rb_error</span> <span class="ruby-node">&quot;no such package: #{name}&quot;</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@installers</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-identifier">name</span>)
384
+ <span class="ruby-keyword kw">end</span>
385
+ <span class="ruby-identifier">a</span>
386
+ <span class="ruby-keyword kw">end</span>
387
+ </pre>
388
+ </div>
389
+ </div>
390
+ </div>
391
+
392
+ <div id="method-M000158" class="method-detail">
393
+ <a name="M000158"></a>
394
+
395
+ <div class="method-heading">
396
+ <a href="#M000158" class="method-signature">
397
+ <span class="method-name">init_installers</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('M000158-source');return false;">[Source]</a></p>
404
+ <div class="method-source-code" id="M000158-source">
405
+ <pre>
406
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1053</span>
407
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init_installers</span>
408
+ <span class="ruby-ivar">@installers</span> = {}
409
+ <span class="ruby-ivar">@packages</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">pack</span><span class="ruby-operator">|</span>
410
+ <span class="ruby-ivar">@installers</span>[<span class="ruby-identifier">pack</span>] = <span class="ruby-constant">Installer</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@config</span>,
411
+ <span class="ruby-node">&quot;#{@ardir}/packages/#{pack}&quot;</span>,
412
+ <span class="ruby-node">&quot;packages/#{pack}&quot;</span>)
413
+ <span class="ruby-keyword kw">end</span>
414
+ <span class="ruby-identifier">with</span> = <span class="ruby-identifier">extract_selection</span>(<span class="ruby-identifier">config</span>(<span class="ruby-value str">'with'</span>))
415
+ <span class="ruby-identifier">without</span> = <span class="ruby-identifier">extract_selection</span>(<span class="ruby-identifier">config</span>(<span class="ruby-value str">'without'</span>))
416
+ <span class="ruby-ivar">@selected</span> = <span class="ruby-ivar">@installers</span>.<span class="ruby-identifier">keys</span>.<span class="ruby-identifier">select</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">name</span><span class="ruby-operator">|</span>
417
+ (<span class="ruby-identifier">with</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">with</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">name</span>)) \
418
+ <span class="ruby-keyword kw">and</span> <span class="ruby-keyword kw">not</span> <span class="ruby-identifier">without</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">name</span>)
419
+ }
420
+ <span class="ruby-keyword kw">end</span>
421
+ </pre>
422
+ </div>
423
+ </div>
424
+ </div>
425
+
426
+ <div id="method-M000170" class="method-detail">
427
+ <a name="M000170"></a>
428
+
429
+ <div class="method-heading">
430
+ <a href="#M000170" class="method-signature">
431
+ <span class="method-name">no_harm?</span><span class="method-args">()</span>
432
+ </a>
433
+ </div>
434
+
435
+ <div class="method-description">
436
+ <p>
437
+ module <a href="FileOperations.html">FileOperations</a> requires this
438
+ </p>
439
+ <p><a class="source-toggle" href="#"
440
+ onclick="toggleCode('M000170-source');return false;">[Source]</a></p>
441
+ <div class="method-source-code" id="M000170-source">
442
+ <pre>
443
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1151</span>
444
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">no_harm?</span>
445
+ <span class="ruby-ivar">@config</span>.<span class="ruby-identifier">no_harm?</span>
446
+ <span class="ruby-keyword kw">end</span>
447
+ </pre>
448
+ </div>
449
+ </div>
450
+ </div>
451
+
452
+ <div id="method-M000157" class="method-detail">
453
+ <a name="M000157"></a>
454
+
455
+ <div class="method-heading">
456
+ <a href="#M000157" class="method-signature">
457
+ <span class="method-name">packages=</span><span class="method-args">(list)</span>
458
+ </a>
459
+ </div>
460
+
461
+ <div class="method-description">
462
+ <p><a class="source-toggle" href="#"
463
+ onclick="toggleCode('M000157-source');return false;">[Source]</a></p>
464
+ <div class="method-source-code" id="M000157-source">
465
+ <pre>
466
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1044</span>
467
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">packages=</span>(<span class="ruby-identifier">list</span>)
468
+ <span class="ruby-identifier">raise</span> <span class="ruby-value str">'package list is empty'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">list</span>.<span class="ruby-identifier">empty?</span>
469
+ <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">name</span><span class="ruby-operator">|</span>
470
+ <span class="ruby-identifier">raise</span> <span class="ruby-node">&quot;directory packages/#{name} does not exist&quot;</span>\
471
+ <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">dir?</span>(<span class="ruby-node">&quot;#{@ardir}/packages/#{name}&quot;</span>)
472
+ <span class="ruby-keyword kw">end</span>
473
+ <span class="ruby-ivar">@packages</span> = <span class="ruby-identifier">list</span>
474
+ <span class="ruby-keyword kw">end</span>
475
+ </pre>
476
+ </div>
477
+ </div>
478
+ </div>
479
+
480
+ <div id="method-M000160" class="method-detail">
481
+ <a name="M000160"></a>
482
+
483
+ <div class="method-heading">
484
+ <a href="#M000160" class="method-signature">
485
+ <span class="method-name">print_usage</span><span class="method-args">(f)</span>
486
+ </a>
487
+ </div>
488
+
489
+ <div class="method-description">
490
+ <p><a class="source-toggle" href="#"
491
+ onclick="toggleCode('M000160-source');return false;">[Source]</a></p>
492
+ <div class="method-source-code" id="M000160-source">
493
+ <pre>
494
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1076</span>
495
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">print_usage</span>(<span class="ruby-identifier">f</span>)
496
+ <span class="ruby-keyword kw">super</span>
497
+ <span class="ruby-identifier">f</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">'Inluded packages:'</span>
498
+ <span class="ruby-identifier">f</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">' '</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@packages</span>.<span class="ruby-identifier">sort</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">' '</span>)
499
+ <span class="ruby-identifier">f</span>.<span class="ruby-identifier">puts</span>
500
+ <span class="ruby-keyword kw">end</span>
501
+ </pre>
502
+ </div>
503
+ </div>
504
+ </div>
505
+
506
+ <div id="method-M000168" class="method-detail">
507
+ <a name="M000168"></a>
508
+
509
+ <div class="method-heading">
510
+ <a href="#M000168" class="method-signature">
511
+ <span class="method-name">run_hook</span><span class="method-args">(id)</span>
512
+ </a>
513
+ </div>
514
+
515
+ <div class="method-description">
516
+ <p><a class="source-toggle" href="#"
517
+ onclick="toggleCode('M000168-source');return false;">[Source]</a></p>
518
+ <div class="method-source-code" id="M000168-source">
519
+ <pre>
520
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1141</span>
521
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run_hook</span>(<span class="ruby-identifier">id</span>)
522
+ <span class="ruby-ivar">@root_installer</span>.<span class="ruby-identifier">run_hook</span> <span class="ruby-identifier">id</span>
523
+ <span class="ruby-keyword kw">end</span>
524
+ </pre>
525
+ </div>
526
+ </div>
527
+ </div>
528
+
529
+ <div id="method-M000156" class="method-detail">
530
+ <a name="M000156"></a>
531
+
532
+ <div class="method-heading">
533
+ <a href="#M000156" class="method-signature">
534
+ <span class="method-name">run_metaconfigs</span><span class="method-args">()</span>
535
+ </a>
536
+ </div>
537
+
538
+ <div class="method-description">
539
+ <p><a class="source-toggle" href="#"
540
+ onclick="toggleCode('M000156-source');return false;">[Source]</a></p>
541
+ <div class="method-source-code" id="M000156-source">
542
+ <pre>
543
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1035</span>
544
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run_metaconfigs</span>
545
+ <span class="ruby-ivar">@config</span>.<span class="ruby-identifier">load_script</span> <span class="ruby-node">&quot;#{@ardir}/metaconfig&quot;</span>, <span class="ruby-keyword kw">self</span>
546
+ <span class="ruby-ivar">@packages</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-operator">|</span>
547
+ <span class="ruby-ivar">@config</span>.<span class="ruby-identifier">load_script</span> <span class="ruby-node">&quot;#{@ardir}/packages/#{name}/metaconfig&quot;</span>
548
+ <span class="ruby-keyword kw">end</span>
549
+ <span class="ruby-keyword kw">end</span>
550
+ </pre>
551
+ </div>
552
+ </div>
553
+ </div>
554
+
555
+ <div id="method-M000169" class="method-detail">
556
+ <a name="M000169"></a>
557
+
558
+ <div class="method-heading">
559
+ <a href="#M000169" class="method-signature">
560
+ <span class="method-name">verbose?</span><span class="method-args">()</span>
561
+ </a>
562
+ </div>
563
+
564
+ <div class="method-description">
565
+ <p>
566
+ module <a href="FileOperations.html">FileOperations</a> requires this
567
+ </p>
568
+ <p><a class="source-toggle" href="#"
569
+ onclick="toggleCode('M000169-source');return false;">[Source]</a></p>
570
+ <div class="method-source-code" id="M000169-source">
571
+ <pre>
572
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 1146</span>
573
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">verbose?</span>
574
+ <span class="ruby-ivar">@config</span>.<span class="ruby-identifier">verbose?</span>
575
+ <span class="ruby-keyword kw">end</span>
576
+ </pre>
577
+ </div>
578
+ </div>
579
+ </div>
580
+
581
+
582
+ </div>
583
+
584
+
585
+ </div>
586
+
587
+
588
+ <div id="validator-badges">
589
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
590
+ </div>
591
+
592
+ </body>
593
+ </html>