cft_smartcloud 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,163 @@
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: Hash</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">Hash</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../files/lib/hash_fix_rb.html">
59
+ lib/hash_fix.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
+ <div id="description">
82
+ <p>
83
+ Copyright (c) 2010, Cohesive Flexible Technologies, Inc. This copyrighted
84
+ material is the property of Cohesive Flexible Technologies and is subject
85
+ to the license terms of the product it is contained within, whether in text
86
+ or compiled form. It is licensed under the terms expressed in the
87
+ accompanying README and LICENSE files.
88
+ </p>
89
+ <p>
90
+ This program is AS IS and WITHOUT ANY WARRANTY; without even the implied
91
+ warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
92
+ </p>
93
+
94
+ </div>
95
+
96
+
97
+ </div>
98
+
99
+ <div id="method-list">
100
+ <h3 class="section-bar">Methods</h3>
101
+
102
+ <div class="name-list">
103
+ <a href="#M000171">method_missing</a>&nbsp;&nbsp;
104
+ </div>
105
+ </div>
106
+
107
+ </div>
108
+
109
+
110
+ <!-- if includes -->
111
+
112
+ <div id="section">
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+ <!-- if method_list -->
122
+ <div id="methods">
123
+ <h3 class="section-bar">Public Instance methods</h3>
124
+
125
+ <div id="method-M000171" class="method-detail">
126
+ <a name="M000171"></a>
127
+
128
+ <div class="method-heading">
129
+ <a href="#M000171" class="method-signature">
130
+ <span class="method-name">method_missing</span><span class="method-args">(meth, *args, &amp;block)</span>
131
+ </a>
132
+ </div>
133
+
134
+ <div class="method-description">
135
+ <p><a class="source-toggle" href="#"
136
+ onclick="toggleCode('M000171-source');return false;">[Source]</a></p>
137
+ <div class="method-source-code" id="M000171-source">
138
+ <pre>
139
+ <span class="ruby-comment cmt"># File lib/hash_fix.rb, line 25</span>
140
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_missing</span>(<span class="ruby-identifier">meth</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
141
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
142
+ <span class="ruby-identifier">dashed</span> = <span class="ruby-identifier">meth</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/_/</span>, <span class="ruby-value str">'-'</span>)
143
+ <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">meth</span>] <span class="ruby-operator">||</span> <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">dashed</span>] <span class="ruby-operator">||</span> <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">dashed</span>.<span class="ruby-identifier">to_sym</span>] <span class="ruby-operator">||</span> <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">meth</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>) <span class="ruby-keyword kw">rescue</span> <span class="ruby-keyword kw">nil</span>
144
+ <span class="ruby-keyword kw">end</span>
145
+ <span class="ruby-keyword kw">end</span>
146
+ </pre>
147
+ </div>
148
+ </div>
149
+ </div>
150
+
151
+
152
+ </div>
153
+
154
+
155
+ </div>
156
+
157
+
158
+ <div id="validator-badges">
159
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
160
+ </div>
161
+
162
+ </body>
163
+ </html>
@@ -0,0 +1,413 @@
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>Module: HookScriptAPI</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>Module</strong></td>
53
+ <td class="class-name-in-header">HookScriptAPI</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
+ </table>
66
+ </div>
67
+ <!-- banner header -->
68
+
69
+ <div id="bodyContent">
70
+
71
+
72
+
73
+ <div id="contextContent">
74
+
75
+ <div id="description">
76
+ <p>
77
+ This module requires: srcdir_root, objdir_root, relpath
78
+ </p>
79
+
80
+ </div>
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="#M000244">config</a>&nbsp;&nbsp;
90
+ <a href="#M000247">curr_objdir</a>&nbsp;&nbsp;
91
+ <a href="#M000246">curr_srcdir</a>&nbsp;&nbsp;
92
+ <a href="#M000243">get_config</a>&nbsp;&nbsp;
93
+ <a href="#M000245">set_config</a>&nbsp;&nbsp;
94
+ <a href="#M000254">srcdirectories</a>&nbsp;&nbsp;
95
+ <a href="#M000250">srcdirectory?</a>&nbsp;&nbsp;
96
+ <a href="#M000252">srcentries</a>&nbsp;&nbsp;
97
+ <a href="#M000249">srcexist?</a>&nbsp;&nbsp;
98
+ <a href="#M000248">srcfile</a>&nbsp;&nbsp;
99
+ <a href="#M000251">srcfile?</a>&nbsp;&nbsp;
100
+ <a href="#M000253">srcfiles</a>&nbsp;&nbsp;
101
+ </div>
102
+ </div>
103
+
104
+ </div>
105
+
106
+
107
+ <!-- if includes -->
108
+
109
+ <div id="section">
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+ <!-- if method_list -->
119
+ <div id="methods">
120
+ <h3 class="section-bar">Public Instance methods</h3>
121
+
122
+ <div id="method-M000244" class="method-detail">
123
+ <a name="M000244"></a>
124
+
125
+ <div class="method-heading">
126
+ <span class="method-name">config</span><span class="method-args">(key)</span>
127
+ </div>
128
+
129
+ <div class="method-description">
130
+ <p>
131
+ Alias for <a href="HookScriptAPI.html#M000243">get_config</a>
132
+ </p>
133
+ </div>
134
+ </div>
135
+
136
+ <div id="method-M000247" class="method-detail">
137
+ <a name="M000247"></a>
138
+
139
+ <div class="method-heading">
140
+ <a href="#M000247" class="method-signature">
141
+ <span class="method-name">curr_objdir</span><span class="method-args">()</span>
142
+ </a>
143
+ </div>
144
+
145
+ <div class="method-description">
146
+ <p><a class="source-toggle" href="#"
147
+ onclick="toggleCode('M000247-source');return false;">[Source]</a></p>
148
+ <div class="method-source-code" id="M000247-source">
149
+ <pre>
150
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 710</span>
151
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">curr_objdir</span>
152
+ <span class="ruby-node">&quot;#{objdir_root()}/#{relpath()}&quot;</span>
153
+ <span class="ruby-keyword kw">end</span>
154
+ </pre>
155
+ </div>
156
+ </div>
157
+ </div>
158
+
159
+ <div id="method-M000246" class="method-detail">
160
+ <a name="M000246"></a>
161
+
162
+ <div class="method-heading">
163
+ <a href="#M000246" class="method-signature">
164
+ <span class="method-name">curr_srcdir</span><span class="method-args">()</span>
165
+ </a>
166
+ </div>
167
+
168
+ <div class="method-description">
169
+ <p>
170
+ srcdir/objdir (works only in the package directory)
171
+ </p>
172
+ <p><a class="source-toggle" href="#"
173
+ onclick="toggleCode('M000246-source');return false;">[Source]</a></p>
174
+ <div class="method-source-code" id="M000246-source">
175
+ <pre>
176
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 706</span>
177
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">curr_srcdir</span>
178
+ <span class="ruby-node">&quot;#{srcdir_root()}/#{relpath()}&quot;</span>
179
+ <span class="ruby-keyword kw">end</span>
180
+ </pre>
181
+ </div>
182
+ </div>
183
+ </div>
184
+
185
+ <div id="method-M000243" class="method-detail">
186
+ <a name="M000243"></a>
187
+
188
+ <div class="method-heading">
189
+ <a href="#M000243" class="method-signature">
190
+ <span class="method-name">get_config</span><span class="method-args">(key)</span>
191
+ </a>
192
+ </div>
193
+
194
+ <div class="method-description">
195
+ <p><a class="source-toggle" href="#"
196
+ onclick="toggleCode('M000243-source');return false;">[Source]</a></p>
197
+ <div class="method-source-code" id="M000243-source">
198
+ <pre>
199
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 691</span>
200
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_config</span>(<span class="ruby-identifier">key</span>)
201
+ <span class="ruby-ivar">@config</span>[<span class="ruby-identifier">key</span>]
202
+ <span class="ruby-keyword kw">end</span>
203
+ </pre>
204
+ </div>
205
+ </div>
206
+ </div>
207
+
208
+ <div id="method-M000245" class="method-detail">
209
+ <a name="M000245"></a>
210
+
211
+ <div class="method-heading">
212
+ <a href="#M000245" class="method-signature">
213
+ <span class="method-name">set_config</span><span class="method-args">(key, val)</span>
214
+ </a>
215
+ </div>
216
+
217
+ <div class="method-description">
218
+ <p>
219
+ obsolete: use metaconfig to change configuration
220
+ </p>
221
+ <p><a class="source-toggle" href="#"
222
+ onclick="toggleCode('M000245-source');return false;">[Source]</a></p>
223
+ <div class="method-source-code" id="M000245-source">
224
+ <pre>
225
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 698</span>
226
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_config</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">val</span>)
227
+ <span class="ruby-ivar">@config</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">val</span>
228
+ <span class="ruby-keyword kw">end</span>
229
+ </pre>
230
+ </div>
231
+ </div>
232
+ </div>
233
+
234
+ <div id="method-M000254" class="method-detail">
235
+ <a name="M000254"></a>
236
+
237
+ <div class="method-heading">
238
+ <a href="#M000254" class="method-signature">
239
+ <span class="method-name">srcdirectories</span><span class="method-args">(path = '.')</span>
240
+ </a>
241
+ </div>
242
+
243
+ <div class="method-description">
244
+ <p><a class="source-toggle" href="#"
245
+ onclick="toggleCode('M000254-source');return false;">[Source]</a></p>
246
+ <div class="method-source-code" id="M000254-source">
247
+ <pre>
248
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 742</span>
249
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">srcdirectories</span>(<span class="ruby-identifier">path</span> = <span class="ruby-value str">'.'</span>)
250
+ <span class="ruby-identifier">srcentries</span>(<span class="ruby-identifier">path</span>).<span class="ruby-identifier">select</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">fname</span><span class="ruby-operator">|</span>
251
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">dir?</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">curr_srcdir</span>(), <span class="ruby-identifier">path</span>, <span class="ruby-identifier">fname</span>))
252
+ }
253
+ <span class="ruby-keyword kw">end</span>
254
+ </pre>
255
+ </div>
256
+ </div>
257
+ </div>
258
+
259
+ <div id="method-M000250" class="method-detail">
260
+ <a name="M000250"></a>
261
+
262
+ <div class="method-heading">
263
+ <a href="#M000250" class="method-signature">
264
+ <span class="method-name">srcdirectory?</span><span class="method-args">(path)</span>
265
+ </a>
266
+ </div>
267
+
268
+ <div class="method-description">
269
+ <p><a class="source-toggle" href="#"
270
+ onclick="toggleCode('M000250-source');return false;">[Source]</a></p>
271
+ <div class="method-source-code" id="M000250-source">
272
+ <pre>
273
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 722</span>
274
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">srcdirectory?</span>(<span class="ruby-identifier">path</span>)
275
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">dir?</span>(<span class="ruby-identifier">srcfile</span>(<span class="ruby-identifier">path</span>))
276
+ <span class="ruby-keyword kw">end</span>
277
+ </pre>
278
+ </div>
279
+ </div>
280
+ </div>
281
+
282
+ <div id="method-M000252" class="method-detail">
283
+ <a name="M000252"></a>
284
+
285
+ <div class="method-heading">
286
+ <a href="#M000252" class="method-signature">
287
+ <span class="method-name">srcentries</span><span class="method-args">(path = '.')</span>
288
+ </a>
289
+ </div>
290
+
291
+ <div class="method-description">
292
+ <p><a class="source-toggle" href="#"
293
+ onclick="toggleCode('M000252-source');return false;">[Source]</a></p>
294
+ <div class="method-source-code" id="M000252-source">
295
+ <pre>
296
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 730</span>
297
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">srcentries</span>(<span class="ruby-identifier">path</span> = <span class="ruby-value str">'.'</span>)
298
+ <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">open</span>(<span class="ruby-node">&quot;#{curr_srcdir()}/#{path}&quot;</span>) {<span class="ruby-operator">|</span><span class="ruby-identifier">d</span><span class="ruby-operator">|</span>
299
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">d</span>.<span class="ruby-identifier">to_a</span> <span class="ruby-operator">-</span> <span class="ruby-node">%w(. ..)</span>
300
+ }
301
+ <span class="ruby-keyword kw">end</span>
302
+ </pre>
303
+ </div>
304
+ </div>
305
+ </div>
306
+
307
+ <div id="method-M000249" class="method-detail">
308
+ <a name="M000249"></a>
309
+
310
+ <div class="method-heading">
311
+ <a href="#M000249" class="method-signature">
312
+ <span class="method-name">srcexist?</span><span class="method-args">(path)</span>
313
+ </a>
314
+ </div>
315
+
316
+ <div class="method-description">
317
+ <p><a class="source-toggle" href="#"
318
+ onclick="toggleCode('M000249-source');return false;">[Source]</a></p>
319
+ <div class="method-source-code" id="M000249-source">
320
+ <pre>
321
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 718</span>
322
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">srcexist?</span>(<span class="ruby-identifier">path</span>)
323
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-identifier">srcfile</span>(<span class="ruby-identifier">path</span>))
324
+ <span class="ruby-keyword kw">end</span>
325
+ </pre>
326
+ </div>
327
+ </div>
328
+ </div>
329
+
330
+ <div id="method-M000248" class="method-detail">
331
+ <a name="M000248"></a>
332
+
333
+ <div class="method-heading">
334
+ <a href="#M000248" class="method-signature">
335
+ <span class="method-name">srcfile</span><span class="method-args">(path)</span>
336
+ </a>
337
+ </div>
338
+
339
+ <div class="method-description">
340
+ <p><a class="source-toggle" href="#"
341
+ onclick="toggleCode('M000248-source');return false;">[Source]</a></p>
342
+ <div class="method-source-code" id="M000248-source">
343
+ <pre>
344
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 714</span>
345
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">srcfile</span>(<span class="ruby-identifier">path</span>)
346
+ <span class="ruby-node">&quot;#{curr_srcdir()}/#{path}&quot;</span>
347
+ <span class="ruby-keyword kw">end</span>
348
+ </pre>
349
+ </div>
350
+ </div>
351
+ </div>
352
+
353
+ <div id="method-M000251" class="method-detail">
354
+ <a name="M000251"></a>
355
+
356
+ <div class="method-heading">
357
+ <a href="#M000251" class="method-signature">
358
+ <span class="method-name">srcfile?</span><span class="method-args">(path)</span>
359
+ </a>
360
+ </div>
361
+
362
+ <div class="method-description">
363
+ <p><a class="source-toggle" href="#"
364
+ onclick="toggleCode('M000251-source');return false;">[Source]</a></p>
365
+ <div class="method-source-code" id="M000251-source">
366
+ <pre>
367
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 726</span>
368
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">srcfile?</span>(<span class="ruby-identifier">path</span>)
369
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">file?</span>(<span class="ruby-identifier">srcfile</span>(<span class="ruby-identifier">path</span>))
370
+ <span class="ruby-keyword kw">end</span>
371
+ </pre>
372
+ </div>
373
+ </div>
374
+ </div>
375
+
376
+ <div id="method-M000253" class="method-detail">
377
+ <a name="M000253"></a>
378
+
379
+ <div class="method-heading">
380
+ <a href="#M000253" class="method-signature">
381
+ <span class="method-name">srcfiles</span><span class="method-args">(path = '.')</span>
382
+ </a>
383
+ </div>
384
+
385
+ <div class="method-description">
386
+ <p><a class="source-toggle" href="#"
387
+ onclick="toggleCode('M000253-source');return false;">[Source]</a></p>
388
+ <div class="method-source-code" id="M000253-source">
389
+ <pre>
390
+ <span class="ruby-comment cmt"># File lib/mime-types-1.16/setup.rb, line 736</span>
391
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">srcfiles</span>(<span class="ruby-identifier">path</span> = <span class="ruby-value str">'.'</span>)
392
+ <span class="ruby-identifier">srcentries</span>(<span class="ruby-identifier">path</span>).<span class="ruby-identifier">select</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">fname</span><span class="ruby-operator">|</span>
393
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">file?</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">curr_srcdir</span>(), <span class="ruby-identifier">path</span>, <span class="ruby-identifier">fname</span>))
394
+ }
395
+ <span class="ruby-keyword kw">end</span>
396
+ </pre>
397
+ </div>
398
+ </div>
399
+ </div>
400
+
401
+
402
+ </div>
403
+
404
+
405
+ </div>
406
+
407
+
408
+ <div id="validator-badges">
409
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
410
+ </div>
411
+
412
+ </body>
413
+ </html>