mu 5.7.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. data/Mu_Gem.html +1591 -0
  2. data/bin/mu +11 -0
  3. data/lib/mu.rb +65 -0
  4. data/lib/mu/api/ddt.rb +233 -0
  5. data/lib/mu/api/homepage.rb +54 -0
  6. data/lib/mu/api/muapi.rb +231 -0
  7. data/lib/mu/api/netconfig.rb +233 -0
  8. data/lib/mu/api/scale.rb +199 -0
  9. data/lib/mu/api/system.rb +40 -0
  10. data/lib/mu/client.rb +31 -0
  11. data/lib/mu/command.rb +28 -0
  12. data/lib/mu/command/api.rb +95 -0
  13. data/lib/mu/command/cmd_appid.rb +486 -0
  14. data/lib/mu/command/cmd_cli.rb +151 -0
  15. data/lib/mu/command/cmd_ddt.rb +449 -0
  16. data/lib/mu/command/cmd_homepage.rb +146 -0
  17. data/lib/mu/command/cmd_muapi.rb +361 -0
  18. data/lib/mu/command/cmd_netconfig.rb +262 -0
  19. data/lib/mu/command/cmd_runscale.rb +533 -0
  20. data/lib/mu/command/cmd_runscenario.rb +258 -0
  21. data/lib/mu/command/cmd_runverify.rb +336 -0
  22. data/lib/mu/command/cmd_scale.rb +333 -0
  23. data/lib/mu/command/cmd_system.rb +127 -0
  24. data/lib/mu/command/curl.rb +246 -0
  25. data/lib/mu/command/help.rb +29 -0
  26. data/lib/mu/curl/error.rb +54 -0
  27. data/lib/mu/curl/verify.rb +137 -0
  28. data/lib/mu/helper.rb +55 -0
  29. data/lib/mu/http_helper.rb +232 -0
  30. data/rdoc/classes/Mu.html +305 -0
  31. data/rdoc/classes/Mu/Client.html +265 -0
  32. data/rdoc/classes/Mu/Command.html +208 -0
  33. data/rdoc/classes/Mu/Command/API.html +524 -0
  34. data/rdoc/classes/Mu/Command/Cmd_appid.html +934 -0
  35. data/rdoc/classes/Mu/Command/Cmd_cli.html +515 -0
  36. data/rdoc/classes/Mu/Command/Cmd_ddt.html +1169 -0
  37. data/rdoc/classes/Mu/Command/Cmd_homepage.html +489 -0
  38. data/rdoc/classes/Mu/Command/Cmd_muapi.html +968 -0
  39. data/rdoc/classes/Mu/Command/Cmd_netconfig.html +743 -0
  40. data/rdoc/classes/Mu/Command/Cmd_runscale.html +970 -0
  41. data/rdoc/classes/Mu/Command/Cmd_runscenario.html +530 -0
  42. data/rdoc/classes/Mu/Command/Cmd_runverify.html +621 -0
  43. data/rdoc/classes/Mu/Command/Cmd_scale.html +939 -0
  44. data/rdoc/classes/Mu/Command/Cmd_system.html +426 -0
  45. data/rdoc/classes/Mu/Command/Curl.html +524 -0
  46. data/rdoc/classes/Mu/Command/Help.html +166 -0
  47. data/rdoc/classes/Mu/Curl.html +116 -0
  48. data/rdoc/classes/Mu/Curl/Error.html +157 -0
  49. data/rdoc/classes/Mu/Curl/Error/Authorize.html +178 -0
  50. data/rdoc/classes/Mu/Curl/Error/Connect.html +149 -0
  51. data/rdoc/classes/Mu/Curl/Error/DNS.html +113 -0
  52. data/rdoc/classes/Mu/Curl/Error/Region.html +160 -0
  53. data/rdoc/classes/Mu/Curl/Error/Status.html +149 -0
  54. data/rdoc/classes/Mu/Curl/Error/Timeout.html +149 -0
  55. data/rdoc/classes/Mu/Curl/Verify.html +282 -0
  56. data/rdoc/classes/Mu/Curl/Verify/Request.html +227 -0
  57. data/rdoc/classes/Mu/Curl/Verify/Response.html +187 -0
  58. data/rdoc/classes/Mu/Curl/Verify/Result.html +188 -0
  59. data/rdoc/classes/Mu/Ddt.html +914 -0
  60. data/rdoc/classes/Mu/Helper.html +308 -0
  61. data/rdoc/classes/Mu/Homepage.html +377 -0
  62. data/rdoc/classes/Mu/HttpHelper.html +639 -0
  63. data/rdoc/classes/Mu/Muapi.html +816 -0
  64. data/rdoc/classes/Mu/Netconfig.html +781 -0
  65. data/rdoc/classes/Mu/Scale.html +832 -0
  66. data/rdoc/classes/Mu/System.html +281 -0
  67. data/rdoc/classes/Object.html +148 -0
  68. data/rdoc/classes/TCTestMu.html +1793 -0
  69. data/rdoc/classes/Test.html +107 -0
  70. data/rdoc/classes/Test/Unit.html +107 -0
  71. data/rdoc/classes/Test/Unit/TestCase.html +113 -0
  72. data/rdoc/created.rid +1 -0
  73. data/rdoc/files/lib/mu/api/ddt_rb.html +101 -0
  74. data/rdoc/files/lib/mu/api/homepage_rb.html +101 -0
  75. data/rdoc/files/lib/mu/api/muapi_rb.html +101 -0
  76. data/rdoc/files/lib/mu/api/netconfig_rb.html +101 -0
  77. data/rdoc/files/lib/mu/api/scale_rb.html +101 -0
  78. data/rdoc/files/lib/mu/api/system_rb.html +101 -0
  79. data/rdoc/files/lib/mu/client_rb.html +101 -0
  80. data/rdoc/files/lib/mu/command/api_rb.html +101 -0
  81. data/rdoc/files/lib/mu/command/cmd_appid_rb.html +119 -0
  82. data/rdoc/files/lib/mu/command/cmd_cli_rb.html +108 -0
  83. data/rdoc/files/lib/mu/command/cmd_ddt_rb.html +117 -0
  84. data/rdoc/files/lib/mu/command/cmd_homepage_rb.html +115 -0
  85. data/rdoc/files/lib/mu/command/cmd_muapi_rb.html +116 -0
  86. data/rdoc/files/lib/mu/command/cmd_netconfig_rb.html +116 -0
  87. data/rdoc/files/lib/mu/command/cmd_runscale_rb.html +119 -0
  88. data/rdoc/files/lib/mu/command/cmd_runscenario_rb.html +115 -0
  89. data/rdoc/files/lib/mu/command/cmd_runverify_rb.html +117 -0
  90. data/rdoc/files/lib/mu/command/cmd_scale_rb.html +115 -0
  91. data/rdoc/files/lib/mu/command/cmd_system_rb.html +116 -0
  92. data/rdoc/files/lib/mu/command/curl_rb.html +101 -0
  93. data/rdoc/files/lib/mu/command/help_rb.html +101 -0
  94. data/rdoc/files/lib/mu/command_rb.html +107 -0
  95. data/rdoc/files/lib/mu/curl/error_rb.html +101 -0
  96. data/rdoc/files/lib/mu/curl/verify_rb.html +101 -0
  97. data/rdoc/files/lib/mu/helper_rb.html +101 -0
  98. data/rdoc/files/lib/mu/http_helper_rb.html +101 -0
  99. data/rdoc/files/lib/mu_rb.html +121 -0
  100. data/rdoc/files/test/helper_rb.html +112 -0
  101. data/rdoc/files/test/tc_test_mu_rb.html +111 -0
  102. data/rdoc/fr_class_index.html +68 -0
  103. data/rdoc/fr_file_index.html +55 -0
  104. data/rdoc/fr_method_index.html +374 -0
  105. data/rdoc/index.html +24 -0
  106. data/rdoc/rdoc-style.css +208 -0
  107. data/test/data/app_id_stats.csv +1 -0
  108. data/test/data/data_cgi.msl +94 -0
  109. data/test/data/data_cgi.xml +322 -0
  110. data/test/data/default_test.csv +3 -0
  111. data/test/data/ftp_with_channel.xml +1643 -0
  112. data/test/data/irc.xml +3837 -0
  113. data/test/data/scale_configuration.json +25 -0
  114. data/test/data/test_data_cgi_error.xml +35 -0
  115. data/test/helper.rb +18 -0
  116. data/test/tc_test_mu.rb +716 -0
  117. metadata +322 -0
