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,308 +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>Module: Mu::Helper</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">Mu::Helper</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../files/lib/mu/helper_rb.html">
59
- lib/mu/helper.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
-
76
-
77
- </div>
78
-
79
- <div id="method-list">
80
- <h3 class="section-bar">Methods</h3>
81
-
82
- <div class="name-list">
83
- <a href="#M000068">ask</a>&nbsp;&nbsp;
84
- <a href="#M000066">error</a>&nbsp;&nbsp;
85
- <a href="#M000070">format_float</a>&nbsp;&nbsp;
86
- <a href="#M000072">get_file_as_string_array</a>&nbsp;&nbsp;
87
- <a href="#M000067">msg</a>&nbsp;&nbsp;
88
- <a href="#M000069">shift</a>&nbsp;&nbsp;
89
- <a href="#M000071">to_boolean</a>&nbsp;&nbsp;
90
- </div>
91
- </div>
92
-
93
- </div>
94
-
95
-
96
- <!-- if includes -->
97
-
98
- <div id="section">
99
-
100
-
101
-
102
-
103
-
104
-
105
-
106
-
107
- <!-- if method_list -->
108
- <div id="methods">
109
- <h3 class="section-bar">Public Instance methods</h3>
110
-
111
- <div id="method-M000068" class="method-detail">
112
- <a name="M000068"></a>
113
-
114
- <div class="method-heading">
115
- <a href="#M000068" class="method-signature">
116
- <span class="method-name">ask</span><span class="method-args">()</span>
117
- </a>
118
- </div>
119
-
120
- <div class="method-description">
121
- <p><a class="source-toggle" href="#"
122
- onclick="toggleCode('M000068-source');return false;">[Source]</a></p>
123
- <div class="method-source-code" id="M000068-source">
124
- <pre>
125
- <span class="ruby-comment cmt"># File lib/mu/helper.rb, line 20</span>
126
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ask</span>
127
- <span class="ruby-identifier">gets</span>.<span class="ruby-identifier">strip</span>
128
- <span class="ruby-keyword kw">end</span>
129
- </pre>
130
- </div>
131
- </div>
132
- </div>
133
-
134
- <div id="method-M000066" class="method-detail">
135
- <a name="M000066"></a>
136
-
137
- <div class="method-heading">
138
- <a href="#M000066" class="method-signature">
139
- <span class="method-name">error</span><span class="method-args">(msg)</span>
140
- </a>
141
- </div>
142
-
143
- <div class="method-description">
144
- <p><a class="source-toggle" href="#"
145
- onclick="toggleCode('M000066-source');return false;">[Source]</a></p>
146
- <div class="method-source-code" id="M000066-source">
147
- <pre>
148
- <span class="ruby-comment cmt"># File lib/mu/helper.rb, line 4</span>
149
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">error</span> <span class="ruby-identifier">msg</span>
150
- <span class="ruby-identifier">$stderr</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;!! #{msg}&quot;</span>
151
- <span class="ruby-keyword kw">end</span>
152
- </pre>
153
- </div>
154
- </div>
155
- </div>
156
-
157
- <div id="method-M000070" class="method-detail">
158
- <a name="M000070"></a>
159
-
160
- <div class="method-heading">
161
- <a href="#M000070" class="method-signature">
162
- <span class="method-name">format_float</span><span class="method-args">(spaces=2,arg=0.0)</span>
163
- </a>
164
- </div>
165
-
166
- <div class="method-description">
167
- <p><a class="source-toggle" href="#"
168
- onclick="toggleCode('M000070-source');return false;">[Source]</a></p>
169
- <div class="method-source-code" id="M000070-source">
170
- <pre>
171
- <span class="ruby-comment cmt"># File lib/mu/helper.rb, line 30</span>
172
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">format_float</span>(<span class="ruby-identifier">spaces</span>=<span class="ruby-value">2</span>,<span class="ruby-identifier">arg</span>=<span class="ruby-value">0</span><span class="ruby-value">.0</span>)
173
- <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">arg</span>.<span class="ruby-identifier">nil?</span>
174
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">sprintf</span>(<span class="ruby-node">&quot;%.#{spaces}f&quot;</span>, <span class="ruby-identifier">arg</span>)
175
- <span class="ruby-keyword kw">else</span>
176
- <span class="ruby-keyword kw">return</span> <span class="ruby-value str">&quot;&quot;</span>
177
- <span class="ruby-keyword kw">end</span>
178
- <span class="ruby-keyword kw">end</span>
179
- </pre>
180
- </div>
181
- </div>
182
- </div>
183
-
184
- <div id="method-M000072" class="method-detail">
185
- <a name="M000072"></a>
186
-
187
- <div class="method-heading">
188
- <a href="#M000072" class="method-signature">
189
- <span class="method-name">get_file_as_string_array</span><span class="method-args">(filename)</span>
190
- </a>
191
- </div>
192
-
193
- <div class="method-description">
194
- <p>
195
- IO.readlines
196
- </p>
197
- <p><a class="source-toggle" href="#"
198
- onclick="toggleCode('M000072-source');return false;">[Source]</a></p>
199
- <div class="method-source-code" id="M000072-source">
200
- <pre>
201
- <span class="ruby-comment cmt"># File lib/mu/helper.rb, line 45</span>
202
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_file_as_string_array</span>(<span class="ruby-identifier">filename</span>)
203
- <span class="ruby-identifier">arr</span> = []
204
- <span class="ruby-identifier">f</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">filename</span>, <span class="ruby-value str">&quot;r&quot;</span>)
205
- <span class="ruby-identifier">f</span>.<span class="ruby-identifier">each_line</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span>
206
- <span class="ruby-identifier">arr</span>.<span class="ruby-identifier">push</span> <span class="ruby-identifier">line</span>
207
- <span class="ruby-keyword kw">end</span>
208
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">arr</span>
209
- <span class="ruby-keyword kw">end</span>
210
- </pre>
211
- </div>
212
- </div>
213
- </div>
214
-
215
- <div id="method-M000067" class="method-detail">
216
- <a name="M000067"></a>
217
-
218
- <div class="method-heading">
219
- <a href="#M000067" class="method-signature">
220
- <span class="method-name">msg</span><span class="method-args">(msg, level=Logger::INFO)</span>
221
- </a>
222
- </div>
223
-
224
- <div class="method-description">
225
- <p><a class="source-toggle" href="#"
226
- onclick="toggleCode('M000067-source');return false;">[Source]</a></p>
227
- <div class="method-source-code" id="M000067-source">
228
- <pre>
229
- <span class="ruby-comment cmt"># File lib/mu/helper.rb, line 8</span>
230
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">msg</span> <span class="ruby-identifier">msg</span>, <span class="ruby-identifier">level</span>=<span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">INFO</span>
231
- <span class="ruby-identifier">caller</span>[<span class="ruby-value">0</span>] <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/`([^']*)'/</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">method</span> = <span class="ruby-identifier">$1</span>
232
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">caller</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">include?</span>(<span class="ruby-value str">&quot;mu&quot;</span>)
233
- <span class="ruby-identifier">clz</span> = <span class="ruby-identifier">caller</span>[<span class="ruby-value">0</span>][<span class="ruby-identifier">caller</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">index</span>(<span class="ruby-value str">&quot;mu&quot;</span>)<span class="ruby-operator">..</span><span class="ruby-identifier">caller</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">length</span>]
234
- <span class="ruby-keyword kw">else</span>
235
- <span class="ruby-identifier">clz</span> = <span class="ruby-identifier">caller</span>[<span class="ruby-value">0</span>]
236
- <span class="ruby-keyword kw">end</span>
237
-
238
- <span class="ruby-identifier">$log</span>.<span class="ruby-identifier">add</span>(<span class="ruby-identifier">level</span>, <span class="ruby-node">&quot;#{method} | #{msg}&quot;</span>)
239
- <span class="ruby-comment cmt"># $log.add(level, &quot;(#{clz}) | #{msg}&quot;)</span>
240
- <span class="ruby-keyword kw">end</span>
241
- </pre>
242
- </div>
243
- </div>
244
- </div>
245
-
246
- <div id="method-M000069" class="method-detail">
247
- <a name="M000069"></a>
248
-
249
- <div class="method-heading">
250
- <a href="#M000069" class="method-signature">
251
- <span class="method-name">shift</span><span class="method-args">(key, argv)</span>
252
- </a>
253
- </div>
254
-
255
- <div class="method-description">
256
- <p><a class="source-toggle" href="#"
257
- onclick="toggleCode('M000069-source');return false;">[Source]</a></p>
258
- <div class="method-source-code" id="M000069-source">
259
- <pre>
260
- <span class="ruby-comment cmt"># File lib/mu/helper.rb, line 24</span>
261
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">shift</span> <span class="ruby-identifier">key</span>, <span class="ruby-identifier">argv</span>
262
- <span class="ruby-identifier">val</span> = <span class="ruby-identifier">argv</span>.<span class="ruby-identifier">shift</span>
263
- <span class="ruby-identifier">raise</span> <span class="ruby-node">&quot;missing value for #{key}&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">val</span>.<span class="ruby-identifier">nil?</span>
264
- <span class="ruby-identifier">val</span>
265
- <span class="ruby-keyword kw">end</span>
266
- </pre>
267
- </div>
268
- </div>
269
- </div>
270
-
271
- <div id="method-M000071" class="method-detail">
272
- <a name="M000071"></a>
273
-
274
- <div class="method-heading">
275
- <a href="#M000071" class="method-signature">
276
- <span class="method-name">to_boolean</span><span class="method-args">(value=&quot;false&quot;)</span>
277
- </a>
278
- </div>
279
-
280
- <div class="method-description">
281
- <p><a class="source-toggle" href="#"
282
- onclick="toggleCode('M000071-source');return false;">[Source]</a></p>
283
- <div class="method-source-code" id="M000071-source">
284
- <pre>
285
- <span class="ruby-comment cmt"># File lib/mu/helper.rb, line 38</span>
286
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_boolean</span>(<span class="ruby-identifier">value</span>=<span class="ruby-value str">&quot;false&quot;</span>)
287
- <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">nil?</span>
288
- <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">downcase</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;true&quot;</span>
289
- <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
290
- <span class="ruby-keyword kw">end</span>
291
- </pre>
292
- </div>
293
- </div>
294
- </div>
295
-
296
-
297
- </div>
298
-
299
-
300
- </div>
301
-
302
-
303
- <div id="validator-badges">
304
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
305
- </div>
306
-
307
- </body>
308
- </html>
@@ -1,306 +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::Homepage</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::Homepage</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../files/lib/mu/api/homepage_rb.html">
59
- lib/mu/api/homepage.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="#M000237">all</a>&nbsp;&nbsp;
92
- <a href="#M000240">latest_test</a>&nbsp;&nbsp;
93
- <a href="#M000236">new</a>&nbsp;&nbsp;
94
- <a href="#M000241">queue_test</a>&nbsp;&nbsp;
95
- <a href="#M000238">recent</a>&nbsp;&nbsp;
96
- <a href="#M000239">status</a>&nbsp;&nbsp;
97
- </div>
98
- </div>
99
-
100
- </div>
101
-
102
-
103
- <!-- if includes -->
104
- <div id="includes">
105
- <h3 class="section-bar">Included Modules</h3>
106
-
107
- <div id="includes-list">
108
- <span class="include-name">Helper</span>
109
- </div>
110
- </div>
111
-
112
- <div id="section">
113
-
114
-
115
-
116
-
117
-
118
- <div id="attribute-list">
119
- <h3 class="section-bar">Attributes</h3>
120
-
121
- <div class="name-list">
122
- <table>
123
- <tr class="top-aligned-row context-row">
124
- <td class="context-item-name">cookie</td>
125
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
126
- <td class="context-item-desc"></td>
127
- </tr>
128
- <tr class="top-aligned-row context-row">
129
- <td class="context-item-name">docroot</td>
130
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
131
- <td class="context-item-desc"></td>
132
- </tr>
133
- <tr class="top-aligned-row context-row">
134
- <td class="context-item-name">errors</td>
135
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
136
- <td class="context-item-desc"></td>
137
- </tr>
138
- <tr class="top-aligned-row context-row">
139
- <td class="context-item-name">failed</td>
140
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
141
- <td class="context-item-desc"></td>
142
- </tr>
143
- <tr class="top-aligned-row context-row">
144
- <td class="context-item-name">host</td>
145
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
146
- <td class="context-item-desc"></td>
147
- </tr>
148
- <tr class="top-aligned-row context-row">
149
- <td class="context-item-name">password</td>
150
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
151
- <td class="context-item-desc"></td>
152
- </tr>
153
- <tr class="top-aligned-row context-row">
154
- <td class="context-item-name">posted_uuid</td>
155
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
156
- <td class="context-item-desc"></td>
157
- </tr>
158
- <tr class="top-aligned-row context-row">
159
- <td class="context-item-name">results</td>
160
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
161
- <td class="context-item-desc"></td>
162
- </tr>
163
- <tr class="top-aligned-row context-row">
164
- <td class="context-item-name">results</td>
165
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
166
- <td class="context-item-desc"></td>
167
- </tr>
168
- <tr class="top-aligned-row context-row">
169
- <td class="context-item-name">session_id</td>
170
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
171
- <td class="context-item-desc"></td>
172
- </tr>
173
- <tr class="top-aligned-row context-row">
174
- <td class="context-item-name">testsuite</td>
175
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
176
- <td class="context-item-desc"></td>
177
- </tr>
178
- <tr class="top-aligned-row context-row">
179
- <td class="context-item-name">username</td>
180
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
181
- <td class="context-item-desc"></td>
182
- </tr>
183
- </table>
184
- </div>
185
- </div>
186
-
187
-
188
-
189
- <!-- if method_list -->
190
- <div id="methods">
191
- <h3 class="section-bar">Public Class methods</h3>
192
-
193
- <div id="method-M000236" class="method-detail">
194
- <a name="M000236"></a>
195
-
196
- <div class="method-heading">
197
- <a href="Homepage.src/M000236.html" target="Code" class="method-signature"
198
- onclick="popupCode('Homepage.src/M000236.html');return false;">
199
- <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>
200
- </a>
201
- </div>
202
-
203
- <div class="method-description">
204
- </div>
205
- </div>
206
-
207
- <h3 class="section-bar">Public Instance methods</h3>
208
-
209
- <div id="method-M000237" class="method-detail">
210
- <a name="M000237"></a>
211
-
212
- <div class="method-heading">
213
- <a href="Homepage.src/M000237.html" target="Code" class="method-signature"
214
- onclick="popupCode('Homepage.src/M000237.html');return false;">
215
- <span class="method-name">all</span><span class="method-args">()</span>
216
- </a>
217
- </div>
218
-
219
- <div class="method-description">
220
- <p>
221
- returns <a href="Homepage.html#M000237">all</a> homepage elements
222
- </p>
223
- </div>
224
- </div>
225
-
226
- <div id="method-M000240" class="method-detail">
227
- <a name="M000240"></a>
228
-
229
- <div class="method-heading">
230
- <a href="Homepage.src/M000240.html" target="Code" class="method-signature"
231
- onclick="popupCode('Homepage.src/M000240.html');return false;">
232
- <span class="method-name">latest_test</span><span class="method-args">()</span>
233
- </a>
234
- </div>
235
-
236
- <div class="method-description">
237
- <p>
238
- returns the latest test
239
- </p>
240
- </div>
241
- </div>
242
-
243
- <div id="method-M000241" class="method-detail">
244
- <a name="M000241"></a>
245
-
246
- <div class="method-heading">
247
- <a href="Homepage.src/M000241.html" target="Code" class="method-signature"
248
- onclick="popupCode('Homepage.src/M000241.html');return false;">
249
- <span class="method-name">queue_test</span><span class="method-args">()</span>
250
- </a>
251
- </div>
252
-
253
- <div class="method-description">
254
- <p>
255
- returns queued tests
256
- </p>
257
- </div>
258
- </div>
259
-
260
- <div id="method-M000238" class="method-detail">
261
- <a name="M000238"></a>
262
-
263
- <div class="method-heading">
264
- <a href="Homepage.src/M000238.html" target="Code" class="method-signature"
265
- onclick="popupCode('Homepage.src/M000238.html');return false;">
266
- <span class="method-name">recent</span><span class="method-args">()</span>
267
- </a>
268
- </div>
269
-
270
- <div class="method-description">
271
- <p>
272
- returns <a href="Homepage.html#M000238">recent</a> homepage activity
273
- </p>
274
- </div>
275
- </div>
276
-
277
- <div id="method-M000239" class="method-detail">
278
- <a name="M000239"></a>
279
-
280
- <div class="method-heading">
281
- <a href="Homepage.src/M000239.html" target="Code" class="method-signature"
282
- onclick="popupCode('Homepage.src/M000239.html');return false;">
283
- <span class="method-name">status</span><span class="method-args">()</span>
284
- </a>
285
- </div>
286
-
287
- <div class="method-description">
288
- <p>
289
- returns homepage <a href="Homepage.html#M000239">status</a>
290
- </p>
291
- </div>
292
- </div>
293
-
294
-
295
- </div>
296
-
297
-
298
- </div>
299
-
300
-
301
- <div id="validator-badges">
302
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
303
- </div>
304
-
305
- </body>
306
- </html>