mu 5.7.8 → 5.7.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (198) hide show
  1. data/lib/mu.rb +1 -1
  2. data/lib/mu/command.rb +18 -2
  3. data/lib/mu/command/cmd_musl.rb +165 -0
  4. data/lib/mu/command/cmd_runscale.rb +12 -8
  5. data/lib/mu/command/help.rb +1 -0
  6. data/lib/mu/har.rb +449 -0
  7. data/lib/mu/libxml.rb +21 -0
  8. data/lib/mu/maker.rb +288 -0
  9. data/lib/mu/xmlizable.rb +559 -0
  10. metadata +78 -267
  11. data/rdoc/Gemfile.html +0 -194
  12. data/rdoc/LICENSE_txt.html +0 -201
  13. data/rdoc/Mu.html +0 -478
  14. data/rdoc/Mu/Client.html +0 -461
  15. data/rdoc/Mu/Command.html +0 -338
  16. data/rdoc/Mu/Command/API.html +0 -844
  17. data/rdoc/Mu/Command/Cmd_appid.html +0 -1341
  18. data/rdoc/Mu/Command/Cmd_cli.html +0 -800
  19. data/rdoc/Mu/Command/Cmd_ddt.html +0 -1612
  20. data/rdoc/Mu/Command/Cmd_homepage.html +0 -762
  21. data/rdoc/Mu/Command/Cmd_muapi.html +0 -1363
  22. data/rdoc/Mu/Command/Cmd_netconfig.html +0 -1077
  23. data/rdoc/Mu/Command/Cmd_runscale.html +0 -1441
  24. data/rdoc/Mu/Command/Cmd_runscenario.html +0 -787
  25. data/rdoc/Mu/Command/Cmd_runverify.html +0 -893
  26. data/rdoc/Mu/Command/Cmd_scale.html +0 -1323
  27. data/rdoc/Mu/Command/Cmd_system.html +0 -677
  28. data/rdoc/Mu/Command/Curl.html +0 -751
  29. data/rdoc/Mu/Command/Help.html +0 -305
  30. data/rdoc/Mu/Curl.html +0 -243
  31. data/rdoc/Mu/Curl/Error.html +0 -304
  32. data/rdoc/Mu/Curl/Error/Authorize.html +0 -355
  33. data/rdoc/Mu/Curl/Error/Connect.html +0 -286
  34. data/rdoc/Mu/Curl/Error/DNS.html +0 -236
  35. data/rdoc/Mu/Curl/Error/Region.html +0 -307
  36. data/rdoc/Mu/Curl/Error/Status.html +0 -286
  37. data/rdoc/Mu/Curl/Error/Timeout.html +0 -286
  38. data/rdoc/Mu/Curl/Verify.html +0 -472
  39. data/rdoc/Mu/Curl/Verify/Request.html +0 -424
  40. data/rdoc/Mu/Curl/Verify/Response.html +0 -372
  41. data/rdoc/Mu/Curl/Verify/Result.html +0 -373
  42. data/rdoc/Mu/Ddt.html +0 -1347
  43. data/rdoc/Mu/Helper.html +0 -517
  44. data/rdoc/Mu/Homepage.html +0 -719
  45. data/rdoc/Mu/HttpHelper.html +0 -890
  46. data/rdoc/Mu/Muapi.html +0 -1226
  47. data/rdoc/Mu/Netconfig.html +0 -1178
  48. data/rdoc/Mu/Scale.html +0 -1359
  49. data/rdoc/Mu/System.html +0 -504
  50. data/rdoc/Object.html +0 -285
  51. data/rdoc/README_rdoc.html +0 -892
  52. data/rdoc/Rakefile.html +0 -257
  53. data/rdoc/TCTestMu.html +0 -2583
  54. data/rdoc/Test.html +0 -235
  55. data/rdoc/Test/Unit.html +0 -235
  56. data/rdoc/Test/Unit/TestCase.html +0 -236
  57. data/rdoc/Test/helper_rb.html +0 -62
  58. data/rdoc/Test/tc_test_mu_rb.html +0 -60
  59. data/rdoc/VERSION.html +0 -179
  60. data/rdoc/bin/mu.html +0 -54
  61. data/rdoc/classes/Mu.html +0 -132
  62. data/rdoc/classes/Mu/Client.html +0 -214
  63. data/rdoc/classes/Mu/Command.html +0 -129
  64. data/rdoc/classes/Mu/Command/API.html +0 -362
  65. data/rdoc/classes/Mu/Command/Cmd_appid.html +0 -238
  66. data/rdoc/classes/Mu/Command/Cmd_cli.html +0 -273
  67. data/rdoc/classes/Mu/Command/Cmd_ddt.html +0 -639
  68. data/rdoc/classes/Mu/Command/Cmd_homepage.html +0 -276
  69. data/rdoc/classes/Mu/Command/Cmd_muapi.html +0 -527
  70. data/rdoc/classes/Mu/Command/Cmd_netconfig.html +0 -399
  71. data/rdoc/classes/Mu/Command/Cmd_runscale.html +0 -220
  72. data/rdoc/classes/Mu/Command/Cmd_runscenario.html +0 -197
  73. data/rdoc/classes/Mu/Command/Cmd_runverify.html +0 -196
  74. data/rdoc/classes/Mu/Command/Cmd_scale.html +0 -511
  75. data/rdoc/classes/Mu/Command/Cmd_system.html +0 -236
  76. data/rdoc/classes/Mu/Command/Curl.html +0 -182
  77. data/rdoc/classes/Mu/Command/Help.html +0 -137
  78. data/rdoc/classes/Mu/Curl.html +0 -116
  79. data/rdoc/classes/Mu/Curl/Error.html +0 -148
  80. data/rdoc/classes/Mu/Curl/Error/Authorize.html +0 -165
  81. data/rdoc/classes/Mu/Curl/Error/Connect.html +0 -139
  82. data/rdoc/classes/Mu/Curl/Error/DNS.html +0 -113
  83. data/rdoc/classes/Mu/Curl/Error/Region.html +0 -150
  84. data/rdoc/classes/Mu/Curl/Error/Status.html +0 -139
  85. data/rdoc/classes/Mu/Curl/Error/Timeout.html +0 -139
  86. data/rdoc/classes/Mu/Curl/Verify.html +0 -207
  87. data/rdoc/classes/Mu/Curl/Verify/Request.html +0 -187
  88. data/rdoc/classes/Mu/Curl/Verify/Response.html +0 -172
  89. data/rdoc/classes/Mu/Curl/Verify/Result.html +0 -172
  90. data/rdoc/classes/Mu/Ddt.html +0 -610
  91. data/rdoc/classes/Mu/Helper.html +0 -308
  92. data/rdoc/classes/Mu/Homepage.html +0 -306
  93. data/rdoc/classes/Mu/HttpHelper.html +0 -393
  94. data/rdoc/classes/Mu/Muapi.html +0 -549
  95. data/rdoc/classes/Mu/Netconfig.html +0 -478
  96. data/rdoc/classes/Mu/Scale.html +0 -580
  97. data/rdoc/classes/Mu/System.html +0 -232
  98. data/rdoc/classes/Object.html +0 -139
  99. data/rdoc/classes/TCTestMu.html +0 -948
  100. data/rdoc/classes/Test.html +0 -107
  101. data/rdoc/classes/Test/Unit.html +0 -107
  102. data/rdoc/classes/Test/Unit/TestCase.html +0 -113
  103. data/rdoc/created.rid +0 -36
  104. data/rdoc/files/lib/mu/api/ddt_rb.html +0 -101
  105. data/rdoc/files/lib/mu/api/homepage_rb.html +0 -101
  106. data/rdoc/files/lib/mu/api/muapi_rb.html +0 -101
  107. data/rdoc/files/lib/mu/api/netconfig_rb.html +0 -101
  108. data/rdoc/files/lib/mu/api/scale_rb.html +0 -101
  109. data/rdoc/files/lib/mu/api/system_rb.html +0 -101
  110. data/rdoc/files/lib/mu/client_rb.html +0 -101
  111. data/rdoc/files/lib/mu/command/api_rb.html +0 -101
  112. data/rdoc/files/lib/mu/command/cmd_appid_rb.html +0 -119
  113. data/rdoc/files/lib/mu/command/cmd_cli_rb.html +0 -108
  114. data/rdoc/files/lib/mu/command/cmd_ddt_rb.html +0 -116
  115. data/rdoc/files/lib/mu/command/cmd_homepage_rb.html +0 -115
  116. data/rdoc/files/lib/mu/command/cmd_muapi_rb.html +0 -115
  117. data/rdoc/files/lib/mu/command/cmd_netconfig_rb.html +0 -116
  118. data/rdoc/files/lib/mu/command/cmd_runscale_rb.html +0 -119
  119. data/rdoc/files/lib/mu/command/cmd_runscenario_rb.html +0 -115
  120. data/rdoc/files/lib/mu/command/cmd_runverify_rb.html +0 -118
  121. data/rdoc/files/lib/mu/command/cmd_scale_rb.html +0 -115
  122. data/rdoc/files/lib/mu/command/cmd_system_rb.html +0 -116
  123. data/rdoc/files/lib/mu/command/curl_rb.html +0 -101
  124. data/rdoc/files/lib/mu/command/help_rb.html +0 -101
  125. data/rdoc/files/lib/mu/command_rb.html +0 -107
  126. data/rdoc/files/lib/mu/curl/error_rb.html +0 -101
  127. data/rdoc/files/lib/mu/curl/verify_rb.html +0 -101
  128. data/rdoc/files/lib/mu/helper_rb.html +0 -101
  129. data/rdoc/files/lib/mu/http_helper_rb.html +0 -101
  130. data/rdoc/files/lib/mu_rb.html +0 -121
  131. data/rdoc/files/test/helper_rb.html +0 -112
  132. data/rdoc/files/test/tc_test_mu_rb.html +0 -111
  133. data/rdoc/fr_class_index.html +0 -34
  134. data/rdoc/fr_file_index.html +0 -31
  135. data/rdoc/fr_method_index.html +0 -112
  136. data/rdoc/images/brick.png +0 -0
  137. data/rdoc/images/brick_link.png +0 -0
  138. data/rdoc/images/bug.png +0 -0
  139. data/rdoc/images/bullet_black.png +0 -0
  140. data/rdoc/images/bullet_toggle_minus.png +0 -0
  141. data/rdoc/images/bullet_toggle_plus.png +0 -0
  142. data/rdoc/images/date.png +0 -0
  143. data/rdoc/images/find.png +0 -0
  144. data/rdoc/images/loadingAnimation.gif +0 -0
  145. data/rdoc/images/macFFBgHack.png +0 -0
  146. data/rdoc/images/package.png +0 -0
  147. data/rdoc/images/page_green.png +0 -0
  148. data/rdoc/images/page_white_text.png +0 -0
  149. data/rdoc/images/page_white_width.png +0 -0
  150. data/rdoc/images/plugin.png +0 -0
  151. data/rdoc/images/ruby.png +0 -0
  152. data/rdoc/images/tag_green.png +0 -0
  153. data/rdoc/images/wrench.png +0 -0
  154. data/rdoc/images/wrench_orange.png +0 -0
  155. data/rdoc/images/zoom.png +0 -0
  156. data/rdoc/index.html +0 -884
  157. data/rdoc/js/darkfish.js +0 -116
  158. data/rdoc/js/jquery.js +0 -32
  159. data/rdoc/js/quicksearch.js +0 -114
  160. data/rdoc/js/thickbox-compressed.js +0 -10
  161. data/rdoc/lib/mu/api/ddt_rb.html +0 -52
  162. data/rdoc/lib/mu/api/homepage_rb.html +0 -52
  163. data/rdoc/lib/mu/api/muapi_rb.html +0 -52
  164. data/rdoc/lib/mu/api/netconfig_rb.html +0 -52
  165. data/rdoc/lib/mu/api/scale_rb.html +0 -52
  166. data/rdoc/lib/mu/api/system_rb.html +0 -52
  167. data/rdoc/lib/mu/client_rb.html +0 -52
  168. data/rdoc/lib/mu/command/api_rb.html +0 -52
  169. data/rdoc/lib/mu/command/cmd_appid_rb.html +0 -62
  170. data/rdoc/lib/mu/command/cmd_cli_rb.html +0 -55
  171. data/rdoc/lib/mu/command/cmd_ddt_rb.html +0 -60
  172. data/rdoc/lib/mu/command/cmd_homepage_rb.html +0 -57
  173. data/rdoc/lib/mu/command/cmd_muapi_rb.html +0 -59
  174. data/rdoc/lib/mu/command/cmd_netconfig_rb.html +0 -58
  175. data/rdoc/lib/mu/command/cmd_runscale_rb.html +0 -62
  176. data/rdoc/lib/mu/command/cmd_runscenario_rb.html +0 -57
  177. data/rdoc/lib/mu/command/cmd_runverify_rb.html +0 -61
  178. data/rdoc/lib/mu/command/cmd_scale_rb.html +0 -58
  179. data/rdoc/lib/mu/command/cmd_system_rb.html +0 -59
  180. data/rdoc/lib/mu/command/curl_rb.html +0 -52
  181. data/rdoc/lib/mu/command/help_rb.html +0 -52
  182. data/rdoc/lib/mu/command_rb.html +0 -55
  183. data/rdoc/lib/mu/curl/error_rb.html +0 -52
  184. data/rdoc/lib/mu/curl/verify_rb.html +0 -52
  185. data/rdoc/lib/mu/helper_rb.html +0 -52
  186. data/rdoc/lib/mu/http_helper_rb.html +0 -52
  187. data/rdoc/lib/mu_rb.html +0 -80
  188. data/rdoc/rdoc-style.css +0 -208
  189. data/rdoc/rdoc.css +0 -706
  190. data/test/data/app_id_stats.csv +0 -1
  191. data/test/data/app_id_status.json +0 -156
  192. data/test/data/data_cgi.msl +0 -94
  193. data/test/data/data_cgi.xml +0 -322
  194. data/test/data/default_test.csv +0 -3
  195. data/test/data/ftp_with_channel.xml +0 -1643
  196. data/test/data/irc.xml +0 -3837
  197. data/test/data/scale.json +0 -25
  198. data/test/data/test_data_cgi_error.xml +0 -35