@@ -0,0 +1,308 @@
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>
@@ -0,0 +1,377 @@
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="#M000301">all</a>&nbsp;&nbsp;
92
+ <a href="#M000304">latest_test</a>&nbsp;&nbsp;
93
+ <a href="#M000300">new</a>&nbsp;&nbsp;
94
+ <a href="#M000305">queue_test</a>&nbsp;&nbsp;
95
+ <a href="#M000302">recent</a>&nbsp;&nbsp;
96
+ <a href="#M000303">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"><a href="Helper.html">Helper</a></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-M000300" class="method-detail">
194
+ <a name="M000300"></a>
195
+
196
+ <div class="method-heading">
197
+ <a href="#M000300" class="method-signature">
198
+ <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>
199
+ </a>
200
+ </div>
201
+
202
+ <div class="method-description">
203
+ <p><a class="source-toggle" href="#"
204
+ onclick="toggleCode('M000300-source');return false;">[Source]</a></p>
205
+ <div class="method-source-code" id="M000300-source">
206
+ <pre>
207
+ <span class="ruby-comment cmt"># File lib/mu/api/homepage.rb, line 7</span>
208
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">host</span>=<span class="ruby-constant">ENV</span>[<span class="ruby-value str">'MU_IP'</span>], <span class="ruby-identifier">username</span>=<span class="ruby-constant">ENV</span>[<span class="ruby-value str">'MU_ADMIN_USER'</span>], <span class="ruby-identifier">password</span>=<span class="ruby-constant">ENV</span>[<span class="ruby-value str">'MU_ADMIN_PASS'</span>])
209
+ <span class="ruby-ivar">@host</span> = <span class="ruby-identifier">host</span>
210
+ <span class="ruby-ivar">@username</span> = <span class="ruby-identifier">username</span>
211
+ <span class="ruby-ivar">@password</span> = <span class="ruby-identifier">password</span>
212
+ <span class="ruby-ivar">@docroot</span> = <span class="ruby-value str">&quot;/api/v5/homepage/&quot;</span>
213
+ <span class="ruby-ivar">@cookie</span> = <span class="ruby-value str">&quot;&quot;</span>
214
+ <span class="ruby-ivar">@response</span> = <span class="ruby-keyword kw">nil</span>
215
+ <span class="ruby-ivar">@http</span> = <span class="ruby-constant">HttpHelper</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@host</span>, <span class="ruby-ivar">@username</span>, <span class="ruby-ivar">@password</span>, <span class="ruby-ivar">@docroot</span>)
216
+ <span class="ruby-identifier">msg</span> <span class="ruby-node">&quot;Created Homepage object to :#{@host}&quot;</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
217
+ <span class="ruby-keyword kw">end</span>
218
+ </pre>
219
+ </div>
220
+ </div>
221
+ </div>
222
+
223
+ <h3 class="section-bar">Public Instance methods</h3>
224
+
225
+ <div id="method-M000301" class="method-detail">
226
+ <a name="M000301"></a>
227
+
228
+ <div class="method-heading">
229
+ <a href="#M000301" class="method-signature">
230
+ <span class="method-name">all</span><span class="method-args">()</span>
231
+ </a>
232
+ </div>
233
+
234
+ <div class="method-description">
235
+ <p>
236
+ returns <a href="Homepage.html#M000301">all</a> homepage elements
237
+ </p>
238
+ <p><a class="source-toggle" href="#"
239
+ onclick="toggleCode('M000301-source');return false;">[Source]</a></p>
240
+ <div class="method-source-code" id="M000301-source">
241
+ <pre>
242
+ <span class="ruby-comment cmt"># File lib/mu/api/homepage.rb, line 19</span>
243
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">all</span>
244
+ <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value str">&quot;all/&quot;</span>)
245
+ <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
246
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
247
+ <span class="ruby-keyword kw">end</span>
248
+ </pre>
249
+ </div>
250
+ </div>
251
+ </div>
252
+
253
+ <div id="method-M000304" class="method-detail">
254
+ <a name="M000304"></a>
255
+
256
+ <div class="method-heading">
257
+ <a href="#M000304" class="method-signature">
258
+ <span class="method-name">latest_test</span><span class="method-args">()</span>
259
+ </a>
260
+ </div>
261
+
262
+ <div class="method-description">
263
+ <p>
264
+ returns the latest test
265
+ </p>
266
+ <p><a class="source-toggle" href="#"
267
+ onclick="toggleCode('M000304-source');return false;">[Source]</a></p>
268
+ <div class="method-source-code" id="M000304-source">
269
+ <pre>
270
+ <span class="ruby-comment cmt"># File lib/mu/api/homepage.rb, line 40</span>
271
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">latest_test</span>
272
+ <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value str">&quot;test/latest/&quot;</span>)
273
+ <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
274
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
275
+ <span class="ruby-keyword kw">end</span>
276
+ </pre>
277
+ </div>
278
+ </div>
279
+ </div>
280
+
281
+ <div id="method-M000305" class="method-detail">
282
+ <a name="M000305"></a>
283
+
284
+ <div class="method-heading">
285
+ <a href="#M000305" class="method-signature">
286
+ <span class="method-name">queue_test</span><span class="method-args">()</span>
287
+ </a>
288
+ </div>
289
+
290
+ <div class="method-description">
291
+ <p>
292
+ returns queued tests
293
+ </p>
294
+ <p><a class="source-toggle" href="#"
295
+ onclick="toggleCode('M000305-source');return false;">[Source]</a></p>
296
+ <div class="method-source-code" id="M000305-source">
297
+ <pre>
298
+ <span class="ruby-comment cmt"># File lib/mu/api/homepage.rb, line 47</span>
299
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">queue_test</span>
300
+ <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value str">&quot;test/queue/&quot;</span>)
301
+ <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
302
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
303
+ <span class="ruby-keyword kw">end</span>
304
+ </pre>
305
+ </div>
306
+ </div>
307
+ </div>
308
+
309
+ <div id="method-M000302" class="method-detail">
310
+ <a name="M000302"></a>
311
+
312
+ <div class="method-heading">
313
+ <a href="#M000302" class="method-signature">
314
+ <span class="method-name">recent</span><span class="method-args">()</span>
315
+ </a>
316
+ </div>
317
+
318
+ <div class="method-description">
319
+ <p>
320
+ returns <a href="Homepage.html#M000302">recent</a> homepage activity
321
+ </p>
322
+ <p><a class="source-toggle" href="#"
323
+ onclick="toggleCode('M000302-source');return false;">[Source]</a></p>
324
+ <div class="method-source-code" id="M000302-source">
325
+ <pre>
326
+ <span class="ruby-comment cmt"># File lib/mu/api/homepage.rb, line 26</span>
327
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recent</span>
328
+ <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value str">&quot;recent/&quot;</span>)
329
+ <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
330
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
331
+ <span class="ruby-keyword kw">end</span>
332
+ </pre>
333
+ </div>
334
+ </div>
335
+ </div>
336
+
337
+ <div id="method-M000303" class="method-detail">
338
+ <a name="M000303"></a>
339
+
340
+ <div class="method-heading">
341
+ <a href="#M000303" class="method-signature">
342
+ <span class="method-name">status</span><span class="method-args">()</span>
343
+ </a>
344
+ </div>
345
+
346
+ <div class="method-description">
347
+ <p>
348
+ returns homepage <a href="Homepage.html#M000303">status</a>
349
+ </p>
350
+ <p><a class="source-toggle" href="#"
351
+ onclick="toggleCode('M000303-source');return false;">[Source]</a></p>
352
+ <div class="method-source-code" id="M000303-source">
353
+ <pre>
354
+ <span class="ruby-comment cmt"># File lib/mu/api/homepage.rb, line 33</span>
355
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">status</span>
356
+ <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value str">&quot;status/&quot;</span>)
357
+ <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
358
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
359
+ <span class="ruby-keyword kw">end</span>
360
+ </pre>
361
+ </div>
362
+ </div>
363
+ </div>
364
+
365
+
366
+ </div>
367
+
368
+
369
+ </div>
370
+
371
+
372
+ <div id="validator-badges">
373
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
374
+ </div>
375
+
376
+ </body>
377
+ </html>