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,737 @@
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: RestClient</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">RestClient</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../files/lib/rest-client-1_6_3/lib/restclient/abstract_response_rb.html">
59
+ lib/rest-client-1.6.3/lib/restclient/abstract_response.rb
60
+ </a>
61
+ <br />
62
+ <a href="../files/lib/rest-client-1_6_3/lib/restclient/exceptions_rb.html">
63
+ lib/rest-client-1.6.3/lib/restclient/exceptions.rb
64
+ </a>
65
+ <br />
66
+ <a href="../files/lib/rest-client-1_6_3/lib/restclient/payload_rb.html">
67
+ lib/rest-client-1.6.3/lib/restclient/payload.rb
68
+ </a>
69
+ <br />
70
+ <a href="../files/lib/rest-client-1_6_3/lib/restclient/raw_response_rb.html">
71
+ lib/rest-client-1.6.3/lib/restclient/raw_response.rb
72
+ </a>
73
+ <br />
74
+ <a href="../files/lib/rest-client-1_6_3/lib/restclient/request_rb.html">
75
+ lib/rest-client-1.6.3/lib/restclient/request.rb
76
+ </a>
77
+ <br />
78
+ <a href="../files/lib/rest-client-1_6_3/lib/restclient/resource_rb.html">
79
+ lib/rest-client-1.6.3/lib/restclient/resource.rb
80
+ </a>
81
+ <br />
82
+ <a href="../files/lib/rest-client-1_6_3/lib/restclient/response_rb.html">
83
+ lib/rest-client-1.6.3/lib/restclient/response.rb
84
+ </a>
85
+ <br />
86
+ <a href="../files/lib/rest-client-1_6_3/lib/restclient_rb.html">
87
+ lib/rest-client-1.6.3/lib/restclient.rb
88
+ </a>
89
+ <br />
90
+ <a href="../files/lib/restclient_fix_rb.html">
91
+ lib/restclient_fix.rb
92
+ </a>
93
+ <br />
94
+ </td>
95
+ </tr>
96
+
97
+ </table>
98
+ </div>
99
+ <!-- banner header -->
100
+
101
+ <div id="bodyContent">
102
+
103
+
104
+
105
+ <div id="contextContent">
106
+
107
+ <div id="description">
108
+ <p>
109
+ Enables modification of timeout in <a href="RestClient.html">RestClient</a>
110
+ </p>
111
+
112
+ </div>
113
+
114
+
115
+ </div>
116
+
117
+ <div id="method-list">
118
+ <h3 class="section-bar">Methods</h3>
119
+
120
+ <div class="name-list">
121
+ <a href="#M000267">&lt;&lt;</a>&nbsp;&nbsp;
122
+ <a href="#M000269">&lt;&lt;</a>&nbsp;&nbsp;
123
+ <a href="#M000268">&lt;&lt;</a>&nbsp;&nbsp;
124
+ <a href="#M000270">add_before_execution_proc</a>&nbsp;&nbsp;
125
+ <a href="#M000266">create_log</a>&nbsp;&nbsp;
126
+ <a href="#M000261">delete</a>&nbsp;&nbsp;
127
+ <a href="#M000276">delete</a>&nbsp;&nbsp;
128
+ <a href="#M000257">get</a>&nbsp;&nbsp;
129
+ <a href="#M000272">get</a>&nbsp;&nbsp;
130
+ <a href="#M000262">head</a>&nbsp;&nbsp;
131
+ <a href="#M000264">log=</a>&nbsp;&nbsp;
132
+ <a href="#M000263">options</a>&nbsp;&nbsp;
133
+ <a href="#M000259">patch</a>&nbsp;&nbsp;
134
+ <a href="#M000274">patch</a>&nbsp;&nbsp;
135
+ <a href="#M000258">post</a>&nbsp;&nbsp;
136
+ <a href="#M000273">post</a>&nbsp;&nbsp;
137
+ <a href="#M000275">put</a>&nbsp;&nbsp;
138
+ <a href="#M000260">put</a>&nbsp;&nbsp;
139
+ <a href="#M000271">reset_before_execution_procs</a>&nbsp;&nbsp;
140
+ <a href="#M000265">version</a>&nbsp;&nbsp;
141
+ </div>
142
+ </div>
143
+
144
+ </div>
145
+
146
+
147
+ <!-- if includes -->
148
+
149
+ <div id="section">
150
+
151
+ <div id="class-list">
152
+ <h3 class="section-bar">Classes and Modules</h3>
153
+
154
+ Module <a href="RestClient/AbstractResponse.html" class="link">RestClient::AbstractResponse</a><br />
155
+ Module <a href="RestClient/Exceptions.html" class="link">RestClient::Exceptions</a><br />
156
+ Module <a href="RestClient/Payload.html" class="link">RestClient::Payload</a><br />
157
+ Module <a href="RestClient/Response.html" class="link">RestClient::Response</a><br />
158
+ Module <a href="RestClient/ResponseForException.html" class="link">RestClient::ResponseForException</a><br />
159
+ Class <a href="RestClient/Exception.html" class="link">RestClient::Exception</a><br />
160
+ Class <a href="RestClient/ExceptionWithResponse.html" class="link">RestClient::ExceptionWithResponse</a><br />
161
+ Class <a href="RestClient/MaxRedirectsReached.html" class="link">RestClient::MaxRedirectsReached</a><br />
162
+ Class <a href="RestClient/RawResponse.html" class="link">RestClient::RawResponse</a><br />
163
+ Class <a href="RestClient/Redirect.html" class="link">RestClient::Redirect</a><br />
164
+ Class <a href="RestClient/Request.html" class="link">RestClient::Request</a><br />
165
+ Class <a href="RestClient/RequestFailed.html" class="link">RestClient::RequestFailed</a><br />
166
+ Class <a href="RestClient/Resource.html" class="link">RestClient::Resource</a><br />
167
+ Class <a href="RestClient/SSLCertificateNotVerified.html" class="link">RestClient::SSLCertificateNotVerified</a><br />
168
+ Class <a href="RestClient/ServerBrokeConnection.html" class="link">RestClient::ServerBrokeConnection</a><br />
169
+
170
+ </div>
171
+
172
+ <div id="constants-list">
173
+ <h3 class="section-bar">Constants</h3>
174
+
175
+ <div class="name-list">
176
+ <table summary="Constants">
177
+ <tr class="top-aligned-row context-row">
178
+ <td class="context-item-name">STATUSES</td>
179
+ <td>=</td>
180
+ <td class="context-item-value">{100 =&gt; 'Continue', 101 =&gt; 'Switching Protocols', 102 =&gt; 'Processing', #WebDAV 200 =&gt; 'OK', 201 =&gt; 'Created', 202 =&gt; 'Accepted', 203 =&gt; 'Non-Authoritative Information', # http/1.1 204 =&gt; 'No Content', 205 =&gt; 'Reset Content', 206 =&gt; 'Partial Content', 207 =&gt; 'Multi-Status', #WebDAV 300 =&gt; 'Multiple Choices', 301 =&gt; 'Moved Permanently', 302 =&gt; 'Found', 303 =&gt; 'See Other', # http/1.1 304 =&gt; 'Not Modified', 305 =&gt; 'Use Proxy', # http/1.1 306 =&gt; 'Switch Proxy', # no longer used 307 =&gt; 'Temporary Redirect', # http/1.1 400 =&gt; 'Bad Request', 401 =&gt; 'Unauthorized', 402 =&gt; 'Payment Required', 403 =&gt; 'Forbidden', 404 =&gt; 'Resource Not Found', 405 =&gt; 'Method Not Allowed', 406 =&gt; 'Not Acceptable', 407 =&gt; 'Proxy Authentication Required', 408 =&gt; 'Request Timeout', 409 =&gt; 'Conflict', 410 =&gt; 'Gone', 411 =&gt; 'Length Required', 412 =&gt; 'Precondition Failed', 413 =&gt; 'Request Entity Too Large', 414 =&gt; 'Request-URI Too Long', 415 =&gt; 'Unsupported Media Type', 416 =&gt; 'Requested Range Not Satisfiable', 417 =&gt; 'Expectation Failed', 418 =&gt; 'I\'m A Teapot', 421 =&gt; 'Too Many Connections From This IP', 422 =&gt; 'Unprocessable Entity', #WebDAV 423 =&gt; 'Locked', #WebDAV 424 =&gt; 'Failed Dependency', #WebDAV 425 =&gt; 'Unordered Collection', #WebDAV 426 =&gt; 'Upgrade Required', 449 =&gt; 'Retry With', #Microsoft 450 =&gt; 'Blocked By Windows Parental Controls', #Microsoft 500 =&gt; 'Internal Server Error', 501 =&gt; 'Not Implemented', 502 =&gt; 'Bad Gateway', 503 =&gt; 'Service Unavailable', 504 =&gt; 'Gateway Timeout', 505 =&gt; 'HTTP Version Not Supported', 506 =&gt; 'Variant Also Negotiates', 507 =&gt; 'Insufficient Storage', #WebDAV 509 =&gt; 'Bandwidth Limit Exceeded', #Apache 510 =&gt; 'Not Extended'}</td>
181
+ </tr>
182
+ </table>
183
+ </div>
184
+ </div>
185
+
186
+
187
+
188
+ <div id="attribute-list">
189
+ <h3 class="section-bar">Attributes</h3>
190
+
191
+ <div class="name-list">
192
+ <table>
193
+ <tr class="top-aligned-row context-row">
194
+ <td class="context-item-name">proxy</td>
195
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
196
+ <td class="context-item-desc"></td>
197
+ </tr>
198
+ <tr class="top-aligned-row context-row">
199
+ <td class="context-item-name">timeout</td>
200
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
201
+ <td class="context-item-desc"></td>
202
+ </tr>
203
+ </table>
204
+ </div>
205
+ </div>
206
+
207
+
208
+
209
+ <!-- if method_list -->
210
+ <div id="methods">
211
+ <h3 class="section-bar">Public Class methods</h3>
212
+
213
+ <div id="method-M000270" class="method-detail">
214
+ <a name="M000270"></a>
215
+
216
+ <div class="method-heading">
217
+ <a href="#M000270" class="method-signature">
218
+ <span class="method-name">add_before_execution_proc</span><span class="method-args">(&amp;proc)</span>
219
+ </a>
220
+ </div>
221
+
222
+ <div class="method-description">
223
+ <p>
224
+ Add a Proc to be called before each request in executed. The proc
225
+ parameters will be the http request and the request params.
226
+ </p>
227
+ <p><a class="source-toggle" href="#"
228
+ onclick="toggleCode('M000270-source');return false;">[Source]</a></p>
229
+ <div class="method-source-code" id="M000270-source">
230
+ <pre>
231
+ <span class="ruby-comment cmt"># File lib/rest-client-1.6.3/lib/restclient.rb, line 161</span>
232
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">add_before_execution_proc</span> <span class="ruby-operator">&amp;</span><span class="ruby-identifier">proc</span>
233
+ <span class="ruby-ivar">@@before_execution_procs</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">proc</span>
234
+ <span class="ruby-keyword kw">end</span>
235
+ </pre>
236
+ </div>
237
+ </div>
238
+ </div>
239
+
240
+ <div id="method-M000266" class="method-detail">
241
+ <a name="M000266"></a>
242
+
243
+ <div class="method-heading">
244
+ <a href="#M000266" class="method-signature">
245
+ <span class="method-name">create_log</span><span class="method-args">(param)</span>
246
+ </a>
247
+ </div>
248
+
249
+ <div class="method-description">
250
+ <p>
251
+ Create a log that respond to &lt;&lt; like a logger param can be
252
+ &#8216;stdout&#8217;, &#8216;stderr&#8217;, a string (then we will log to
253
+ that file) or a logger (then we return it)
254
+ </p>
255
+ <p><a class="source-toggle" href="#"
256
+ onclick="toggleCode('M000266-source');return false;">[Source]</a></p>
257
+ <div class="method-source-code" id="M000266-source">
258
+ <pre>
259
+ <span class="ruby-comment cmt"># File lib/rest-client-1.6.3/lib/restclient.rb, line 114</span>
260
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">create_log</span> <span class="ruby-identifier">param</span>
261
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">param</span>
262
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">param</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">String</span>
263
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">param</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'stdout'</span>
264
+ <span class="ruby-identifier">stdout_logger</span> = <span class="ruby-constant">Class</span>.<span class="ruby-identifier">new</span> <span class="ruby-keyword kw">do</span>
265
+ <span class="ruby-keyword kw">def</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">obj</span>
266
+ <span class="ruby-constant">STDOUT</span>.<span class="ruby-identifier">puts</span> <span class="ruby-identifier">obj</span>
267
+ <span class="ruby-keyword kw">end</span>
268
+ <span class="ruby-keyword kw">end</span>
269
+ <span class="ruby-identifier">stdout_logger</span>.<span class="ruby-identifier">new</span>
270
+ <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">param</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'stderr'</span>
271
+ <span class="ruby-identifier">stderr_logger</span> = <span class="ruby-constant">Class</span>.<span class="ruby-identifier">new</span> <span class="ruby-keyword kw">do</span>
272
+ <span class="ruby-keyword kw">def</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">obj</span>
273
+ <span class="ruby-constant">STDERR</span>.<span class="ruby-identifier">puts</span> <span class="ruby-identifier">obj</span>
274
+ <span class="ruby-keyword kw">end</span>
275
+ <span class="ruby-keyword kw">end</span>
276
+ <span class="ruby-identifier">stderr_logger</span>.<span class="ruby-identifier">new</span>
277
+ <span class="ruby-keyword kw">else</span>
278
+ <span class="ruby-identifier">file_logger</span> = <span class="ruby-constant">Class</span>.<span class="ruby-identifier">new</span> <span class="ruby-keyword kw">do</span>
279
+ <span class="ruby-identifier">attr_writer</span> <span class="ruby-identifier">:target_file</span>
280
+
281
+ <span class="ruby-keyword kw">def</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">obj</span>
282
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-ivar">@target_file</span>, <span class="ruby-value str">'a'</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">puts</span> <span class="ruby-identifier">obj</span> }
283
+ <span class="ruby-keyword kw">end</span>
284
+ <span class="ruby-keyword kw">end</span>
285
+ <span class="ruby-identifier">logger</span> = <span class="ruby-identifier">file_logger</span>.<span class="ruby-identifier">new</span>
286
+ <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">target_file</span> = <span class="ruby-identifier">param</span>
287
+ <span class="ruby-identifier">logger</span>
288
+ <span class="ruby-keyword kw">end</span>
289
+ <span class="ruby-keyword kw">else</span>
290
+ <span class="ruby-identifier">param</span>
291
+ <span class="ruby-keyword kw">end</span>
292
+ <span class="ruby-keyword kw">end</span>
293
+ <span class="ruby-keyword kw">end</span>
294
+ </pre>
295
+ </div>
296
+ </div>
297
+ </div>
298
+
299
+ <div id="method-M000261" class="method-detail">
300
+ <a name="M000261"></a>
301
+
302
+ <div class="method-heading">
303
+ <a href="#M000261" class="method-signature">
304
+ <span class="method-name">delete</span><span class="method-args">(url, headers={}, &amp;block)</span>
305
+ </a>
306
+ </div>
307
+
308
+ <div class="method-description">
309
+ <p><a class="source-toggle" href="#"
310
+ onclick="toggleCode('M000261-source');return false;">[Source]</a></p>
311
+ <div class="method-source-code" id="M000261-source">
312
+ <pre>
313
+ <span class="ruby-comment cmt"># File lib/rest-client-1.6.3/lib/restclient.rb, line 83</span>
314
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">url</span>, <span class="ruby-identifier">headers</span>={}, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
315
+ <span class="ruby-constant">Request</span>.<span class="ruby-identifier">execute</span>(<span class="ruby-identifier">:method</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:delete</span>, <span class="ruby-identifier">:url</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">url</span>, <span class="ruby-identifier">:headers</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">headers</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
316
+ <span class="ruby-keyword kw">end</span>
317
+ </pre>
318
+ </div>
319
+ </div>
320
+ </div>
321
+
322
+ <div id="method-M000276" class="method-detail">
323
+ <a name="M000276"></a>
324
+
325
+ <div class="method-heading">
326
+ <a href="#M000276" class="method-signature">
327
+ <span class="method-name">delete</span><span class="method-args">(url, headers={}, &amp;block)</span>
328
+ </a>
329
+ </div>
330
+
331
+ <div class="method-description">
332
+ <p><a class="source-toggle" href="#"
333
+ onclick="toggleCode('M000276-source');return false;">[Source]</a></p>
334
+ <div class="method-source-code" id="M000276-source">
335
+ <pre>
336
+ <span class="ruby-comment cmt"># File lib/restclient_fix.rb, line 36</span>
337
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">url</span>, <span class="ruby-identifier">headers</span>={}, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
338
+ <span class="ruby-constant">Request</span>.<span class="ruby-identifier">execute</span>(<span class="ruby-identifier">:method</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:delete</span>, <span class="ruby-identifier">:url</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">url</span>, <span class="ruby-identifier">:headers</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">headers</span>, <span class="ruby-identifier">:timeout</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-ivar">@timeout</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
339
+ <span class="ruby-keyword kw">end</span>
340
+ </pre>
341
+ </div>
342
+ </div>
343
+ </div>
344
+
345
+ <div id="method-M000257" class="method-detail">
346
+ <a name="M000257"></a>
347
+
348
+ <div class="method-heading">
349
+ <a href="#M000257" class="method-signature">
350
+ <span class="method-name">get</span><span class="method-args">(url, headers={}, &amp;block)</span>
351
+ </a>
352
+ </div>
353
+
354
+ <div class="method-description">
355
+ <p><a class="source-toggle" href="#"
356
+ onclick="toggleCode('M000257-source');return false;">[Source]</a></p>
357
+ <div class="method-source-code" id="M000257-source">
358
+ <pre>
359
+ <span class="ruby-comment cmt"># File lib/rest-client-1.6.3/lib/restclient.rb, line 67</span>
360
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">url</span>, <span class="ruby-identifier">headers</span>={}, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
361
+ <span class="ruby-constant">Request</span>.<span class="ruby-identifier">execute</span>(<span class="ruby-identifier">:method</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:get</span>, <span class="ruby-identifier">:url</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">url</span>, <span class="ruby-identifier">:headers</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">headers</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
362
+ <span class="ruby-keyword kw">end</span>
363
+ </pre>
364
+ </div>
365
+ </div>
366
+ </div>
367
+
368
+ <div id="method-M000272" class="method-detail">
369
+ <a name="M000272"></a>
370
+
371
+ <div class="method-heading">
372
+ <a href="#M000272" class="method-signature">
373
+ <span class="method-name">get</span><span class="method-args">(url, headers={}, &amp;block)</span>
374
+ </a>
375
+ </div>
376
+
377
+ <div class="method-description">
378
+ <p><a class="source-toggle" href="#"
379
+ onclick="toggleCode('M000272-source');return false;">[Source]</a></p>
380
+ <div class="method-source-code" id="M000272-source">
381
+ <pre>
382
+ <span class="ruby-comment cmt"># File lib/restclient_fix.rb, line 20</span>
383
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">url</span>, <span class="ruby-identifier">headers</span>={}, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
384
+ <span class="ruby-constant">Request</span>.<span class="ruby-identifier">execute</span>(<span class="ruby-identifier">:method</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:get</span>, <span class="ruby-identifier">:url</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">url</span>, <span class="ruby-identifier">:headers</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">headers</span>, <span class="ruby-identifier">:timeout</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-ivar">@timeout</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
385
+ <span class="ruby-keyword kw">end</span>
386
+ </pre>
387
+ </div>
388
+ </div>
389
+ </div>
390
+
391
+ <div id="method-M000262" class="method-detail">
392
+ <a name="M000262"></a>
393
+
394
+ <div class="method-heading">
395
+ <a href="#M000262" class="method-signature">
396
+ <span class="method-name">head</span><span class="method-args">(url, headers={}, &amp;block)</span>
397
+ </a>
398
+ </div>
399
+
400
+ <div class="method-description">
401
+ <p><a class="source-toggle" href="#"
402
+ onclick="toggleCode('M000262-source');return false;">[Source]</a></p>
403
+ <div class="method-source-code" id="M000262-source">
404
+ <pre>
405
+ <span class="ruby-comment cmt"># File lib/rest-client-1.6.3/lib/restclient.rb, line 87</span>
406
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">head</span>(<span class="ruby-identifier">url</span>, <span class="ruby-identifier">headers</span>={}, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
407
+ <span class="ruby-constant">Request</span>.<span class="ruby-identifier">execute</span>(<span class="ruby-identifier">:method</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:head</span>, <span class="ruby-identifier">:url</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">url</span>, <span class="ruby-identifier">:headers</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">headers</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
408
+ <span class="ruby-keyword kw">end</span>
409
+ </pre>
410
+ </div>
411
+ </div>
412
+ </div>
413
+
414
+ <div id="method-M000264" class="method-detail">
415
+ <a name="M000264"></a>
416
+
417
+ <div class="method-heading">
418
+ <a href="#M000264" class="method-signature">
419
+ <span class="method-name">log=</span><span class="method-args">(log)</span>
420
+ </a>
421
+ </div>
422
+
423
+ <div class="method-description">
424
+ <p>
425
+ Setup the log for <a href="RestClient.html">RestClient</a> calls. Value
426
+ should be a logger but can can be stdout, stderr, or a filename. You can
427
+ also configure logging by the environment variable RESTCLIENT_LOG.
428
+ </p>
429
+ <p><a class="source-toggle" href="#"
430
+ onclick="toggleCode('M000264-source');return false;">[Source]</a></p>
431
+ <div class="method-source-code" id="M000264-source">
432
+ <pre>
433
+ <span class="ruby-comment cmt"># File lib/rest-client-1.6.3/lib/restclient.rb, line 102</span>
434
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">log=</span> <span class="ruby-identifier">log</span>
435
+ <span class="ruby-ivar">@@log</span> = <span class="ruby-identifier">create_log</span> <span class="ruby-identifier">log</span>
436
+ <span class="ruby-keyword kw">end</span>
437
+ </pre>
438
+ </div>
439
+ </div>
440
+ </div>
441
+
442
+ <div id="method-M000263" class="method-detail">
443
+ <a name="M000263"></a>
444
+
445
+ <div class="method-heading">
446
+ <a href="#M000263" class="method-signature">
447
+ <span class="method-name">options</span><span class="method-args">(url, headers={}, &amp;block)</span>
448
+ </a>
449
+ </div>
450
+
451
+ <div class="method-description">
452
+ <p><a class="source-toggle" href="#"
453
+ onclick="toggleCode('M000263-source');return false;">[Source]</a></p>
454
+ <div class="method-source-code" id="M000263-source">
455
+ <pre>
456
+ <span class="ruby-comment cmt"># File lib/rest-client-1.6.3/lib/restclient.rb, line 91</span>
457
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">options</span>(<span class="ruby-identifier">url</span>, <span class="ruby-identifier">headers</span>={}, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
458
+ <span class="ruby-constant">Request</span>.<span class="ruby-identifier">execute</span>(<span class="ruby-identifier">:method</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:options</span>, <span class="ruby-identifier">:url</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">url</span>, <span class="ruby-identifier">:headers</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">headers</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
459
+ <span class="ruby-keyword kw">end</span>
460
+ </pre>
461
+ </div>
462
+ </div>
463
+ </div>
464
+
465
+ <div id="method-M000259" class="method-detail">
466
+ <a name="M000259"></a>
467
+
468
+ <div class="method-heading">
469
+ <a href="#M000259" class="method-signature">
470
+ <span class="method-name">patch</span><span class="method-args">(url, payload, headers={}, &amp;block)</span>
471
+ </a>
472
+ </div>
473
+
474
+ <div class="method-description">
475
+ <p><a class="source-toggle" href="#"
476
+ onclick="toggleCode('M000259-source');return false;">[Source]</a></p>
477
+ <div class="method-source-code" id="M000259-source">
478
+ <pre>
479
+ <span class="ruby-comment cmt"># File lib/rest-client-1.6.3/lib/restclient.rb, line 75</span>
480
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">patch</span>(<span class="ruby-identifier">url</span>, <span class="ruby-identifier">payload</span>, <span class="ruby-identifier">headers</span>={}, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
481
+ <span class="ruby-constant">Request</span>.<span class="ruby-identifier">execute</span>(<span class="ruby-identifier">:method</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:patch</span>, <span class="ruby-identifier">:url</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">url</span>, <span class="ruby-identifier">:payload</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">payload</span>, <span class="ruby-identifier">:headers</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">headers</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
482
+ <span class="ruby-keyword kw">end</span>
483
+ </pre>
484
+ </div>
485
+ </div>
486
+ </div>
487
+
488
+ <div id="method-M000274" class="method-detail">
489
+ <a name="M000274"></a>
490
+
491
+ <div class="method-heading">
492
+ <a href="#M000274" class="method-signature">
493
+ <span class="method-name">patch</span><span class="method-args">(url, payload, headers={}, &amp;block)</span>
494
+ </a>
495
+ </div>
496
+
497
+ <div class="method-description">
498
+ <p><a class="source-toggle" href="#"
499
+ onclick="toggleCode('M000274-source');return false;">[Source]</a></p>
500
+ <div class="method-source-code" id="M000274-source">
501
+ <pre>
502
+ <span class="ruby-comment cmt"># File lib/restclient_fix.rb, line 28</span>
503
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">patch</span>(<span class="ruby-identifier">url</span>, <span class="ruby-identifier">payload</span>, <span class="ruby-identifier">headers</span>={}, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
504
+ <span class="ruby-constant">Request</span>.<span class="ruby-identifier">execute</span>(<span class="ruby-identifier">:method</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:patch</span>, <span class="ruby-identifier">:url</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">url</span>, <span class="ruby-identifier">:payload</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">payload</span>, <span class="ruby-identifier">:headers</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">headers</span>, <span class="ruby-identifier">:timeout</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-ivar">@timeout</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
505
+ <span class="ruby-keyword kw">end</span>
506
+ </pre>
507
+ </div>
508
+ </div>
509
+ </div>
510
+
511
+ <div id="method-M000258" class="method-detail">
512
+ <a name="M000258"></a>
513
+
514
+ <div class="method-heading">
515
+ <a href="#M000258" class="method-signature">
516
+ <span class="method-name">post</span><span class="method-args">(url, payload, headers={}, &amp;block)</span>
517
+ </a>
518
+ </div>
519
+
520
+ <div class="method-description">
521
+ <p><a class="source-toggle" href="#"
522
+ onclick="toggleCode('M000258-source');return false;">[Source]</a></p>
523
+ <div class="method-source-code" id="M000258-source">
524
+ <pre>
525
+ <span class="ruby-comment cmt"># File lib/rest-client-1.6.3/lib/restclient.rb, line 71</span>
526
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">post</span>(<span class="ruby-identifier">url</span>, <span class="ruby-identifier">payload</span>, <span class="ruby-identifier">headers</span>={}, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
527
+ <span class="ruby-constant">Request</span>.<span class="ruby-identifier">execute</span>(<span class="ruby-identifier">:method</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:post</span>, <span class="ruby-identifier">:url</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">url</span>, <span class="ruby-identifier">:payload</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">payload</span>, <span class="ruby-identifier">:headers</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">headers</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
528
+ <span class="ruby-keyword kw">end</span>
529
+ </pre>
530
+ </div>
531
+ </div>
532
+ </div>
533
+
534
+ <div id="method-M000273" class="method-detail">
535
+ <a name="M000273"></a>
536
+
537
+ <div class="method-heading">
538
+ <a href="#M000273" class="method-signature">
539
+ <span class="method-name">post</span><span class="method-args">(url, payload, headers={}, &amp;block)</span>
540
+ </a>
541
+ </div>
542
+
543
+ <div class="method-description">
544
+ <p><a class="source-toggle" href="#"
545
+ onclick="toggleCode('M000273-source');return false;">[Source]</a></p>
546
+ <div class="method-source-code" id="M000273-source">
547
+ <pre>
548
+ <span class="ruby-comment cmt"># File lib/restclient_fix.rb, line 24</span>
549
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">post</span>(<span class="ruby-identifier">url</span>, <span class="ruby-identifier">payload</span>, <span class="ruby-identifier">headers</span>={}, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
550
+ <span class="ruby-constant">Request</span>.<span class="ruby-identifier">execute</span>(<span class="ruby-identifier">:method</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:post</span>, <span class="ruby-identifier">:url</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">url</span>, <span class="ruby-identifier">:payload</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">payload</span>, <span class="ruby-identifier">:headers</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">headers</span>, <span class="ruby-identifier">:timeout</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-ivar">@timeout</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
551
+ <span class="ruby-keyword kw">end</span>
552
+ </pre>
553
+ </div>
554
+ </div>
555
+ </div>
556
+
557
+ <div id="method-M000275" class="method-detail">
558
+ <a name="M000275"></a>
559
+
560
+ <div class="method-heading">
561
+ <a href="#M000275" class="method-signature">
562
+ <span class="method-name">put</span><span class="method-args">(url, payload, headers={}, &amp;block)</span>
563
+ </a>
564
+ </div>
565
+
566
+ <div class="method-description">
567
+ <p><a class="source-toggle" href="#"
568
+ onclick="toggleCode('M000275-source');return false;">[Source]</a></p>
569
+ <div class="method-source-code" id="M000275-source">
570
+ <pre>
571
+ <span class="ruby-comment cmt"># File lib/restclient_fix.rb, line 32</span>
572
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">put</span>(<span class="ruby-identifier">url</span>, <span class="ruby-identifier">payload</span>, <span class="ruby-identifier">headers</span>={}, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
573
+ <span class="ruby-constant">Request</span>.<span class="ruby-identifier">execute</span>(<span class="ruby-identifier">:method</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:put</span>, <span class="ruby-identifier">:url</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">url</span>, <span class="ruby-identifier">:payload</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">payload</span>, <span class="ruby-identifier">:headers</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">headers</span>, <span class="ruby-identifier">:timeout</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-ivar">@timeout</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
574
+ <span class="ruby-keyword kw">end</span>
575
+ </pre>
576
+ </div>
577
+ </div>
578
+ </div>
579
+
580
+ <div id="method-M000260" class="method-detail">
581
+ <a name="M000260"></a>
582
+
583
+ <div class="method-heading">
584
+ <a href="#M000260" class="method-signature">
585
+ <span class="method-name">put</span><span class="method-args">(url, payload, headers={}, &amp;block)</span>
586
+ </a>
587
+ </div>
588
+
589
+ <div class="method-description">
590
+ <p><a class="source-toggle" href="#"
591
+ onclick="toggleCode('M000260-source');return false;">[Source]</a></p>
592
+ <div class="method-source-code" id="M000260-source">
593
+ <pre>
594
+ <span class="ruby-comment cmt"># File lib/rest-client-1.6.3/lib/restclient.rb, line 79</span>
595
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">put</span>(<span class="ruby-identifier">url</span>, <span class="ruby-identifier">payload</span>, <span class="ruby-identifier">headers</span>={}, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
596
+ <span class="ruby-constant">Request</span>.<span class="ruby-identifier">execute</span>(<span class="ruby-identifier">:method</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:put</span>, <span class="ruby-identifier">:url</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">url</span>, <span class="ruby-identifier">:payload</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">payload</span>, <span class="ruby-identifier">:headers</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">headers</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
597
+ <span class="ruby-keyword kw">end</span>
598
+ </pre>
599
+ </div>
600
+ </div>
601
+ </div>
602
+
603
+ <div id="method-M000271" class="method-detail">
604
+ <a name="M000271"></a>
605
+
606
+ <div class="method-heading">
607
+ <a href="#M000271" class="method-signature">
608
+ <span class="method-name">reset_before_execution_procs</span><span class="method-args">()</span>
609
+ </a>
610
+ </div>
611
+
612
+ <div class="method-description">
613
+ <p>
614
+ Reset the procs to be called before each request is executed.
615
+ </p>
616
+ <p><a class="source-toggle" href="#"
617
+ onclick="toggleCode('M000271-source');return false;">[Source]</a></p>
618
+ <div class="method-source-code" id="M000271-source">
619
+ <pre>
620
+ <span class="ruby-comment cmt"># File lib/rest-client-1.6.3/lib/restclient.rb, line 166</span>
621
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">reset_before_execution_procs</span>
622
+ <span class="ruby-ivar">@@before_execution_procs</span> = []
623
+ <span class="ruby-keyword kw">end</span>
624
+ </pre>
625
+ </div>
626
+ </div>
627
+ </div>
628
+
629
+ <div id="method-M000265" class="method-detail">
630
+ <a name="M000265"></a>
631
+
632
+ <div class="method-heading">
633
+ <a href="#M000265" class="method-signature">
634
+ <span class="method-name">version</span><span class="method-args">()</span>
635
+ </a>
636
+ </div>
637
+
638
+ <div class="method-description">
639
+ <p><a class="source-toggle" href="#"
640
+ onclick="toggleCode('M000265-source');return false;">[Source]</a></p>
641
+ <div class="method-source-code" id="M000265-source">
642
+ <pre>
643
+ <span class="ruby-comment cmt"># File lib/rest-client-1.6.3/lib/restclient.rb, line 106</span>
644
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">version</span>
645
+ <span class="ruby-identifier">version_path</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-keyword kw">__FILE__</span>) <span class="ruby-operator">+</span> <span class="ruby-value str">&quot;/../VERSION&quot;</span>
646
+ <span class="ruby-keyword kw">return</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">version_path</span>).<span class="ruby-identifier">chomp</span> <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">file?</span>(<span class="ruby-identifier">version_path</span>)
647
+ <span class="ruby-value str">&quot;0.0.0&quot;</span>
648
+ <span class="ruby-keyword kw">end</span>
649
+ </pre>
650
+ </div>
651
+ </div>
652
+ </div>
653
+
654
+ <h3 class="section-bar">Public Instance methods</h3>
655
+
656
+ <div id="method-M000267" class="method-detail">
657
+ <a name="M000267"></a>
658
+
659
+ <div class="method-heading">
660
+ <a href="#M000267" class="method-signature">
661
+ <span class="method-name">&lt;&lt;</span><span class="method-args">(obj)</span>
662
+ </a>
663
+ </div>
664
+
665
+ <div class="method-description">
666
+ <p><a class="source-toggle" href="#"
667
+ onclick="toggleCode('M000267-source');return false;">[Source]</a></p>
668
+ <div class="method-source-code" id="M000267-source">
669
+ <pre>
670
+ <span class="ruby-comment cmt"># File lib/rest-client-1.6.3/lib/restclient.rb, line 119</span>
671
+ <span class="ruby-keyword kw">def</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">obj</span>
672
+ <span class="ruby-constant">STDOUT</span>.<span class="ruby-identifier">puts</span> <span class="ruby-identifier">obj</span>
673
+ <span class="ruby-keyword kw">end</span>
674
+ </pre>
675
+ </div>
676
+ </div>
677
+ </div>
678
+
679
+ <div id="method-M000269" class="method-detail">
680
+ <a name="M000269"></a>
681
+
682
+ <div class="method-heading">
683
+ <a href="#M000269" class="method-signature">
684
+ <span class="method-name">&lt;&lt;</span><span class="method-args">(obj)</span>
685
+ </a>
686
+ </div>
687
+
688
+ <div class="method-description">
689
+ <p><a class="source-toggle" href="#"
690
+ onclick="toggleCode('M000269-source');return false;">[Source]</a></p>
691
+ <div class="method-source-code" id="M000269-source">
692
+ <pre>
693
+ <span class="ruby-comment cmt"># File lib/rest-client-1.6.3/lib/restclient.rb, line 135</span>
694
+ <span class="ruby-keyword kw">def</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">obj</span>
695
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-ivar">@target_file</span>, <span class="ruby-value str">'a'</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">puts</span> <span class="ruby-identifier">obj</span> }
696
+ <span class="ruby-keyword kw">end</span>
697
+ </pre>
698
+ </div>
699
+ </div>
700
+ </div>
701
+
702
+ <div id="method-M000268" class="method-detail">
703
+ <a name="M000268"></a>
704
+
705
+ <div class="method-heading">
706
+ <a href="#M000268" class="method-signature">
707
+ <span class="method-name">&lt;&lt;</span><span class="method-args">(obj)</span>
708
+ </a>
709
+ </div>
710
+
711
+ <div class="method-description">
712
+ <p><a class="source-toggle" href="#"
713
+ onclick="toggleCode('M000268-source');return false;">[Source]</a></p>
714
+ <div class="method-source-code" id="M000268-source">
715
+ <pre>
716
+ <span class="ruby-comment cmt"># File lib/rest-client-1.6.3/lib/restclient.rb, line 126</span>
717
+ <span class="ruby-keyword kw">def</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">obj</span>
718
+ <span class="ruby-constant">STDERR</span>.<span class="ruby-identifier">puts</span> <span class="ruby-identifier">obj</span>
719
+ <span class="ruby-keyword kw">end</span>
720
+ </pre>
721
+ </div>
722
+ </div>
723
+ </div>
724
+
725
+
726
+ </div>
727
+
728
+
729
+ </div>
730
+
731
+
732
+ <div id="validator-badges">
733
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
734
+ </div>
735
+
736
+ </body>
737
+ </html>