mu 5.7.8 → 5.7.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mu.rb +1 -1
- data/lib/mu/command.rb +18 -2
- data/lib/mu/command/cmd_musl.rb +165 -0
- data/lib/mu/command/cmd_runscale.rb +12 -8
- data/lib/mu/command/help.rb +1 -0
- data/lib/mu/har.rb +449 -0
- data/lib/mu/libxml.rb +21 -0
- data/lib/mu/maker.rb +288 -0
- data/lib/mu/xmlizable.rb +559 -0
- metadata +78 -267
- data/rdoc/Gemfile.html +0 -194
- data/rdoc/LICENSE_txt.html +0 -201
- data/rdoc/Mu.html +0 -478
- data/rdoc/Mu/Client.html +0 -461
- data/rdoc/Mu/Command.html +0 -338
- data/rdoc/Mu/Command/API.html +0 -844
- data/rdoc/Mu/Command/Cmd_appid.html +0 -1341
- data/rdoc/Mu/Command/Cmd_cli.html +0 -800
- data/rdoc/Mu/Command/Cmd_ddt.html +0 -1612
- data/rdoc/Mu/Command/Cmd_homepage.html +0 -762
- data/rdoc/Mu/Command/Cmd_muapi.html +0 -1363
- data/rdoc/Mu/Command/Cmd_netconfig.html +0 -1077
- data/rdoc/Mu/Command/Cmd_runscale.html +0 -1441
- data/rdoc/Mu/Command/Cmd_runscenario.html +0 -787
- data/rdoc/Mu/Command/Cmd_runverify.html +0 -893
- data/rdoc/Mu/Command/Cmd_scale.html +0 -1323
- data/rdoc/Mu/Command/Cmd_system.html +0 -677
- data/rdoc/Mu/Command/Curl.html +0 -751
- data/rdoc/Mu/Command/Help.html +0 -305
- data/rdoc/Mu/Curl.html +0 -243
- data/rdoc/Mu/Curl/Error.html +0 -304
- data/rdoc/Mu/Curl/Error/Authorize.html +0 -355
- data/rdoc/Mu/Curl/Error/Connect.html +0 -286
- data/rdoc/Mu/Curl/Error/DNS.html +0 -236
- data/rdoc/Mu/Curl/Error/Region.html +0 -307
- data/rdoc/Mu/Curl/Error/Status.html +0 -286
- data/rdoc/Mu/Curl/Error/Timeout.html +0 -286
- data/rdoc/Mu/Curl/Verify.html +0 -472
- data/rdoc/Mu/Curl/Verify/Request.html +0 -424
- data/rdoc/Mu/Curl/Verify/Response.html +0 -372
- data/rdoc/Mu/Curl/Verify/Result.html +0 -373
- data/rdoc/Mu/Ddt.html +0 -1347
- data/rdoc/Mu/Helper.html +0 -517
- data/rdoc/Mu/Homepage.html +0 -719
- data/rdoc/Mu/HttpHelper.html +0 -890
- data/rdoc/Mu/Muapi.html +0 -1226
- data/rdoc/Mu/Netconfig.html +0 -1178
- data/rdoc/Mu/Scale.html +0 -1359
- data/rdoc/Mu/System.html +0 -504
- data/rdoc/Object.html +0 -285
- data/rdoc/README_rdoc.html +0 -892
- data/rdoc/Rakefile.html +0 -257
- data/rdoc/TCTestMu.html +0 -2583
- data/rdoc/Test.html +0 -235
- data/rdoc/Test/Unit.html +0 -235
- data/rdoc/Test/Unit/TestCase.html +0 -236
- data/rdoc/Test/helper_rb.html +0 -62
- data/rdoc/Test/tc_test_mu_rb.html +0 -60
- data/rdoc/VERSION.html +0 -179
- data/rdoc/bin/mu.html +0 -54
- data/rdoc/classes/Mu.html +0 -132
- data/rdoc/classes/Mu/Client.html +0 -214
- data/rdoc/classes/Mu/Command.html +0 -129
- data/rdoc/classes/Mu/Command/API.html +0 -362
- data/rdoc/classes/Mu/Command/Cmd_appid.html +0 -238
- data/rdoc/classes/Mu/Command/Cmd_cli.html +0 -273
- data/rdoc/classes/Mu/Command/Cmd_ddt.html +0 -639
- data/rdoc/classes/Mu/Command/Cmd_homepage.html +0 -276
- data/rdoc/classes/Mu/Command/Cmd_muapi.html +0 -527
- data/rdoc/classes/Mu/Command/Cmd_netconfig.html +0 -399
- data/rdoc/classes/Mu/Command/Cmd_runscale.html +0 -220
- data/rdoc/classes/Mu/Command/Cmd_runscenario.html +0 -197
- data/rdoc/classes/Mu/Command/Cmd_runverify.html +0 -196
- data/rdoc/classes/Mu/Command/Cmd_scale.html +0 -511
- data/rdoc/classes/Mu/Command/Cmd_system.html +0 -236
- data/rdoc/classes/Mu/Command/Curl.html +0 -182
- data/rdoc/classes/Mu/Command/Help.html +0 -137
- data/rdoc/classes/Mu/Curl.html +0 -116
- data/rdoc/classes/Mu/Curl/Error.html +0 -148
- data/rdoc/classes/Mu/Curl/Error/Authorize.html +0 -165
- data/rdoc/classes/Mu/Curl/Error/Connect.html +0 -139
- data/rdoc/classes/Mu/Curl/Error/DNS.html +0 -113
- data/rdoc/classes/Mu/Curl/Error/Region.html +0 -150
- data/rdoc/classes/Mu/Curl/Error/Status.html +0 -139
- data/rdoc/classes/Mu/Curl/Error/Timeout.html +0 -139
- data/rdoc/classes/Mu/Curl/Verify.html +0 -207
- data/rdoc/classes/Mu/Curl/Verify/Request.html +0 -187
- data/rdoc/classes/Mu/Curl/Verify/Response.html +0 -172
- data/rdoc/classes/Mu/Curl/Verify/Result.html +0 -172
- data/rdoc/classes/Mu/Ddt.html +0 -610
- data/rdoc/classes/Mu/Helper.html +0 -308
- data/rdoc/classes/Mu/Homepage.html +0 -306
- data/rdoc/classes/Mu/HttpHelper.html +0 -393
- data/rdoc/classes/Mu/Muapi.html +0 -549
- data/rdoc/classes/Mu/Netconfig.html +0 -478
- data/rdoc/classes/Mu/Scale.html +0 -580
- data/rdoc/classes/Mu/System.html +0 -232
- data/rdoc/classes/Object.html +0 -139
- data/rdoc/classes/TCTestMu.html +0 -948
- data/rdoc/classes/Test.html +0 -107
- data/rdoc/classes/Test/Unit.html +0 -107
- data/rdoc/classes/Test/Unit/TestCase.html +0 -113
- data/rdoc/created.rid +0 -36
- data/rdoc/files/lib/mu/api/ddt_rb.html +0 -101
- data/rdoc/files/lib/mu/api/homepage_rb.html +0 -101
- data/rdoc/files/lib/mu/api/muapi_rb.html +0 -101
- data/rdoc/files/lib/mu/api/netconfig_rb.html +0 -101
- data/rdoc/files/lib/mu/api/scale_rb.html +0 -101
- data/rdoc/files/lib/mu/api/system_rb.html +0 -101
- data/rdoc/files/lib/mu/client_rb.html +0 -101
- data/rdoc/files/lib/mu/command/api_rb.html +0 -101
- data/rdoc/files/lib/mu/command/cmd_appid_rb.html +0 -119
- data/rdoc/files/lib/mu/command/cmd_cli_rb.html +0 -108
- data/rdoc/files/lib/mu/command/cmd_ddt_rb.html +0 -116
- data/rdoc/files/lib/mu/command/cmd_homepage_rb.html +0 -115
- data/rdoc/files/lib/mu/command/cmd_muapi_rb.html +0 -115
- data/rdoc/files/lib/mu/command/cmd_netconfig_rb.html +0 -116
- data/rdoc/files/lib/mu/command/cmd_runscale_rb.html +0 -119
- data/rdoc/files/lib/mu/command/cmd_runscenario_rb.html +0 -115
- data/rdoc/files/lib/mu/command/cmd_runverify_rb.html +0 -118
- data/rdoc/files/lib/mu/command/cmd_scale_rb.html +0 -115
- data/rdoc/files/lib/mu/command/cmd_system_rb.html +0 -116
- data/rdoc/files/lib/mu/command/curl_rb.html +0 -101
- data/rdoc/files/lib/mu/command/help_rb.html +0 -101
- data/rdoc/files/lib/mu/command_rb.html +0 -107
- data/rdoc/files/lib/mu/curl/error_rb.html +0 -101
- data/rdoc/files/lib/mu/curl/verify_rb.html +0 -101
- data/rdoc/files/lib/mu/helper_rb.html +0 -101
- data/rdoc/files/lib/mu/http_helper_rb.html +0 -101
- data/rdoc/files/lib/mu_rb.html +0 -121
- data/rdoc/files/test/helper_rb.html +0 -112
- data/rdoc/files/test/tc_test_mu_rb.html +0 -111
- data/rdoc/fr_class_index.html +0 -34
- data/rdoc/fr_file_index.html +0 -31
- data/rdoc/fr_method_index.html +0 -112
- data/rdoc/images/brick.png +0 -0
- data/rdoc/images/brick_link.png +0 -0
- data/rdoc/images/bug.png +0 -0
- data/rdoc/images/bullet_black.png +0 -0
- data/rdoc/images/bullet_toggle_minus.png +0 -0
- data/rdoc/images/bullet_toggle_plus.png +0 -0
- data/rdoc/images/date.png +0 -0
- data/rdoc/images/find.png +0 -0
- data/rdoc/images/loadingAnimation.gif +0 -0
- data/rdoc/images/macFFBgHack.png +0 -0
- data/rdoc/images/package.png +0 -0
- data/rdoc/images/page_green.png +0 -0
- data/rdoc/images/page_white_text.png +0 -0
- data/rdoc/images/page_white_width.png +0 -0
- data/rdoc/images/plugin.png +0 -0
- data/rdoc/images/ruby.png +0 -0
- data/rdoc/images/tag_green.png +0 -0
- data/rdoc/images/wrench.png +0 -0
- data/rdoc/images/wrench_orange.png +0 -0
- data/rdoc/images/zoom.png +0 -0
- data/rdoc/index.html +0 -884
- data/rdoc/js/darkfish.js +0 -116
- data/rdoc/js/jquery.js +0 -32
- data/rdoc/js/quicksearch.js +0 -114
- data/rdoc/js/thickbox-compressed.js +0 -10
- data/rdoc/lib/mu/api/ddt_rb.html +0 -52
- data/rdoc/lib/mu/api/homepage_rb.html +0 -52
- data/rdoc/lib/mu/api/muapi_rb.html +0 -52
- data/rdoc/lib/mu/api/netconfig_rb.html +0 -52
- data/rdoc/lib/mu/api/scale_rb.html +0 -52
- data/rdoc/lib/mu/api/system_rb.html +0 -52
- data/rdoc/lib/mu/client_rb.html +0 -52
- data/rdoc/lib/mu/command/api_rb.html +0 -52
- data/rdoc/lib/mu/command/cmd_appid_rb.html +0 -62
- data/rdoc/lib/mu/command/cmd_cli_rb.html +0 -55
- data/rdoc/lib/mu/command/cmd_ddt_rb.html +0 -60
- data/rdoc/lib/mu/command/cmd_homepage_rb.html +0 -57
- data/rdoc/lib/mu/command/cmd_muapi_rb.html +0 -59
- data/rdoc/lib/mu/command/cmd_netconfig_rb.html +0 -58
- data/rdoc/lib/mu/command/cmd_runscale_rb.html +0 -62
- data/rdoc/lib/mu/command/cmd_runscenario_rb.html +0 -57
- data/rdoc/lib/mu/command/cmd_runverify_rb.html +0 -61
- data/rdoc/lib/mu/command/cmd_scale_rb.html +0 -58
- data/rdoc/lib/mu/command/cmd_system_rb.html +0 -59
- data/rdoc/lib/mu/command/curl_rb.html +0 -52
- data/rdoc/lib/mu/command/help_rb.html +0 -52
- data/rdoc/lib/mu/command_rb.html +0 -55
- data/rdoc/lib/mu/curl/error_rb.html +0 -52
- data/rdoc/lib/mu/curl/verify_rb.html +0 -52
- data/rdoc/lib/mu/helper_rb.html +0 -52
- data/rdoc/lib/mu/http_helper_rb.html +0 -52
- data/rdoc/lib/mu_rb.html +0 -80
- data/rdoc/rdoc-style.css +0 -208
- data/rdoc/rdoc.css +0 -706
- data/test/data/app_id_stats.csv +0 -1
- data/test/data/app_id_status.json +0 -156
- data/test/data/data_cgi.msl +0 -94
- data/test/data/data_cgi.xml +0 -322
- data/test/data/default_test.csv +0 -3
- data/test/data/ftp_with_channel.xml +0 -1643
- data/test/data/irc.xml +0 -3837
- data/test/data/scale.json +0 -25
- data/test/data/test_data_cgi_error.xml +0 -35
@@ -1,762 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
2
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
-
<head>
|
6
|
-
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
7
|
-
|
8
|
-
<title>Class: Mu::Command::Cmd_homepage</title>
|
9
|
-
|
10
|
-
<link rel="stylesheet" href="../../rdoc.css" type="text/css" media="screen" />
|
11
|
-
|
12
|
-
<script src="../../js/jquery.js" type="text/javascript"
|
13
|
-
charset="utf-8"></script>
|
14
|
-
<script src="../../js/thickbox-compressed.js" type="text/javascript"
|
15
|
-
charset="utf-8"></script>
|
16
|
-
<script src="../../js/quicksearch.js" type="text/javascript"
|
17
|
-
charset="utf-8"></script>
|
18
|
-
<script src="../../js/darkfish.js" type="text/javascript"
|
19
|
-
charset="utf-8"></script>
|
20
|
-
|
21
|
-
</head>
|
22
|
-
<body class="class">
|
23
|
-
|
24
|
-
<div id="metadata">
|
25
|
-
<div id="home-metadata">
|
26
|
-
<div id="home-section" class="section">
|
27
|
-
<h3 class="section-header">
|
28
|
-
<a href="../../index.html">Home</a>
|
29
|
-
<a href="../../index.html#classes">Classes</a>
|
30
|
-
<a href="../../index.html#methods">Methods</a>
|
31
|
-
</h3>
|
32
|
-
</div>
|
33
|
-
</div>
|
34
|
-
|
35
|
-
<div id="file-metadata">
|
36
|
-
<div id="file-list-section" class="section">
|
37
|
-
<h3 class="section-header">In Files</h3>
|
38
|
-
<div class="section-body">
|
39
|
-
<ul>
|
40
|
-
|
41
|
-
<li><a href="../../lib/mu/command/cmd_homepage_rb.html?TB_iframe=true&height=550&width=785"
|
42
|
-
class="thickbox" title="lib/mu/command/cmd_homepage.rb">lib/mu/command/cmd_homepage.rb</a></li>
|
43
|
-
|
44
|
-
</ul>
|
45
|
-
</div>
|
46
|
-
</div>
|
47
|
-
|
48
|
-
|
49
|
-
</div>
|
50
|
-
|
51
|
-
<div id="class-metadata">
|
52
|
-
|
53
|
-
<!-- Parent Class -->
|
54
|
-
|
55
|
-
<div id="parent-class-section" class="section">
|
56
|
-
<h3 class="section-header">Parent</h3>
|
57
|
-
|
58
|
-
<p class="link"><a href="../Command.html">Mu::Command</a></p>
|
59
|
-
|
60
|
-
</div>
|
61
|
-
|
62
|
-
|
63
|
-
<!-- Namespace Contents -->
|
64
|
-
|
65
|
-
|
66
|
-
<!-- Method Quickref -->
|
67
|
-
|
68
|
-
<div id="method-list-section" class="section">
|
69
|
-
<h3 class="section-header">Methods</h3>
|
70
|
-
<ul class="link-list">
|
71
|
-
|
72
|
-
<li><a href="#method-i-cmd_all">#cmd_all</a></li>
|
73
|
-
|
74
|
-
<li><a href="#method-i-cmd_help">#cmd_help</a></li>
|
75
|
-
|
76
|
-
<li><a href="#method-i-cmd_latest_test">#cmd_latest_test</a></li>
|
77
|
-
|
78
|
-
<li><a href="#method-i-cmd_queue_test">#cmd_queue_test</a></li>
|
79
|
-
|
80
|
-
<li><a href="#method-i-cmd_recent">#cmd_recent</a></li>
|
81
|
-
|
82
|
-
<li><a href="#method-i-cmd_status">#cmd_status</a></li>
|
83
|
-
|
84
|
-
<li><a href="#method-i-help">#help</a></li>
|
85
|
-
|
86
|
-
<li><a href="#method-i-parse_cli">#parse_cli</a></li>
|
87
|
-
|
88
|
-
<li><a href="#method-i-setup">#setup</a></li>
|
89
|
-
|
90
|
-
</ul>
|
91
|
-
</div>
|
92
|
-
|
93
|
-
|
94
|
-
<!-- Included Modules -->
|
95
|
-
|
96
|
-
</div>
|
97
|
-
|
98
|
-
<div id="project-metadata">
|
99
|
-
|
100
|
-
|
101
|
-
<div id="fileindex-section" class="section project-section">
|
102
|
-
<h3 class="section-header">Files</h3>
|
103
|
-
<ul>
|
104
|
-
|
105
|
-
<li class="file"><a href="../../Gemfile.html">Gemfile</a></li>
|
106
|
-
|
107
|
-
<li class="file"><a href="../../LICENSE_txt.html">LICENSE.txt</a></li>
|
108
|
-
|
109
|
-
<li class="file"><a href="../../README_rdoc.html">README.rdoc</a></li>
|
110
|
-
|
111
|
-
<li class="file"><a href="../../Rakefile.html">Rakefile</a></li>
|
112
|
-
|
113
|
-
<li class="file"><a href="../../VERSION.html">VERSION</a></li>
|
114
|
-
|
115
|
-
</ul>
|
116
|
-
</div>
|
117
|
-
|
118
|
-
|
119
|
-
<div id="classindex-section" class="section project-section">
|
120
|
-
<h3 class="section-header">Class Index
|
121
|
-
<span class="search-toggle"><img src="../../images/find.png"
|
122
|
-
height="16" width="16" alt="[+]"
|
123
|
-
title="show/hide quicksearch" /></span></h3>
|
124
|
-
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
125
|
-
<fieldset>
|
126
|
-
<legend>Quicksearch</legend>
|
127
|
-
<input type="text" name="quicksearch" value=""
|
128
|
-
class="quicksearch-field" />
|
129
|
-
</fieldset>
|
130
|
-
</form>
|
131
|
-
|
132
|
-
<ul class="link-list">
|
133
|
-
|
134
|
-
<li><a href="../../Mu.html">Mu</a></li>
|
135
|
-
|
136
|
-
<li><a href="../../Mu/Client.html">Mu::Client</a></li>
|
137
|
-
|
138
|
-
<li><a href="../../Mu/Command.html">Mu::Command</a></li>
|
139
|
-
|
140
|
-
<li><a href="../../Mu/Command/API.html">Mu::Command::API</a></li>
|
141
|
-
|
142
|
-
<li><a href="../../Mu/Command/API.html">Mu::Command::API</a></li>
|
143
|
-
|
144
|
-
<li><a href="../../Mu/Command/Cmd_appid.html">Mu::Command::Cmd_appid</a></li>
|
145
|
-
|
146
|
-
<li><a href="../../Mu/Command/Cmd_cli.html">Mu::Command::Cmd_cli</a></li>
|
147
|
-
|
148
|
-
<li><a href="../../Mu/Command/Cmd_ddt.html">Mu::Command::Cmd_ddt</a></li>
|
149
|
-
|
150
|
-
<li><a href="../../Mu/Command/Cmd_homepage.html">Mu::Command::Cmd_homepage</a></li>
|
151
|
-
|
152
|
-
<li><a href="../../Mu/Command/Cmd_muapi.html">Mu::Command::Cmd_muapi</a></li>
|
153
|
-
|
154
|
-
<li><a href="../../Mu/Command/Cmd_netconfig.html">Mu::Command::Cmd_netconfig</a></li>
|
155
|
-
|
156
|
-
<li><a href="../../Mu/Command/Cmd_runscale.html">Mu::Command::Cmd_runscale</a></li>
|
157
|
-
|
158
|
-
<li><a href="../../Mu/Command/Cmd_runscenario.html">Mu::Command::Cmd_runscenario</a></li>
|
159
|
-
|
160
|
-
<li><a href="../../Mu/Command/Cmd_runverify.html">Mu::Command::Cmd_runverify</a></li>
|
161
|
-
|
162
|
-
<li><a href="../../Mu/Command/Cmd_scale.html">Mu::Command::Cmd_scale</a></li>
|
163
|
-
|
164
|
-
<li><a href="../../Mu/Command/Cmd_system.html">Mu::Command::Cmd_system</a></li>
|
165
|
-
|
166
|
-
<li><a href="../../Mu/Command/Curl.html">Mu::Command::Curl</a></li>
|
167
|
-
|
168
|
-
<li><a href="../../Mu/Command/Help.html">Mu::Command::Help</a></li>
|
169
|
-
|
170
|
-
<li><a href="../../Mu/Curl.html">Mu::Curl</a></li>
|
171
|
-
|
172
|
-
<li><a href="../../Mu/Curl/Error.html">Mu::Curl::Error</a></li>
|
173
|
-
|
174
|
-
<li><a href="../../Mu/Curl/Error/Authorize.html">Mu::Curl::Error::Authorize</a></li>
|
175
|
-
|
176
|
-
<li><a href="../../Mu/Curl/Error/Connect.html">Mu::Curl::Error::Connect</a></li>
|
177
|
-
|
178
|
-
<li><a href="../../Mu/Curl/Error/DNS.html">Mu::Curl::Error::DNS</a></li>
|
179
|
-
|
180
|
-
<li><a href="../../Mu/Curl/Error/Region.html">Mu::Curl::Error::Region</a></li>
|
181
|
-
|
182
|
-
<li><a href="../../Mu/Curl/Error/Status.html">Mu::Curl::Error::Status</a></li>
|
183
|
-
|
184
|
-
<li><a href="../../Mu/Curl/Error/Timeout.html">Mu::Curl::Error::Timeout</a></li>
|
185
|
-
|
186
|
-
<li><a href="../../Mu/Curl/Verify.html">Mu::Curl::Verify</a></li>
|
187
|
-
|
188
|
-
<li><a href="../../Mu/Curl/Verify/Request.html">Mu::Curl::Verify::Request</a></li>
|
189
|
-
|
190
|
-
<li><a href="../../Mu/Curl/Verify/Response.html">Mu::Curl::Verify::Response</a></li>
|
191
|
-
|
192
|
-
<li><a href="../../Mu/Curl/Verify/Result.html">Mu::Curl::Verify::Result</a></li>
|
193
|
-
|
194
|
-
<li><a href="../../Mu/Ddt.html">Mu::Ddt</a></li>
|
195
|
-
|
196
|
-
<li><a href="../../Mu/Helper.html">Mu::Helper</a></li>
|
197
|
-
|
198
|
-
<li><a href="../../Mu/Homepage.html">Mu::Homepage</a></li>
|
199
|
-
|
200
|
-
<li><a href="../../Mu/HttpHelper.html">Mu::HttpHelper</a></li>
|
201
|
-
|
202
|
-
<li><a href="../../Mu/Muapi.html">Mu::Muapi</a></li>
|
203
|
-
|
204
|
-
<li><a href="../../Mu/Netconfig.html">Mu::Netconfig</a></li>
|
205
|
-
|
206
|
-
<li><a href="../../Mu/Scale.html">Mu::Scale</a></li>
|
207
|
-
|
208
|
-
<li><a href="../../Mu/System.html">Mu::System</a></li>
|
209
|
-
|
210
|
-
<li><a href="../../Test.html">Test</a></li>
|
211
|
-
|
212
|
-
<li><a href="../../Test/Unit.html">Test::Unit</a></li>
|
213
|
-
|
214
|
-
<li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a></li>
|
215
|
-
|
216
|
-
<li><a href="../../Object.html">Object</a></li>
|
217
|
-
|
218
|
-
<li><a href="../../TCTestMu.html">TCTestMu</a></li>
|
219
|
-
|
220
|
-
</ul>
|
221
|
-
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
222
|
-
</div>
|
223
|
-
|
224
|
-
|
225
|
-
</div>
|
226
|
-
</div>
|
227
|
-
|
228
|
-
<div id="documentation">
|
229
|
-
<h1 class="class">Mu::Command::Cmd_homepage</h1>
|
230
|
-
|
231
|
-
<div id="description">
|
232
|
-
|
233
|
-
</div>
|
234
|
-
|
235
|
-
<!-- Constants -->
|
236
|
-
|
237
|
-
|
238
|
-
<!-- Attributes -->
|
239
|
-
|
240
|
-
<div id="attribute-method-details" class="method-section section">
|
241
|
-
<h3 class="section-header">Attributes</h3>
|
242
|
-
|
243
|
-
|
244
|
-
<div id="host-attribute-method" class="method-detail">
|
245
|
-
<a name="host"></a>
|
246
|
-
|
247
|
-
<a name="host="></a>
|
248
|
-
|
249
|
-
<div class="method-heading attribute-method-heading">
|
250
|
-
<span class="method-name">host</span><span
|
251
|
-
class="attribute-access-type">[RW]</span>
|
252
|
-
</div>
|
253
|
-
|
254
|
-
<div class="method-description">
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
</div>
|
259
|
-
</div>
|
260
|
-
|
261
|
-
<div id="username-attribute-method" class="method-detail">
|
262
|
-
<a name="username"></a>
|
263
|
-
|
264
|
-
<a name="username="></a>
|
265
|
-
|
266
|
-
<div class="method-heading attribute-method-heading">
|
267
|
-
<span class="method-name">username</span><span
|
268
|
-
class="attribute-access-type">[RW]</span>
|
269
|
-
</div>
|
270
|
-
|
271
|
-
<div class="method-description">
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
</div>
|
276
|
-
</div>
|
277
|
-
|
278
|
-
<div id="password-attribute-method" class="method-detail">
|
279
|
-
<a name="password"></a>
|
280
|
-
|
281
|
-
<a name="password="></a>
|
282
|
-
|
283
|
-
<div class="method-heading attribute-method-heading">
|
284
|
-
<span class="method-name">password</span><span
|
285
|
-
class="attribute-access-type">[RW]</span>
|
286
|
-
</div>
|
287
|
-
|
288
|
-
<div class="method-description">
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
</div>
|
293
|
-
</div>
|
294
|
-
|
295
|
-
<div id="api-attribute-method" class="method-detail">
|
296
|
-
<a name="api"></a>
|
297
|
-
|
298
|
-
<a name="api="></a>
|
299
|
-
|
300
|
-
<div class="method-heading attribute-method-heading">
|
301
|
-
<span class="method-name">api</span><span
|
302
|
-
class="attribute-access-type">[RW]</span>
|
303
|
-
</div>
|
304
|
-
|
305
|
-
<div class="method-description">
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
</div>
|
310
|
-
</div>
|
311
|
-
|
312
|
-
</div>
|
313
|
-
|
314
|
-
|
315
|
-
<!-- Methods -->
|
316
|
-
|
317
|
-
<div id="public-instance-method-details" class="method-section section">
|
318
|
-
<h3 class="section-header">Public Instance Methods</h3>
|
319
|
-
|
320
|
-
|
321
|
-
<div id="cmd-all-method" class="method-detail ">
|
322
|
-
<a name="method-i-cmd_all"></a>
|
323
|
-
|
324
|
-
<div class="method-heading">
|
325
|
-
|
326
|
-
<span class="method-name">cmd_all</span><span
|
327
|
-
class="method-args">(argv)</span>
|
328
|
-
<span class="method-click-advice">click to toggle source</span>
|
329
|
-
|
330
|
-
</div>
|
331
|
-
|
332
|
-
<div class="method-description">
|
333
|
-
|
334
|
-
<p>
|
335
|
-
returns all homepage information
|
336
|
-
</p>
|
337
|
-
<pre>
|
338
|
-
* argv = command-line arguments</pre>
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
<div class="method-source-code"
|
343
|
-
id="cmd-all-source">
|
344
|
-
<pre>
|
345
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_homepage.rb, line 17</span>
|
346
|
-
17: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_all</span> <span class="ruby-identifier">argv</span>
|
347
|
-
18: <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
348
|
-
19: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">all</span>
|
349
|
-
20: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
350
|
-
21: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
351
|
-
22: <span class="ruby-keyword kw">end</span></pre>
|
352
|
-
</div>
|
353
|
-
|
354
|
-
</div>
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
</div>
|
360
|
-
|
361
|
-
|
362
|
-
<div id="cmd-help-method" class="method-detail ">
|
363
|
-
<a name="method-i-cmd_help"></a>
|
364
|
-
|
365
|
-
<div class="method-heading">
|
366
|
-
|
367
|
-
<span class="method-name">cmd_help</span><span
|
368
|
-
class="method-args">(argv)</span>
|
369
|
-
<span class="method-click-advice">click to toggle source</span>
|
370
|
-
|
371
|
-
</div>
|
372
|
-
|
373
|
-
<div class="method-description">
|
374
|
-
|
375
|
-
<p>
|
376
|
-
displays command-line help
|
377
|
-
</p>
|
378
|
-
<pre>
|
379
|
-
* argv = command-line arguments</pre>
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
<div class="method-source-code"
|
384
|
-
id="cmd-help-source">
|
385
|
-
<pre>
|
386
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_homepage.rb, line 11</span>
|
387
|
-
11: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_help</span> <span class="ruby-identifier">argv</span>
|
388
|
-
12: <span class="ruby-identifier">help</span>
|
389
|
-
13: <span class="ruby-keyword kw">end</span></pre>
|
390
|
-
</div>
|
391
|
-
|
392
|
-
</div>
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
</div>
|
398
|
-
|
399
|
-
|
400
|
-
<div id="cmd-latest-test-method" class="method-detail ">
|
401
|
-
<a name="method-i-cmd_latest_test"></a>
|
402
|
-
|
403
|
-
<div class="method-heading">
|
404
|
-
|
405
|
-
<span class="method-name">cmd_latest_test</span><span
|
406
|
-
class="method-args">(argv)</span>
|
407
|
-
<span class="method-click-advice">click to toggle source</span>
|
408
|
-
|
409
|
-
</div>
|
410
|
-
|
411
|
-
<div class="method-description">
|
412
|
-
|
413
|
-
<p>
|
414
|
-
returns the latest test
|
415
|
-
</p>
|
416
|
-
<pre>
|
417
|
-
* argv = command-line arguments</pre>
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
<div class="method-source-code"
|
422
|
-
id="cmd-latest-test-source">
|
423
|
-
<pre>
|
424
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_homepage.rb, line 44</span>
|
425
|
-
44: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_latest_test</span> <span class="ruby-identifier">argv</span>
|
426
|
-
45: <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
427
|
-
46: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">latest_test</span>
|
428
|
-
47: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
429
|
-
48: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
430
|
-
49: <span class="ruby-keyword kw">end</span></pre>
|
431
|
-
</div>
|
432
|
-
|
433
|
-
</div>
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
</div>
|
439
|
-
|
440
|
-
|
441
|
-
<div id="cmd-queue-test-method" class="method-detail ">
|
442
|
-
<a name="method-i-cmd_queue_test"></a>
|
443
|
-
|
444
|
-
<div class="method-heading">
|
445
|
-
|
446
|
-
<span class="method-name">cmd_queue_test</span><span
|
447
|
-
class="method-args">(argv)</span>
|
448
|
-
<span class="method-click-advice">click to toggle source</span>
|
449
|
-
|
450
|
-
</div>
|
451
|
-
|
452
|
-
<div class="method-description">
|
453
|
-
|
454
|
-
<p>
|
455
|
-
returns the queued tests
|
456
|
-
</p>
|
457
|
-
<pre>
|
458
|
-
* argv = command-line arguments</pre>
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
<div class="method-source-code"
|
463
|
-
id="cmd-queue-test-source">
|
464
|
-
<pre>
|
465
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_homepage.rb, line 53</span>
|
466
|
-
53: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_queue_test</span> <span class="ruby-identifier">argv</span>
|
467
|
-
54: <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
468
|
-
55: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">queue_test</span>
|
469
|
-
56: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
470
|
-
57: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
471
|
-
58: <span class="ruby-keyword kw">end</span></pre>
|
472
|
-
</div>
|
473
|
-
|
474
|
-
</div>
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
</div>
|
480
|
-
|
481
|
-
|
482
|
-
<div id="cmd-recent-method" class="method-detail ">
|
483
|
-
<a name="method-i-cmd_recent"></a>
|
484
|
-
|
485
|
-
<div class="method-heading">
|
486
|
-
|
487
|
-
<span class="method-name">cmd_recent</span><span
|
488
|
-
class="method-args">(argv)</span>
|
489
|
-
<span class="method-click-advice">click to toggle source</span>
|
490
|
-
|
491
|
-
</div>
|
492
|
-
|
493
|
-
<div class="method-description">
|
494
|
-
|
495
|
-
<p>
|
496
|
-
returns recent homepage information
|
497
|
-
</p>
|
498
|
-
<pre>
|
499
|
-
* argv = command-line arguments</pre>
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
<div class="method-source-code"
|
504
|
-
id="cmd-recent-source">
|
505
|
-
<pre>
|
506
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_homepage.rb, line 26</span>
|
507
|
-
26: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_recent</span> <span class="ruby-identifier">argv</span>
|
508
|
-
27: <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
509
|
-
28: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">recent</span>
|
510
|
-
29: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
511
|
-
30: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
512
|
-
31: <span class="ruby-keyword kw">end</span></pre>
|
513
|
-
</div>
|
514
|
-
|
515
|
-
</div>
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
</div>
|
521
|
-
|
522
|
-
|
523
|
-
<div id="cmd-status-method" class="method-detail ">
|
524
|
-
<a name="method-i-cmd_status"></a>
|
525
|
-
|
526
|
-
<div class="method-heading">
|
527
|
-
|
528
|
-
<span class="method-name">cmd_status</span><span
|
529
|
-
class="method-args">(argv)</span>
|
530
|
-
<span class="method-click-advice">click to toggle source</span>
|
531
|
-
|
532
|
-
</div>
|
533
|
-
|
534
|
-
<div class="method-description">
|
535
|
-
|
536
|
-
<p>
|
537
|
-
returns homepage status information
|
538
|
-
</p>
|
539
|
-
<pre>
|
540
|
-
* argv = command-line arguments</pre>
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
<div class="method-source-code"
|
545
|
-
id="cmd-status-source">
|
546
|
-
<pre>
|
547
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_homepage.rb, line 35</span>
|
548
|
-
35: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_status</span> <span class="ruby-identifier">argv</span>
|
549
|
-
36: <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
550
|
-
37: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">status</span>
|
551
|
-
38: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
552
|
-
39: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
553
|
-
40: <span class="ruby-keyword kw">end</span></pre>
|
554
|
-
</div>
|
555
|
-
|
556
|
-
</div>
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
</div>
|
562
|
-
|
563
|
-
|
564
|
-
</div>
|
565
|
-
|
566
|
-
<div id="private-instance-method-details" class="method-section section">
|
567
|
-
<h3 class="section-header">Private Instance Methods</h3>
|
568
|
-
|
569
|
-
|
570
|
-
<div id="help-method" class="method-detail ">
|
571
|
-
<a name="method-i-help"></a>
|
572
|
-
|
573
|
-
<div class="method-heading">
|
574
|
-
|
575
|
-
<span class="method-name">help</span><span
|
576
|
-
class="method-args">()</span>
|
577
|
-
<span class="method-click-advice">click to toggle source</span>
|
578
|
-
|
579
|
-
</div>
|
580
|
-
|
581
|
-
<div class="method-description">
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
<div class="method-source-code"
|
588
|
-
id="help-source">
|
589
|
-
<pre>
|
590
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_homepage.rb, line 110</span>
|
591
|
-
110: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">help</span>
|
592
|
-
111: <span class="ruby-identifier">helps</span> = [
|
593
|
-
112: { <span class="ruby-value">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-h'</span>, <span class="ruby-value">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--help'</span>, <span class="ruby-value">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">''</span>, <span class="ruby-value">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'help on command line options'</span> },
|
594
|
-
113: { <span class="ruby-value">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-m'</span>, <span class="ruby-value">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--mu_string'</span>, <span class="ruby-value">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'<string>'</span>, <span class="ruby-value">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'user, password, mu_ip in the form of admin:admin@10.9.8.7'</span> },
|
595
|
-
114: { <span class="ruby-value">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-o'</span>, <span class="ruby-value">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--output'</span>, <span class="ruby-value">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'<string>'</span>, <span class="ruby-value">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'output logging to this file'</span> },
|
596
|
-
115: { <span class="ruby-value">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-v'</span>, <span class="ruby-value">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--verbose'</span>, <span class="ruby-value">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">''</span>, <span class="ruby-value">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'set Logger::DEBUG level'</span> }
|
597
|
-
116: ]
|
598
|
-
117:
|
599
|
-
118: <span class="ruby-identifier">cmds</span> = [
|
600
|
-
119: <span class="ruby-value str">"mu cmd_homepage:all"</span>,
|
601
|
-
120: <span class="ruby-value str">"mu cmd_homepage:help"</span>,
|
602
|
-
121: <span class="ruby-value str">"mu cmd_homepage:latest_test"</span>,
|
603
|
-
122: <span class="ruby-value str">"mu cmd_homepage:queue_test"</span>,
|
604
|
-
123: <span class="ruby-value str">"mu cmd_homepage:recent"</span>,
|
605
|
-
124: <span class="ruby-value str">"mu cmd_homepage:status"</span>,
|
606
|
-
125: ]
|
607
|
-
126:
|
608
|
-
127: <span class="ruby-identifier">max_long_size</span> = <span class="ruby-identifier">helps</span>.<span class="ruby-identifier">inject</span>(<span class="ruby-value">0</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">memo</span>, <span class="ruby-identifier">obj</span><span class="ruby-operator">|</span> [ <span class="ruby-identifier">obj</span>[<span class="ruby-value">:long</span>].<span class="ruby-identifier">size</span>, <span class="ruby-identifier">memo</span> ].<span class="ruby-identifier">max</span> }
|
609
|
-
128: <span class="ruby-identifier">max_value_size</span> = <span class="ruby-identifier">helps</span>.<span class="ruby-identifier">inject</span>(<span class="ruby-value">0</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">memo</span>, <span class="ruby-identifier">obj</span><span class="ruby-operator">|</span> [ <span class="ruby-identifier">obj</span>[<span class="ruby-value">:value</span>].<span class="ruby-identifier">size</span>, <span class="ruby-identifier">memo</span> ].<span class="ruby-identifier">max</span> }
|
610
|
-
129: <span class="ruby-identifier">puts</span>
|
611
|
-
130: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"Usage: mu cmd_homepage:<command> <options>"</span>
|
612
|
-
131: <span class="ruby-identifier">puts</span>
|
613
|
-
132: <span class="ruby-identifier">helps</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">h</span><span class="ruby-operator">|</span>
|
614
|
-
133: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"%-*s %*s %-*s %s"</span> <span class="ruby-operator">%</span> [<span class="ruby-identifier">max_long_size</span>, <span class="ruby-identifier">h</span>[<span class="ruby-value">:long</span>], <span class="ruby-value">2</span>, <span class="ruby-identifier">h</span>[<span class="ruby-value">:short</span>], <span class="ruby-identifier">max_value_size</span>, <span class="ruby-identifier">h</span>[<span class="ruby-value">:value</span>], <span class="ruby-identifier">h</span>[<span class="ruby-value">:help</span>]]
|
615
|
-
134: <span class="ruby-keyword kw">end</span>
|
616
|
-
135: <span class="ruby-identifier">puts</span>
|
617
|
-
136: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"Available Commands"</span>
|
618
|
-
137: <span class="ruby-identifier">puts</span>
|
619
|
-
138: <span class="ruby-identifier">cmds</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span> <span class="ruby-identifier">c</span> <span class="ruby-operator">|</span>
|
620
|
-
139: <span class="ruby-identifier">puts</span> <span class="ruby-identifier">c</span>
|
621
|
-
140: <span class="ruby-keyword kw">end</span>
|
622
|
-
141: <span class="ruby-identifier">puts</span>
|
623
|
-
142: <span class="ruby-keyword kw">end</span></pre>
|
624
|
-
</div>
|
625
|
-
|
626
|
-
</div>
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
</div>
|
632
|
-
|
633
|
-
|
634
|
-
<div id="parse-cli-method" class="method-detail ">
|
635
|
-
<a name="method-i-parse_cli"></a>
|
636
|
-
|
637
|
-
<div class="method-heading">
|
638
|
-
|
639
|
-
<span class="method-name">parse_cli</span><span
|
640
|
-
class="method-args">(argv)</span>
|
641
|
-
<span class="method-click-advice">click to toggle source</span>
|
642
|
-
|
643
|
-
</div>
|
644
|
-
|
645
|
-
<div class="method-description">
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
<div class="method-source-code"
|
652
|
-
id="parse-cli-source">
|
653
|
-
<pre>
|
654
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_homepage.rb, line 73</span>
|
655
|
-
73: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parse_cli</span> <span class="ruby-identifier">argv</span>
|
656
|
-
74: <span class="ruby-ivar">@hash</span> = {}
|
657
|
-
75: <span class="ruby-identifier">args</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
|
658
|
-
76: <span class="ruby-keyword kw">while</span> <span class="ruby-keyword kw">not</span> <span class="ruby-identifier">argv</span>.<span class="ruby-identifier">empty?</span>
|
659
|
-
77: <span class="ruby-identifier">args</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">argv</span>.<span class="ruby-identifier">shift</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">argv</span>.<span class="ruby-identifier">first</span>[<span class="ruby-value">0</span>,<span class="ruby-value">1</span>] <span class="ruby-operator">!=</span> <span class="ruby-value str">'-'</span>
|
660
|
-
78:
|
661
|
-
79: <span class="ruby-identifier">k</span> = <span class="ruby-identifier">argv</span>.<span class="ruby-identifier">shift</span>
|
662
|
-
80:
|
663
|
-
81: <span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-h'</span>, <span class="ruby-value str">'--help'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
664
|
-
82: <span class="ruby-identifier">help</span>
|
665
|
-
83: <span class="ruby-identifier">exit</span>
|
666
|
-
84: <span class="ruby-keyword kw">end</span>
|
667
|
-
85:
|
668
|
-
86: <span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-m'</span>, <span class="ruby-value str">'--mu_string'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
669
|
-
87: <span class="ruby-identifier">mu_string</span> = <span class="ruby-identifier">shift</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">argv</span>)
|
670
|
-
88: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">mu_string</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/(.+?):(.+?)@(.*)/</span>
|
671
|
-
89: <span class="ruby-identifier">@@mu_admin_user</span> = <span class="ruby-node">$1</span>
|
672
|
-
90: <span class="ruby-identifier">@@mu_admin_pass</span> = <span class="ruby-node">$2</span>
|
673
|
-
91: <span class="ruby-identifier">@@mu_ip</span> = <span class="ruby-node">$3</span>
|
674
|
-
92: <span class="ruby-keyword kw">end</span>
|
675
|
-
93: <span class="ruby-keyword kw">next</span>
|
676
|
-
94: <span class="ruby-keyword kw">end</span>
|
677
|
-
95:
|
678
|
-
96: <span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-o'</span>, <span class="ruby-value str">'--output'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
679
|
-
97: <span class="ruby-identifier">$stdout</span>.<span class="ruby-identifier">reopen</span>(<span class="ruby-identifier">shift</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">argv</span>), <span class="ruby-value str">"w"</span>)
|
680
|
-
98: <span class="ruby-keyword kw">next</span>
|
681
|
-
99: <span class="ruby-keyword kw">end</span>
|
682
|
-
100:
|
683
|
-
101: <span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-v'</span>, <span class="ruby-value str">'--verbose'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
684
|
-
102: <span class="ruby-identifier">$log</span>.<span class="ruby-identifier">level</span> = <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
685
|
-
103: <span class="ruby-keyword kw">next</span>
|
686
|
-
104: <span class="ruby-keyword kw">end</span>
|
687
|
-
105: <span class="ruby-keyword kw">end</span>
|
688
|
-
106:
|
689
|
-
107: <span class="ruby-identifier">args</span>
|
690
|
-
108: <span class="ruby-keyword kw">end</span></pre>
|
691
|
-
</div>
|
692
|
-
|
693
|
-
</div>
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
</div>
|
699
|
-
|
700
|
-
|
701
|
-
<div id="setup-method" class="method-detail ">
|
702
|
-
<a name="method-i-setup"></a>
|
703
|
-
|
704
|
-
<div class="method-heading">
|
705
|
-
|
706
|
-
<span class="method-name">setup</span><span
|
707
|
-
class="method-args">(argv)</span>
|
708
|
-
<span class="method-click-advice">click to toggle source</span>
|
709
|
-
|
710
|
-
</div>
|
711
|
-
|
712
|
-
<div class="method-description">
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
<div class="method-source-code"
|
719
|
-
id="setup-source">
|
720
|
-
<pre>
|
721
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_homepage.rb, line 62</span>
|
722
|
-
62: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
723
|
-
63: <span class="ruby-identifier">parse_cli</span> <span class="ruby-identifier">argv</span>
|
724
|
-
64: <span class="ruby-ivar">@host</span> = (<span class="ruby-identifier">@@mu_ip</span>.<span class="ruby-identifier">nil?</span>) <span class="ruby-operator">?</span> <span class="ruby-value str">"127.0.0.1"</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">@@mu_ip</span>
|
725
|
-
65: <span class="ruby-ivar">@username</span> = (<span class="ruby-identifier">@@mu_admin_user</span>.<span class="ruby-identifier">nil?</span>) <span class="ruby-operator">?</span> <span class="ruby-value str">"admin"</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">@@mu_admin_user</span>
|
726
|
-
66: <span class="ruby-ivar">@password</span> = (<span class="ruby-identifier">@@mu_admin_pass</span>.<span class="ruby-identifier">nil?</span>) <span class="ruby-operator">?</span> <span class="ruby-value str">"admin"</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">@@mu_admin_pass</span>
|
727
|
-
67: <span class="ruby-ivar">@cookie</span> = <span class="ruby-value str">""</span>
|
728
|
-
68: <span class="ruby-ivar">@response</span> = <span class="ruby-keyword kw">nil</span>
|
729
|
-
69: <span class="ruby-ivar">@api</span> = <span class="ruby-constant">Homepage</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>)
|
730
|
-
70: <span class="ruby-identifier">msg</span> <span class="ruby-node">"Created Homepage object to :#{@host}"</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
731
|
-
71: <span class="ruby-keyword kw">end</span></pre>
|
732
|
-
</div>
|
733
|
-
|
734
|
-
</div>
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
</div>
|
740
|
-
|
741
|
-
|
742
|
-
</div>
|
743
|
-
|
744
|
-
|
745
|
-
</div>
|
746
|
-
|
747
|
-
|
748
|
-
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
749
|
-
|
750
|
-
<p>Disabled; run with --debug to generate this.</p>
|
751
|
-
|
752
|
-
</div>
|
753
|
-
|
754
|
-
<div id="validator-badges">
|
755
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
756
|
-
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
757
|
-
Rdoc Generator</a> 1.1.6</small>.</p>
|
758
|
-
</div>
|
759
|
-
|
760
|
-
</body>
|
761
|
-
</html>
|
762
|
-
|