@@ -1,393 +0,0 @@
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: Mu::HttpHelper</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">Mu::HttpHelper</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../files/lib/mu/http_helper_rb.html">
59
- lib/mu/http_helper.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="../Object.html">
69
- Object
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="#M000077">delete</a>&nbsp;&nbsp;
92
- <a href="#M000079">download_file</a>&nbsp;&nbsp;
93
- <a href="#M000070">get</a>&nbsp;&nbsp;
94
- <a href="#M000071">get_json</a>&nbsp;&nbsp;
95
- <a href="#M000072">get_xml</a>&nbsp;&nbsp;
96
- <a href="#M000069">new</a>&nbsp;&nbsp;
97
- <a href="#M000073">post</a>&nbsp;&nbsp;
98
- <a href="#M000076">post_form</a>&nbsp;&nbsp;
99
- <a href="#M000074">post_json</a>&nbsp;&nbsp;
100
- <a href="#M000075">post_xml</a>&nbsp;&nbsp;
101
- <a href="#M000078">put_json</a>&nbsp;&nbsp;
102
- </div>
103
- </div>
104
-
105
- </div>
106
-
107
-
108
- <!-- if includes -->
109
- <div id="includes">
110
- <h3 class="section-bar">Included Modules</h3>
111
-
112
- <div id="includes-list">
113
- <span class="include-name">Helper</span>
114
- </div>
115
- </div>
116
-
117
- <div id="section">
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
- <!-- if method_list -->
127
- <div id="methods">
128
- <h3 class="section-bar">Public Class methods</h3>
129
-
130
- <div id="method-M000069" class="method-detail">
131
- <a name="M000069"></a>
132
-
133
- <div class="method-heading">
134
- <a href="HttpHelper.src/M000069.html" target="Code" class="method-signature"
135
- onclick="popupCode('HttpHelper.src/M000069.html');return false;">
136
- <span class="method-name">new</span><span class="method-args">(host, username, password, docroot)</span>
137
- </a>
138
- </div>
139
-
140
- <div class="method-description">
141
- </div>
142
- </div>
143
-
144
- <h3 class="section-bar">Public Instance methods</h3>
145
-
146
- <div id="method-M000077" class="method-detail">
147
- <a name="M000077"></a>
148
-
149
- <div class="method-heading">
150
- <a href="HttpHelper.src/M000077.html" target="Code" class="method-signature"
151
- onclick="popupCode('HttpHelper.src/M000077.html');return false;">
152
- <span class="method-name">delete</span><span class="method-args">(e)</span>
153
- </a>
154
- </div>
155
-
156
- <div class="method-description">
157
- <p>
158
- basic <a href="HttpHelper.html#M000077">delete</a> call
159
- </p>
160
- <pre>
161
- * e = the url suffix
162
- </pre>
163
- </div>
164
- </div>
165
-
166
- <div id="method-M000079" class="method-detail">
167
- <a name="M000079"></a>
168
-
169
- <div class="method-heading">
170
- <a href="HttpHelper.src/M000079.html" target="Code" class="method-signature"
171
- onclick="popupCode('HttpHelper.src/M000079.html');return false;">
172
- <span class="method-name">download_file</span><span class="method-args">(e, filename, p={})</span>
173
- </a>
174
- </div>
175
-
176
- <div class="method-description">
177
- <p>
178
- fetches a file and stores it locally
179
- </p>
180
- <pre>
181
- * e = the url suffix
182
- * filename = the name to store the file locally
183
- * p = hash of parameters, such as headers
184
- </pre>
185
- </div>
186
- </div>
187
-
188
- <div id="method-M000070" class="method-detail">
189
- <a name="M000070"></a>
190
-
191
- <div class="method-heading">
192
- <a href="HttpHelper.src/M000070.html" target="Code" class="method-signature"
193
- onclick="popupCode('HttpHelper.src/M000070.html');return false;">
194
- <span class="method-name">get</span><span class="method-args">(e, p={})</span>
195
- </a>
196
- </div>
197
-
198
- <div class="method-description">
199
- <p>
200
- basic <a href="HttpHelper.html#M000070">get</a> call
201
- </p>
202
- <pre>
203
- * e = the url suffix
204
- * p = hash of parameters, such as headers
205
- </pre>
206
- </div>
207
- </div>
208
-
209
- <div id="method-M000071" class="method-detail">
210
- <a name="M000071"></a>
211
-
212
- <div class="method-heading">
213
- <a href="HttpHelper.src/M000071.html" target="Code" class="method-signature"
214
- onclick="popupCode('HttpHelper.src/M000071.html');return false;">
215
- <span class="method-name">get_json</span><span class="method-args">(e, p={})</span>
216
- </a>
217
- </div>
218
-
219
- <div class="method-description">
220
- <p>
221
- <a href="HttpHelper.html#M000070">get</a> call for json, converts the
222
- response to json if applicable
223
- </p>
224
- <pre>
225
- * e = the url suffix
226
- * p = hash of parameters, such as headers
227
- </pre>
228
- </div>
229
- </div>
230
-
231
- <div id="method-M000072" class="method-detail">
232
- <a name="M000072"></a>
233
-
234
- <div class="method-heading">
235
- <a href="HttpHelper.src/M000072.html" target="Code" class="method-signature"
236
- onclick="popupCode('HttpHelper.src/M000072.html');return false;">
237
- <span class="method-name">get_xml</span><span class="method-args">(e, p={})</span>
238
- </a>
239
- </div>
240
-
241
- <div class="method-description">
242
- <p>
243
- <a href="HttpHelper.html#M000070">get</a> call for xml, converts the
244
- response to xml if applicable
245
- </p>
246
- <pre>
247
- * e = the url suffix
248
- * p = hash of parameters, such as headers
249
- </pre>
250
- </div>
251
- </div>
252
-
253
- <div id="method-M000073" class="method-detail">
254
- <a name="M000073"></a>
255
-
256
- <div class="method-heading">
257
- <a href="HttpHelper.src/M000073.html" target="Code" class="method-signature"
258
- onclick="popupCode('HttpHelper.src/M000073.html');return false;">
259
- <span class="method-name">post</span><span class="method-args">(e, body=&quot;&quot;, p = {})</span>
260
- </a>
261
- </div>
262
-
263
- <div class="method-description">
264
- <p>
265
- basic <a href="HttpHelper.html#M000073">post</a> call
266
- </p>
267
- <pre>
268
- * e = the url suffix
269
- * body = the data to post
270
- * p = hash of parameters, such as headers
271
- </pre>
272
- </div>
273
- </div>
274
-
275
- <div id="method-M000076" class="method-detail">
276
- <a name="M000076"></a>
277
-
278
- <div class="method-heading">
279
- <a href="HttpHelper.src/M000076.html" target="Code" class="method-signature"
280
- onclick="popupCode('HttpHelper.src/M000076.html');return false;">
281
- <span class="method-name">post_form</span><span class="method-args">(e, filepath, p = {})</span>
282
- </a>
283
- </div>
284
-
285
- <div class="method-description">
286
- <p>
287
- <a href="HttpHelper.html#M000073">post</a> call for uploading form data
288
- </p>
289
- <ul>
290
- <li>e = the url suffix
291
-
292
- </li>
293
- <li>filepath = the file to <a href="HttpHelper.html#M000073">post</a>
294
-
295
- </li>
296
- <li>p = hash of parameters, such as headers
297
-
298
- </li>
299
- </ul>
300
- </div>
301
- </div>
302
-
303
- <div id="method-M000074" class="method-detail">
304
- <a name="M000074"></a>
305
-
306
- <div class="method-heading">
307
- <a href="HttpHelper.src/M000074.html" target="Code" class="method-signature"
308
- onclick="popupCode('HttpHelper.src/M000074.html');return false;">
309
- <span class="method-name">post_json</span><span class="method-args">(e, json, p = {})</span>
310
- </a>
311
- </div>
312
-
313
- <div class="method-description">
314
- <p>
315
- <a href="HttpHelper.html#M000073">post</a> call for uploading json
316
- </p>
317
- <ul>
318
- <li>e = the url suffix
319
-
320
- </li>
321
- <li>body = the json object to <a href="HttpHelper.html#M000073">post</a>
322
-
323
- </li>
324
- <li>p = hash of parameters, such as headers
325
-
326
- </li>
327
- </ul>
328
- </div>
329
- </div>
330
-
331
- <div id="method-M000075" class="method-detail">
332
- <a name="M000075"></a>
333
-
334
- <div class="method-heading">
335
- <a href="HttpHelper.src/M000075.html" target="Code" class="method-signature"
336
- onclick="popupCode('HttpHelper.src/M000075.html');return false;">
337
- <span class="method-name">post_xml</span><span class="method-args">(e, doc, p = {})</span>
338
- </a>
339
- </div>
340
-
341
- <div class="method-description">
342
- <p>
343
- <a href="HttpHelper.html#M000073">post</a> call for uploading xml
344
- </p>
345
- <ul>
346
- <li>e = the url suffix
347
-
348
- </li>
349
- <li>body = the xml object to <a href="HttpHelper.html#M000073">post</a>
350
-
351
- </li>
352
- <li>p = hash of parameters, such as headers
353
-
354
- </li>
355
- </ul>
356
- </div>
357
- </div>
358
-
359
- <div id="method-M000078" class="method-detail">
360
- <a name="M000078"></a>
361
-
362
- <div class="method-heading">
363
- <a href="HttpHelper.src/M000078.html" target="Code" class="method-signature"
364
- onclick="popupCode('HttpHelper.src/M000078.html');return false;">
365
- <span class="method-name">put_json</span><span class="method-args">(e, json, p={})</span>
366
- </a>
367
- </div>
368
-
369
- <div class="method-description">
370
- <p>
371
- put call for json
372
- </p>
373
- <pre>
374
- * e = the url suffix
375
- * body = the json object to put
376
- * p = hash of parameters, such as headers
377
- </pre>
378
- </div>
379
- </div>
380
-
381
-
382
- </div>
383
-
384
-
385
- </div>
386
-
387
-
388
- <div id="validator-badges">
389
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
390
- </div>
391
-
392
- </body>
393
- </html>
@@ -1,549 +0,0 @@
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: Mu::Muapi</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">Mu::Muapi</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../files/lib/mu/api/muapi_rb.html">
59
- lib/mu/api/muapi.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="../Object.html">
69
- Object
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="#M000094">archive</a>&nbsp;&nbsp;
92
- <a href="#M000095">backup</a>&nbsp;&nbsp;
93
- <a href="#M000096">capture</a>&nbsp;&nbsp;
94
- <a href="#M000087">delete</a>&nbsp;&nbsp;
95
- <a href="#M000092">export_by_type_and_name</a>&nbsp;&nbsp;
96
- <a href="#M000093">export_by_uuid</a>&nbsp;&nbsp;
97
- <a href="#M000088">get_faults</a>&nbsp;&nbsp;
98
- <a href="#M000089">get_name</a>&nbsp;&nbsp;
99
- <a href="#M000090">list</a>&nbsp;&nbsp;
100
- <a href="#M000081">list_by_status</a>&nbsp;&nbsp;
101
- <a href="#M000080">new</a>&nbsp;&nbsp;
102
- <a href="#M000085">pause</a>&nbsp;&nbsp;
103
- <a href="#M000086">resume</a>&nbsp;&nbsp;
104
- <a href="#M000083">run</a>&nbsp;&nbsp;
105
- <a href="#M000082">status</a>&nbsp;&nbsp;
106
- <a href="#M000084">stop</a>&nbsp;&nbsp;
107
- <a href="#M000091">types</a>&nbsp;&nbsp;
108
- </div>
109
- </div>
110
-
111
- </div>
112
-
113
-
114
- <!-- if includes -->
115
- <div id="includes">
116
- <h3 class="section-bar">Included Modules</h3>
117
-
118
- <div id="includes-list">
119
- <span class="include-name">Helper</span>
120
- </div>
121
- </div>
122
-
123
- <div id="section">
124
-
125
-
126
-
127
-
128
-
129
- <div id="attribute-list">
130
- <h3 class="section-bar">Attributes</h3>
131
-
132
- <div class="name-list">
133
- <table>
134
- <tr class="top-aligned-row context-row">
135
- <td class="context-item-name">docroot</td>
136
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
137
- <td class="context-item-desc"></td>
138
- </tr>
139
- <tr class="top-aligned-row context-row">
140
- <td class="context-item-name">expected_error</td>
141
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
142
- <td class="context-item-desc"></td>
143
- </tr>
144
- <tr class="top-aligned-row context-row">
145
- <td class="context-item-name">host</td>
146
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
147
- <td class="context-item-desc"></td>
148
- </tr>
149
- <tr class="top-aligned-row context-row">
150
- <td class="context-item-name">job_id</td>
151
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
152
- <td class="context-item-desc"></td>
153
- </tr>
154
- <tr class="top-aligned-row context-row">
155
- <td class="context-item-name">params</td>
156
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
157
- <td class="context-item-desc"></td>
158
- </tr>
159
- <tr class="top-aligned-row context-row">
160
- <td class="context-item-name">password</td>
161
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
162
- <td class="context-item-desc"></td>
163
- </tr>
164
- <tr class="top-aligned-row context-row">
165
- <td class="context-item-name">posted_uuid</td>
166
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
167
- <td class="context-item-desc"></td>
168
- </tr>
169
- <tr class="top-aligned-row context-row">
170
- <td class="context-item-name">run_uuid</td>
171
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
172
- <td class="context-item-desc"></td>
173
- </tr>
174
- <tr class="top-aligned-row context-row">
175
- <td class="context-item-name">username</td>
176
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
177
- <td class="context-item-desc"></td>
178
- </tr>
179
- </table>
180
- </div>
181
- </div>
182
-
183
-
184
-
185
- <!-- if method_list -->
186
- <div id="methods">
187
- <h3 class="section-bar">Public Class methods</h3>
188
-
189
- <div id="method-M000080" class="method-detail">
190
- <a name="M000080"></a>
191
-
192
- <div class="method-heading">
193
- <a href="Muapi.src/M000080.html" target="Code" class="method-signature"
194
- onclick="popupCode('Muapi.src/M000080.html');return false;">
195
- <span class="method-name">new</span><span class="method-args">(host=ENV['MU_IP'], username=ENV['MU_ADMIN_USER'], password=ENV['MU_ADMIN_PASS'])</span>
196
- </a>
197
- </div>
198
-
199
- <div class="method-description">
200
- </div>
201
- </div>
202
-
203
- <h3 class="section-bar">Public Instance methods</h3>
204
-
205
- <div id="method-M000094" class="method-detail">
206
- <a name="M000094"></a>
207
-
208
- <div class="method-heading">
209
- <a href="Muapi.src/M000094.html" target="Code" class="method-signature"
210
- onclick="popupCode('Muapi.src/M000094.html');return false;">
211
- <span class="method-name">archive</span><span class="method-args">(command=&quot;run&quot;, id=@run_uuid)</span>
212
- </a>
213
- </div>
214
-
215
- <div class="method-description">
216
- <p>
217
- performs <a href="Muapi.html#M000094">archive</a> operations
218
- </p>
219
- <pre>
220
- * command=run to create a test archive
221
- * command=status to view the status of a test archive job
222
- * command=get to download a test archive job
223
- * uuid = the uuid of the test
224
- </pre>
225
- </div>
226
- </div>
227
-
228
- <div id="method-M000095" class="method-detail">
229
- <a name="M000095"></a>
230
-
231
- <div class="method-heading">
232
- <a href="Muapi.src/M000095.html" target="Code" class="method-signature"
233
- onclick="popupCode('Muapi.src/M000095.html');return false;">
234
- <span class="method-name">backup</span><span class="method-args">(command=&quot;run&quot;, name=&quot;&quot;)</span>
235
- </a>
236
- </div>
237
-
238
- <div class="method-description">
239
- <p>
240
- performs <a href="Muapi.html#M000095">backup</a> operations
241
- </p>
242
- <pre>
243
- * command=run to create a system backup file.
244
- * command=status to view the status of a backup job. If no backup job is running, gets the date of the most recent backup.
245
- * command=get to retrieve the backup file
246
- * name = backup file name
247
- </pre>
248
- </div>
249
- </div>
250
-
251
- <div id="method-M000096" class="method-detail">
252
- <a name="M000096"></a>
253
-
254
- <div class="method-heading">
255
- <a href="Muapi.src/M000096.html" target="Code" class="method-signature"
256
- onclick="popupCode('Muapi.src/M000096.html');return false;">
257
- <span class="method-name">capture</span><span class="method-args">(command='run', port='a1', id=@job_id)</span>
258
- </a>
259
- </div>
260
-
261
- <div class="method-description">
262
- <p>
263
- packet <a href="Muapi.html#M000096">capture</a> operations
264
- </p>
265
- <pre>
266
- * command=run to start capturing packets on the specified Mu appliance port
267
- * command=status tp view the status of packet capture activity
268
- * command=get to download the pcap file generated during packet capture
269
- * port = the Mu appliance port
270
- * id = job_id for status and get commands
271
- </pre>
272
- </div>
273
- </div>
274
-
275
- <div id="method-M000087" class="method-detail">
276
- <a name="M000087"></a>
277
-
278
- <div class="method-heading">
279
- <a href="Muapi.src/M000087.html" target="Code" class="method-signature"
280
- onclick="popupCode('Muapi.src/M000087.html');return false;">
281
- <span class="method-name">delete</span><span class="method-args">(uuid=@run_uuid)</span>
282
- </a>
283
- </div>
284
-
285
- <div class="method-description">
286
- <p>
287
- deletes the specified test
288
- </p>
289
- <pre>
290
- * uuid = the uuid of the test
291
- </pre>
292
- </div>
293
- </div>
294
-
295
- <div id="method-M000092" class="method-detail">
296
- <a name="M000092"></a>
297
-
298
- <div class="method-heading">
299
- <a href="Muapi.src/M000092.html" target="Code" class="method-signature"
300
- onclick="popupCode('Muapi.src/M000092.html');return false;">
301
- <span class="method-name">export_by_type_and_name</span><span class="method-args">(type, name)</span>
302
- </a>
303
- </div>
304
-
305
- <div class="method-description">
306
- <p>
307
- exports a template from the <a href="../Mu.html">Mu</a> system using the
308
- template type and template name
309
- </p>
310
- <pre>
311
- * name = the template name
312
- </pre>
313
- </div>
314
- </div>
315
-
316
- <div id="method-M000093" class="method-detail">
317
- <a name="M000093"></a>
318
-
319
- <div class="method-heading">
320
- <a href="Muapi.src/M000093.html" target="Code" class="method-signature"
321
- onclick="popupCode('Muapi.src/M000093.html');return false;">
322
- <span class="method-name">export_by_uuid</span><span class="method-args">(uuid)</span>
323
- </a>
324
- </div>
325
-
326
- <div class="method-description">
327
- <p>
328
- exports a template from the <a href="../Mu.html">Mu</a> system using the
329
- template uuid
330
- </p>
331
- <pre>
332
- * uuid = the template uuid
333
- </pre>
334
- </div>
335
- </div>
336
-
337
- <div id="method-M000088" class="method-detail">
338
- <a name="M000088"></a>
339
-
340
- <div class="method-heading">
341
- <a href="Muapi.src/M000088.html" target="Code" class="method-signature"
342
- onclick="popupCode('Muapi.src/M000088.html');return false;">
343
- <span class="method-name">get_faults</span><span class="method-args">(uuid=@run_uuid)</span>
344
- </a>
345
- </div>
346
-
347
- <div class="method-description">
348
- <p>
349
- returns a <a href="Muapi.html#M000090">list</a> of faults from the
350
- specified test
351
- </p>
352
- <pre>
353
- * uuid = the uuid of the test
354
- </pre>
355
- </div>
356
- </div>
357
-
358
- <div id="method-M000089" class="method-detail">
359
- <a name="M000089"></a>
360
-
361
- <div class="method-heading">
362
- <a href="Muapi.src/M000089.html" target="Code" class="method-signature"
363
- onclick="popupCode('Muapi.src/M000089.html');return false;">
364
- <span class="method-name">get_name</span><span class="method-args">(uuid=@run_uuid)</span>
365
- </a>
366
- </div>
367
-
368
- <div class="method-description">
369
- <p>
370
- returns the name of an test
371
- </p>
372
- <pre>
373
- * uuid = the uuid of the test
374
- </pre>
375
- </div>
376
- </div>
377
-
378
- <div id="method-M000090" class="method-detail">
379
- <a name="M000090"></a>
380
-
381
- <div class="method-heading">
382
- <a href="Muapi.src/M000090.html" target="Code" class="method-signature"
383
- onclick="popupCode('Muapi.src/M000090.html');return false;">
384
- <span class="method-name">list</span><span class="method-args">(type)</span>
385
- </a>
386
- </div>
387
-
388
- <div class="method-description">
389
- <p>
390
- lists the templates on the <a href="../Mu.html">Mu</a> system using the
391
- template type and template name:
392
- </p>
393
- <pre>
394
- * type = the template type, such as 'scenario' or 'monitor'
395
- </pre>
396
- </div>
397
- </div>
398
-
399
- <div id="method-M000081" class="method-detail">
400
- <a name="M000081"></a>
401
-
402
- <div class="method-heading">
403
- <a href="Muapi.src/M000081.html" target="Code" class="method-signature"
404
- onclick="popupCode('Muapi.src/M000081.html');return false;">
405
- <span class="method-name">list_by_status</span><span class="method-args">(status=&quot;&quot;)</span>
406
- </a>
407
- </div>
408
-
409
- <div class="method-description">
410
- <p>
411
- lists the statuses of tests
412
- </p>
413
- <pre>
414
- * status = the status type, such as 'running' or 'failed'
415
- </pre>
416
- </div>
417
- </div>
418
-
419
- <div id="method-M000085" class="method-detail">
420
- <a name="M000085"></a>
421
-
422
- <div class="method-heading">
423
- <a href="Muapi.src/M000085.html" target="Code" class="method-signature"
424
- onclick="popupCode('Muapi.src/M000085.html');return false;">
425
- <span class="method-name">pause</span><span class="method-args">(uuid=@run_uuid)</span>
426
- </a>
427
- </div>
428
-
429
- <div class="method-description">
430
- <p>
431
- pauses a running test
432
- </p>
433
- <pre>
434
- * uuid = the uuid of the test
435
- </pre>
436
- </div>
437
- </div>
438
-
439
- <div id="method-M000086" class="method-detail">
440
- <a name="M000086"></a>
441
-
442
- <div class="method-heading">
443
- <a href="Muapi.src/M000086.html" target="Code" class="method-signature"
444
- onclick="popupCode('Muapi.src/M000086.html');return false;">
445
- <span class="method-name">resume</span><span class="method-args">(uuid=@run_uuid)</span>
446
- </a>
447
- </div>
448
-
449
- <div class="method-description">
450
- <p>
451
- resumes a suspended test
452
- </p>
453
- <pre>
454
- * uuid = the uuid of the test
455
- </pre>
456
- </div>
457
- </div>
458
-
459
- <div id="method-M000083" class="method-detail">
460
- <a name="M000083"></a>
461
-
462
- <div class="method-heading">
463
- <a href="Muapi.src/M000083.html" target="Code" class="method-signature"
464
- onclick="popupCode('Muapi.src/M000083.html');return false;">
465
- <span class="method-name">run</span><span class="method-args">(uuid, rename=&quot;&quot;)</span>
466
- </a>
467
- </div>
468
-
469
- <div class="method-description">
470
- <p>
471
- starts a test
472
- </p>
473
- <pre>
474
- * uuid = the uuid of the test
475
- </pre>
476
- </div>
477
- </div>
478
-
479
- <div id="method-M000082" class="method-detail">
480
- <a name="M000082"></a>
481
-
482
- <div class="method-heading">
483
- <a href="Muapi.src/M000082.html" target="Code" class="method-signature"
484
- onclick="popupCode('Muapi.src/M000082.html');return false;">
485
- <span class="method-name">status</span><span class="method-args">(uuid=@run_uuid)</span>
486
- </a>
487
- </div>
488
-
489
- <div class="method-description">
490
- <p>
491
- returns the <a href="Muapi.html#M000082">status</a> of a test
492
- </p>
493
- <pre>
494
- * uuid = the uuid of the test
495
- </pre>
496
- </div>
497
- </div>
498
-
499
- <div id="method-M000084" class="method-detail">
500
- <a name="M000084"></a>
501
-
502
- <div class="method-heading">
503
- <a href="Muapi.src/M000084.html" target="Code" class="method-signature"
504
- onclick="popupCode('Muapi.src/M000084.html');return false;">
505
- <span class="method-name">stop</span><span class="method-args">(uuid=@run_uuid)</span>
506
- </a>
507
- </div>
508
-
509
- <div class="method-description">
510
- <p>
511
- stops a running test
512
- </p>
513
- <pre>
514
- * uuid = the uuid of the test
515
- </pre>
516
- </div>
517
- </div>
518
-
519
- <div id="method-M000091" class="method-detail">
520
- <a name="M000091"></a>
521
-
522
- <div class="method-heading">
523
- <a href="Muapi.src/M000091.html" target="Code" class="method-signature"
524
- onclick="popupCode('Muapi.src/M000091.html');return false;">
525
- <span class="method-name">types</span><span class="method-args">()</span>
526
- </a>
527
- </div>
528
-
529
- <div class="method-description">
530
- <p>
531
- lists the <a href="Muapi.html#M000091">types</a> of templates on the <a
532
- href="../Mu.html">Mu</a> system
533
- </p>
534
- </div>
535
- </div>
536
-
537
-
538
- </div>
539
-
540
-
541
- </div>
542
-
543
-
544
- <div id="validator-badges">
545
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
546
- </div>
547
-
548
- </body>
549
- </html>