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
data/rdoc/LICENSE_txt.html
DELETED
@@ -1,201 +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
|
-
|
5
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
6
|
-
<head>
|
7
|
-
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
8
|
-
|
9
|
-
<title>File: LICENSE.txt [RDoc Documentation]</title>
|
10
|
-
|
11
|
-
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet" />
|
12
|
-
|
13
|
-
<script src="./js/jquery.js" type="text/javascript"
|
14
|
-
charset="utf-8"></script>
|
15
|
-
<script src="./js/thickbox-compressed.js" type="text/javascript"
|
16
|
-
charset="utf-8"></script>
|
17
|
-
<script src="./js/quicksearch.js" type="text/javascript"
|
18
|
-
charset="utf-8"></script>
|
19
|
-
<script src="./js/darkfish.js" type="text/javascript"
|
20
|
-
charset="utf-8"></script>
|
21
|
-
</head>
|
22
|
-
|
23
|
-
<body class="file">
|
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="project-metadata">
|
36
|
-
|
37
|
-
|
38
|
-
<div id="fileindex-section" class="section project-section">
|
39
|
-
<h3 class="section-header">Files</h3>
|
40
|
-
<ul>
|
41
|
-
|
42
|
-
<li class="file"><a href="./Gemfile.html">Gemfile</a></li>
|
43
|
-
|
44
|
-
<li class="file"><a href="./LICENSE_txt.html">LICENSE.txt</a></li>
|
45
|
-
|
46
|
-
<li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
|
47
|
-
|
48
|
-
<li class="file"><a href="./Rakefile.html">Rakefile</a></li>
|
49
|
-
|
50
|
-
<li class="file"><a href="./VERSION.html">VERSION</a></li>
|
51
|
-
|
52
|
-
</ul>
|
53
|
-
</div>
|
54
|
-
|
55
|
-
|
56
|
-
<div id="classindex-section" class="section project-section">
|
57
|
-
<h3 class="section-header">Class Index
|
58
|
-
<span class="search-toggle"><img src="./images/find.png"
|
59
|
-
height="16" width="16" alt="[+]"
|
60
|
-
title="show/hide quicksearch" /></span></h3>
|
61
|
-
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
62
|
-
<fieldset>
|
63
|
-
<legend>Quicksearch</legend>
|
64
|
-
<input type="text" name="quicksearch" value=""
|
65
|
-
class="quicksearch-field" />
|
66
|
-
</fieldset>
|
67
|
-
</form>
|
68
|
-
|
69
|
-
<ul class="link-list">
|
70
|
-
|
71
|
-
<li><a href="./Mu.html">Mu</a></li>
|
72
|
-
|
73
|
-
<li><a href="./Mu/Client.html">Mu::Client</a></li>
|
74
|
-
|
75
|
-
<li><a href="./Mu/Command.html">Mu::Command</a></li>
|
76
|
-
|
77
|
-
<li><a href="./Mu/Command/API.html">Mu::Command::API</a></li>
|
78
|
-
|
79
|
-
<li><a href="./Mu/Command/API.html">Mu::Command::API</a></li>
|
80
|
-
|
81
|
-
<li><a href="./Mu/Command/Cmd_appid.html">Mu::Command::Cmd_appid</a></li>
|
82
|
-
|
83
|
-
<li><a href="./Mu/Command/Cmd_cli.html">Mu::Command::Cmd_cli</a></li>
|
84
|
-
|
85
|
-
<li><a href="./Mu/Command/Cmd_ddt.html">Mu::Command::Cmd_ddt</a></li>
|
86
|
-
|
87
|
-
<li><a href="./Mu/Command/Cmd_homepage.html">Mu::Command::Cmd_homepage</a></li>
|
88
|
-
|
89
|
-
<li><a href="./Mu/Command/Cmd_muapi.html">Mu::Command::Cmd_muapi</a></li>
|
90
|
-
|
91
|
-
<li><a href="./Mu/Command/Cmd_netconfig.html">Mu::Command::Cmd_netconfig</a></li>
|
92
|
-
|
93
|
-
<li><a href="./Mu/Command/Cmd_runscale.html">Mu::Command::Cmd_runscale</a></li>
|
94
|
-
|
95
|
-
<li><a href="./Mu/Command/Cmd_runscenario.html">Mu::Command::Cmd_runscenario</a></li>
|
96
|
-
|
97
|
-
<li><a href="./Mu/Command/Cmd_runverify.html">Mu::Command::Cmd_runverify</a></li>
|
98
|
-
|
99
|
-
<li><a href="./Mu/Command/Cmd_scale.html">Mu::Command::Cmd_scale</a></li>
|
100
|
-
|
101
|
-
<li><a href="./Mu/Command/Cmd_system.html">Mu::Command::Cmd_system</a></li>
|
102
|
-
|
103
|
-
<li><a href="./Mu/Command/Curl.html">Mu::Command::Curl</a></li>
|
104
|
-
|
105
|
-
<li><a href="./Mu/Command/Help.html">Mu::Command::Help</a></li>
|
106
|
-
|
107
|
-
<li><a href="./Mu/Curl.html">Mu::Curl</a></li>
|
108
|
-
|
109
|
-
<li><a href="./Mu/Curl/Error.html">Mu::Curl::Error</a></li>
|
110
|
-
|
111
|
-
<li><a href="./Mu/Curl/Error/Authorize.html">Mu::Curl::Error::Authorize</a></li>
|
112
|
-
|
113
|
-
<li><a href="./Mu/Curl/Error/Connect.html">Mu::Curl::Error::Connect</a></li>
|
114
|
-
|
115
|
-
<li><a href="./Mu/Curl/Error/DNS.html">Mu::Curl::Error::DNS</a></li>
|
116
|
-
|
117
|
-
<li><a href="./Mu/Curl/Error/Region.html">Mu::Curl::Error::Region</a></li>
|
118
|
-
|
119
|
-
<li><a href="./Mu/Curl/Error/Status.html">Mu::Curl::Error::Status</a></li>
|
120
|
-
|
121
|
-
<li><a href="./Mu/Curl/Error/Timeout.html">Mu::Curl::Error::Timeout</a></li>
|
122
|
-
|
123
|
-
<li><a href="./Mu/Curl/Verify.html">Mu::Curl::Verify</a></li>
|
124
|
-
|
125
|
-
<li><a href="./Mu/Curl/Verify/Request.html">Mu::Curl::Verify::Request</a></li>
|
126
|
-
|
127
|
-
<li><a href="./Mu/Curl/Verify/Response.html">Mu::Curl::Verify::Response</a></li>
|
128
|
-
|
129
|
-
<li><a href="./Mu/Curl/Verify/Result.html">Mu::Curl::Verify::Result</a></li>
|
130
|
-
|
131
|
-
<li><a href="./Mu/Ddt.html">Mu::Ddt</a></li>
|
132
|
-
|
133
|
-
<li><a href="./Mu/Helper.html">Mu::Helper</a></li>
|
134
|
-
|
135
|
-
<li><a href="./Mu/Homepage.html">Mu::Homepage</a></li>
|
136
|
-
|
137
|
-
<li><a href="./Mu/HttpHelper.html">Mu::HttpHelper</a></li>
|
138
|
-
|
139
|
-
<li><a href="./Mu/Muapi.html">Mu::Muapi</a></li>
|
140
|
-
|
141
|
-
<li><a href="./Mu/Netconfig.html">Mu::Netconfig</a></li>
|
142
|
-
|
143
|
-
<li><a href="./Mu/Scale.html">Mu::Scale</a></li>
|
144
|
-
|
145
|
-
<li><a href="./Mu/System.html">Mu::System</a></li>
|
146
|
-
|
147
|
-
<li><a href="./Test.html">Test</a></li>
|
148
|
-
|
149
|
-
<li><a href="./Test/Unit.html">Test::Unit</a></li>
|
150
|
-
|
151
|
-
<li><a href="./Test/Unit/TestCase.html">Test::Unit::TestCase</a></li>
|
152
|
-
|
153
|
-
<li><a href="./Object.html">Object</a></li>
|
154
|
-
|
155
|
-
<li><a href="./TCTestMu.html">TCTestMu</a></li>
|
156
|
-
|
157
|
-
</ul>
|
158
|
-
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
159
|
-
</div>
|
160
|
-
|
161
|
-
|
162
|
-
</div>
|
163
|
-
</div>
|
164
|
-
|
165
|
-
<div id="documentation">
|
166
|
-
<p>
|
167
|
-
Copyright © 2010 tlichtenberg
|
168
|
-
</p>
|
169
|
-
<p>
|
170
|
-
Permission is hereby granted, free of charge, to any person obtaining a
|
171
|
-
copy of this software and associated documentation files (the
|
172
|
-
“Software”), to deal in the Software without restriction,
|
173
|
-
including without limitation the rights to use, copy, modify, merge,
|
174
|
-
publish, distribute, sublicense, and/or sell copies of the Software, and to
|
175
|
-
permit persons to whom the Software is furnished to do so, subject to the
|
176
|
-
following conditions:
|
177
|
-
</p>
|
178
|
-
<p>
|
179
|
-
The above copyright notice and this permission notice shall be included in
|
180
|
-
all copies or substantial portions of the Software.
|
181
|
-
</p>
|
182
|
-
<p>
|
183
|
-
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
|
184
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
185
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
186
|
-
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
187
|
-
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
188
|
-
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
189
|
-
USE OR OTHER DEALINGS IN THE SOFTWARE.
|
190
|
-
</p>
|
191
|
-
|
192
|
-
</div>
|
193
|
-
|
194
|
-
<div id="validator-badges">
|
195
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
196
|
-
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
197
|
-
Rdoc Generator</a> 1.1.6</small>.</p>
|
198
|
-
</div>
|
199
|
-
</body>
|
200
|
-
</html>
|
201
|
-
|
data/rdoc/Mu.html
DELETED
@@ -1,478 +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</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/api/ddt_rb.html?TB_iframe=true&height=550&width=785"
|
42
|
-
class="thickbox" title="lib/mu/api/ddt.rb">lib/mu/api/ddt.rb</a></li>
|
43
|
-
|
44
|
-
<li><a href="./lib/mu/api/homepage_rb.html?TB_iframe=true&height=550&width=785"
|
45
|
-
class="thickbox" title="lib/mu/api/homepage.rb">lib/mu/api/homepage.rb</a></li>
|
46
|
-
|
47
|
-
<li><a href="./lib/mu/api/muapi_rb.html?TB_iframe=true&height=550&width=785"
|
48
|
-
class="thickbox" title="lib/mu/api/muapi.rb">lib/mu/api/muapi.rb</a></li>
|
49
|
-
|
50
|
-
<li><a href="./lib/mu/api/netconfig_rb.html?TB_iframe=true&height=550&width=785"
|
51
|
-
class="thickbox" title="lib/mu/api/netconfig.rb">lib/mu/api/netconfig.rb</a></li>
|
52
|
-
|
53
|
-
<li><a href="./lib/mu/api/scale_rb.html?TB_iframe=true&height=550&width=785"
|
54
|
-
class="thickbox" title="lib/mu/api/scale.rb">lib/mu/api/scale.rb</a></li>
|
55
|
-
|
56
|
-
<li><a href="./lib/mu/api/system_rb.html?TB_iframe=true&height=550&width=785"
|
57
|
-
class="thickbox" title="lib/mu/api/system.rb">lib/mu/api/system.rb</a></li>
|
58
|
-
|
59
|
-
<li><a href="./lib/mu/client_rb.html?TB_iframe=true&height=550&width=785"
|
60
|
-
class="thickbox" title="lib/mu/client.rb">lib/mu/client.rb</a></li>
|
61
|
-
|
62
|
-
<li><a href="./lib/mu/command/api_rb.html?TB_iframe=true&height=550&width=785"
|
63
|
-
class="thickbox" title="lib/mu/command/api.rb">lib/mu/command/api.rb</a></li>
|
64
|
-
|
65
|
-
<li><a href="./lib/mu/command/cmd_appid_rb.html?TB_iframe=true&height=550&width=785"
|
66
|
-
class="thickbox" title="lib/mu/command/cmd_appid.rb">lib/mu/command/cmd_appid.rb</a></li>
|
67
|
-
|
68
|
-
<li><a href="./lib/mu/command/cmd_cli_rb.html?TB_iframe=true&height=550&width=785"
|
69
|
-
class="thickbox" title="lib/mu/command/cmd_cli.rb">lib/mu/command/cmd_cli.rb</a></li>
|
70
|
-
|
71
|
-
<li><a href="./lib/mu/command/cmd_ddt_rb.html?TB_iframe=true&height=550&width=785"
|
72
|
-
class="thickbox" title="lib/mu/command/cmd_ddt.rb">lib/mu/command/cmd_ddt.rb</a></li>
|
73
|
-
|
74
|
-
<li><a href="./lib/mu/command/cmd_homepage_rb.html?TB_iframe=true&height=550&width=785"
|
75
|
-
class="thickbox" title="lib/mu/command/cmd_homepage.rb">lib/mu/command/cmd_homepage.rb</a></li>
|
76
|
-
|
77
|
-
<li><a href="./lib/mu/command/cmd_muapi_rb.html?TB_iframe=true&height=550&width=785"
|
78
|
-
class="thickbox" title="lib/mu/command/cmd_muapi.rb">lib/mu/command/cmd_muapi.rb</a></li>
|
79
|
-
|
80
|
-
<li><a href="./lib/mu/command/cmd_netconfig_rb.html?TB_iframe=true&height=550&width=785"
|
81
|
-
class="thickbox" title="lib/mu/command/cmd_netconfig.rb">lib/mu/command/cmd_netconfig.rb</a></li>
|
82
|
-
|
83
|
-
<li><a href="./lib/mu/command/cmd_runscale_rb.html?TB_iframe=true&height=550&width=785"
|
84
|
-
class="thickbox" title="lib/mu/command/cmd_runscale.rb">lib/mu/command/cmd_runscale.rb</a></li>
|
85
|
-
|
86
|
-
<li><a href="./lib/mu/command/cmd_runscenario_rb.html?TB_iframe=true&height=550&width=785"
|
87
|
-
class="thickbox" title="lib/mu/command/cmd_runscenario.rb">lib/mu/command/cmd_runscenario.rb</a></li>
|
88
|
-
|
89
|
-
<li><a href="./lib/mu/command/cmd_runverify_rb.html?TB_iframe=true&height=550&width=785"
|
90
|
-
class="thickbox" title="lib/mu/command/cmd_runverify.rb">lib/mu/command/cmd_runverify.rb</a></li>
|
91
|
-
|
92
|
-
<li><a href="./lib/mu/command/cmd_scale_rb.html?TB_iframe=true&height=550&width=785"
|
93
|
-
class="thickbox" title="lib/mu/command/cmd_scale.rb">lib/mu/command/cmd_scale.rb</a></li>
|
94
|
-
|
95
|
-
<li><a href="./lib/mu/command/cmd_system_rb.html?TB_iframe=true&height=550&width=785"
|
96
|
-
class="thickbox" title="lib/mu/command/cmd_system.rb">lib/mu/command/cmd_system.rb</a></li>
|
97
|
-
|
98
|
-
<li><a href="./lib/mu/command/curl_rb.html?TB_iframe=true&height=550&width=785"
|
99
|
-
class="thickbox" title="lib/mu/command/curl.rb">lib/mu/command/curl.rb</a></li>
|
100
|
-
|
101
|
-
<li><a href="./lib/mu/command/help_rb.html?TB_iframe=true&height=550&width=785"
|
102
|
-
class="thickbox" title="lib/mu/command/help.rb">lib/mu/command/help.rb</a></li>
|
103
|
-
|
104
|
-
<li><a href="./lib/mu/command_rb.html?TB_iframe=true&height=550&width=785"
|
105
|
-
class="thickbox" title="lib/mu/command.rb">lib/mu/command.rb</a></li>
|
106
|
-
|
107
|
-
<li><a href="./lib/mu/curl/error_rb.html?TB_iframe=true&height=550&width=785"
|
108
|
-
class="thickbox" title="lib/mu/curl/error.rb">lib/mu/curl/error.rb</a></li>
|
109
|
-
|
110
|
-
<li><a href="./lib/mu/curl/verify_rb.html?TB_iframe=true&height=550&width=785"
|
111
|
-
class="thickbox" title="lib/mu/curl/verify.rb">lib/mu/curl/verify.rb</a></li>
|
112
|
-
|
113
|
-
<li><a href="./lib/mu/helper_rb.html?TB_iframe=true&height=550&width=785"
|
114
|
-
class="thickbox" title="lib/mu/helper.rb">lib/mu/helper.rb</a></li>
|
115
|
-
|
116
|
-
<li><a href="./lib/mu/http_helper_rb.html?TB_iframe=true&height=550&width=785"
|
117
|
-
class="thickbox" title="lib/mu/http_helper.rb">lib/mu/http_helper.rb</a></li>
|
118
|
-
|
119
|
-
<li><a href="./lib/mu_rb.html?TB_iframe=true&height=550&width=785"
|
120
|
-
class="thickbox" title="lib/mu.rb">lib/mu.rb</a></li>
|
121
|
-
|
122
|
-
</ul>
|
123
|
-
</div>
|
124
|
-
</div>
|
125
|
-
|
126
|
-
|
127
|
-
</div>
|
128
|
-
|
129
|
-
<div id="class-metadata">
|
130
|
-
|
131
|
-
<!-- Parent Class -->
|
132
|
-
|
133
|
-
<div id="parent-class-section" class="section">
|
134
|
-
<h3 class="section-header">Parent</h3>
|
135
|
-
|
136
|
-
<p class="link"><a href="Object.html">Object</a></p>
|
137
|
-
|
138
|
-
</div>
|
139
|
-
|
140
|
-
|
141
|
-
<!-- Namespace Contents -->
|
142
|
-
|
143
|
-
<div id="namespace-list-section" class="section">
|
144
|
-
<h3 class="section-header">Namespace</h3>
|
145
|
-
<ul class="link-list">
|
146
|
-
|
147
|
-
<li><span class="type">MODULE</span> <a href="Mu/Curl.html">Mu::Curl</a></li>
|
148
|
-
|
149
|
-
<li><span class="type">MODULE</span> <a href="Mu/Helper.html">Mu::Helper</a></li>
|
150
|
-
|
151
|
-
<li><span class="type">CLASS</span> <a href="Mu/Client.html">Mu::Client</a></li>
|
152
|
-
|
153
|
-
<li><span class="type">CLASS</span> <a href="Mu/Command.html">Mu::Command</a></li>
|
154
|
-
|
155
|
-
<li><span class="type">CLASS</span> <a href="Mu/Ddt.html">Mu::Ddt</a></li>
|
156
|
-
|
157
|
-
<li><span class="type">CLASS</span> <a href="Mu/Homepage.html">Mu::Homepage</a></li>
|
158
|
-
|
159
|
-
<li><span class="type">CLASS</span> <a href="Mu/HttpHelper.html">Mu::HttpHelper</a></li>
|
160
|
-
|
161
|
-
<li><span class="type">CLASS</span> <a href="Mu/Muapi.html">Mu::Muapi</a></li>
|
162
|
-
|
163
|
-
<li><span class="type">CLASS</span> <a href="Mu/Netconfig.html">Mu::Netconfig</a></li>
|
164
|
-
|
165
|
-
<li><span class="type">CLASS</span> <a href="Mu/Scale.html">Mu::Scale</a></li>
|
166
|
-
|
167
|
-
<li><span class="type">CLASS</span> <a href="Mu/System.html">Mu::System</a></li>
|
168
|
-
|
169
|
-
</ul>
|
170
|
-
</div>
|
171
|
-
|
172
|
-
|
173
|
-
<!-- Method Quickref -->
|
174
|
-
|
175
|
-
<div id="method-list-section" class="section">
|
176
|
-
<h3 class="section-header">Methods</h3>
|
177
|
-
<ul class="link-list">
|
178
|
-
|
179
|
-
<li><a href="#method-c-check_version">::check_version</a></li>
|
180
|
-
|
181
|
-
<li><a href="#method-c-run">::run</a></li>
|
182
|
-
|
183
|
-
</ul>
|
184
|
-
</div>
|
185
|
-
|
186
|
-
|
187
|
-
<!-- Included Modules -->
|
188
|
-
|
189
|
-
</div>
|
190
|
-
|
191
|
-
<div id="project-metadata">
|
192
|
-
|
193
|
-
|
194
|
-
<div id="fileindex-section" class="section project-section">
|
195
|
-
<h3 class="section-header">Files</h3>
|
196
|
-
<ul>
|
197
|
-
|
198
|
-
<li class="file"><a href="./Gemfile.html">Gemfile</a></li>
|
199
|
-
|
200
|
-
<li class="file"><a href="./LICENSE_txt.html">LICENSE.txt</a></li>
|
201
|
-
|
202
|
-
<li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
|
203
|
-
|
204
|
-
<li class="file"><a href="./Rakefile.html">Rakefile</a></li>
|
205
|
-
|
206
|
-
<li class="file"><a href="./VERSION.html">VERSION</a></li>
|
207
|
-
|
208
|
-
</ul>
|
209
|
-
</div>
|
210
|
-
|
211
|
-
|
212
|
-
<div id="classindex-section" class="section project-section">
|
213
|
-
<h3 class="section-header">Class Index
|
214
|
-
<span class="search-toggle"><img src="./images/find.png"
|
215
|
-
height="16" width="16" alt="[+]"
|
216
|
-
title="show/hide quicksearch" /></span></h3>
|
217
|
-
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
218
|
-
<fieldset>
|
219
|
-
<legend>Quicksearch</legend>
|
220
|
-
<input type="text" name="quicksearch" value=""
|
221
|
-
class="quicksearch-field" />
|
222
|
-
</fieldset>
|
223
|
-
</form>
|
224
|
-
|
225
|
-
<ul class="link-list">
|
226
|
-
|
227
|
-
<li><a href="./Mu.html">Mu</a></li>
|
228
|
-
|
229
|
-
<li><a href="./Mu/Client.html">Mu::Client</a></li>
|
230
|
-
|
231
|
-
<li><a href="./Mu/Command.html">Mu::Command</a></li>
|
232
|
-
|
233
|
-
<li><a href="./Mu/Command/API.html">Mu::Command::API</a></li>
|
234
|
-
|
235
|
-
<li><a href="./Mu/Command/API.html">Mu::Command::API</a></li>
|
236
|
-
|
237
|
-
<li><a href="./Mu/Command/Cmd_appid.html">Mu::Command::Cmd_appid</a></li>
|
238
|
-
|
239
|
-
<li><a href="./Mu/Command/Cmd_cli.html">Mu::Command::Cmd_cli</a></li>
|
240
|
-
|
241
|
-
<li><a href="./Mu/Command/Cmd_ddt.html">Mu::Command::Cmd_ddt</a></li>
|
242
|
-
|
243
|
-
<li><a href="./Mu/Command/Cmd_homepage.html">Mu::Command::Cmd_homepage</a></li>
|
244
|
-
|
245
|
-
<li><a href="./Mu/Command/Cmd_muapi.html">Mu::Command::Cmd_muapi</a></li>
|
246
|
-
|
247
|
-
<li><a href="./Mu/Command/Cmd_netconfig.html">Mu::Command::Cmd_netconfig</a></li>
|
248
|
-
|
249
|
-
<li><a href="./Mu/Command/Cmd_runscale.html">Mu::Command::Cmd_runscale</a></li>
|
250
|
-
|
251
|
-
<li><a href="./Mu/Command/Cmd_runscenario.html">Mu::Command::Cmd_runscenario</a></li>
|
252
|
-
|
253
|
-
<li><a href="./Mu/Command/Cmd_runverify.html">Mu::Command::Cmd_runverify</a></li>
|
254
|
-
|
255
|
-
<li><a href="./Mu/Command/Cmd_scale.html">Mu::Command::Cmd_scale</a></li>
|
256
|
-
|
257
|
-
<li><a href="./Mu/Command/Cmd_system.html">Mu::Command::Cmd_system</a></li>
|
258
|
-
|
259
|
-
<li><a href="./Mu/Command/Curl.html">Mu::Command::Curl</a></li>
|
260
|
-
|
261
|
-
<li><a href="./Mu/Command/Help.html">Mu::Command::Help</a></li>
|
262
|
-
|
263
|
-
<li><a href="./Mu/Curl.html">Mu::Curl</a></li>
|
264
|
-
|
265
|
-
<li><a href="./Mu/Curl/Error.html">Mu::Curl::Error</a></li>
|
266
|
-
|
267
|
-
<li><a href="./Mu/Curl/Error/Authorize.html">Mu::Curl::Error::Authorize</a></li>
|
268
|
-
|
269
|
-
<li><a href="./Mu/Curl/Error/Connect.html">Mu::Curl::Error::Connect</a></li>
|
270
|
-
|
271
|
-
<li><a href="./Mu/Curl/Error/DNS.html">Mu::Curl::Error::DNS</a></li>
|
272
|
-
|
273
|
-
<li><a href="./Mu/Curl/Error/Region.html">Mu::Curl::Error::Region</a></li>
|
274
|
-
|
275
|
-
<li><a href="./Mu/Curl/Error/Status.html">Mu::Curl::Error::Status</a></li>
|
276
|
-
|
277
|
-
<li><a href="./Mu/Curl/Error/Timeout.html">Mu::Curl::Error::Timeout</a></li>
|
278
|
-
|
279
|
-
<li><a href="./Mu/Curl/Verify.html">Mu::Curl::Verify</a></li>
|
280
|
-
|
281
|
-
<li><a href="./Mu/Curl/Verify/Request.html">Mu::Curl::Verify::Request</a></li>
|
282
|
-
|
283
|
-
<li><a href="./Mu/Curl/Verify/Response.html">Mu::Curl::Verify::Response</a></li>
|
284
|
-
|
285
|
-
<li><a href="./Mu/Curl/Verify/Result.html">Mu::Curl::Verify::Result</a></li>
|
286
|
-
|
287
|
-
<li><a href="./Mu/Ddt.html">Mu::Ddt</a></li>
|
288
|
-
|
289
|
-
<li><a href="./Mu/Helper.html">Mu::Helper</a></li>
|
290
|
-
|
291
|
-
<li><a href="./Mu/Homepage.html">Mu::Homepage</a></li>
|
292
|
-
|
293
|
-
<li><a href="./Mu/HttpHelper.html">Mu::HttpHelper</a></li>
|
294
|
-
|
295
|
-
<li><a href="./Mu/Muapi.html">Mu::Muapi</a></li>
|
296
|
-
|
297
|
-
<li><a href="./Mu/Netconfig.html">Mu::Netconfig</a></li>
|
298
|
-
|
299
|
-
<li><a href="./Mu/Scale.html">Mu::Scale</a></li>
|
300
|
-
|
301
|
-
<li><a href="./Mu/System.html">Mu::System</a></li>
|
302
|
-
|
303
|
-
<li><a href="./Test.html">Test</a></li>
|
304
|
-
|
305
|
-
<li><a href="./Test/Unit.html">Test::Unit</a></li>
|
306
|
-
|
307
|
-
<li><a href="./Test/Unit/TestCase.html">Test::Unit::TestCase</a></li>
|
308
|
-
|
309
|
-
<li><a href="./Object.html">Object</a></li>
|
310
|
-
|
311
|
-
<li><a href="./TCTestMu.html">TCTestMu</a></li>
|
312
|
-
|
313
|
-
</ul>
|
314
|
-
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
315
|
-
</div>
|
316
|
-
|
317
|
-
|
318
|
-
</div>
|
319
|
-
</div>
|
320
|
-
|
321
|
-
<div id="documentation">
|
322
|
-
<h1 class="class">Mu</h1>
|
323
|
-
|
324
|
-
<div id="description">
|
325
|
-
<p>
|
326
|
-
Api methods to access the <a href="Mu.html">Mu</a> CLI calls
|
327
|
-
</p>
|
328
|
-
<hr style="height: 1px"></hr><p>
|
329
|
-
Command-line tools and applications for using the <a href="Mu.html">Mu</a>
|
330
|
-
Dynamics REST Api’s
|
331
|
-
</p>
|
332
|
-
|
333
|
-
</div>
|
334
|
-
|
335
|
-
<!-- Constants -->
|
336
|
-
|
337
|
-
<div id="constants-list" class="section">
|
338
|
-
<h3 class="section-header">Constants</h3>
|
339
|
-
<dl>
|
340
|
-
|
341
|
-
<dt><a name="Version">Version</a></dt>
|
342
|
-
|
343
|
-
<dd class="description"></dd>
|
344
|
-
|
345
|
-
|
346
|
-
</dl>
|
347
|
-
</div>
|
348
|
-
|
349
|
-
|
350
|
-
<!-- Attributes -->
|
351
|
-
|
352
|
-
|
353
|
-
<!-- Methods -->
|
354
|
-
|
355
|
-
<div id="public-class-method-details" class="method-section section">
|
356
|
-
<h3 class="section-header">Public Class Methods</h3>
|
357
|
-
|
358
|
-
|
359
|
-
<div id="check-version-method" class="method-detail ">
|
360
|
-
<a name="method-c-check_version"></a>
|
361
|
-
|
362
|
-
<div class="method-heading">
|
363
|
-
|
364
|
-
<span class="method-name">check_version</span><span
|
365
|
-
class="method-args">()</span>
|
366
|
-
<span class="method-click-advice">click to toggle source</span>
|
367
|
-
|
368
|
-
</div>
|
369
|
-
|
370
|
-
<div class="method-description">
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
<div class="method-source-code"
|
377
|
-
id="check-version-source">
|
378
|
-
<pre>
|
379
|
-
<span class="ruby-comment cmt"># File lib/mu.rb, line 44</span>
|
380
|
-
44: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">check_version</span>
|
381
|
-
45: <span class="ruby-keyword kw">begin</span>
|
382
|
-
46: <span class="ruby-identifier">api</span> = <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">System</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">ENV</span>[<span class="ruby-value str">'MU_IP'</span>], <span class="ruby-constant">ENV</span>[<span class="ruby-value str">'MU_ADMIN_USER'</span>], <span class="ruby-constant">ENV</span>[<span class="ruby-value str">'MU_ADMIN_PASS'</span>])
|
383
|
-
47: <span class="ruby-identifier">resp</span> = <span class="ruby-constant">Nokogiri</span><span class="ruby-operator">::</span><span class="ruby-constant">XML</span>(<span class="ruby-identifier">api</span>.<span class="ruby-identifier">status</span>)
|
384
|
-
48: <span class="ruby-identifier">version_string</span> = <span class="ruby-identifier">resp</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">"//versions/platform"</span>)[<span class="ruby-value">0</span>].<span class="ruby-identifier">content</span>
|
385
|
-
49: <span class="ruby-identifier">version</span> = <span class="ruby-identifier">version_string</span>[<span class="ruby-value">0</span><span class="ruby-operator">...</span><span class="ruby-identifier">version_string</span>.<span class="ruby-identifier">rindex</span>(<span class="ruby-value str">"."</span>)]
|
386
|
-
50: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@version</span> <span class="ruby-operator">></span> <span class="ruby-identifier">version</span>
|
387
|
-
51: <span class="ruby-identifier">puts</span> <span class="ruby-node">"Note. Version mismatch. Mu Gem version (#{@version}) is higher than Mu Platform version (#{version})."</span>
|
388
|
-
52: <span class="ruby-keyword kw">end</span>
|
389
|
-
53: <span class="ruby-keyword kw">rescue</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">e</span>
|
390
|
-
54: <span class="ruby-identifier">puts</span> <span class="ruby-node">"#{e}. Check Mu env settings: $MU_IP (#{ENV['MU_IP']}), $MU_ADMIN_USER (#{ENV['MU_ADMIN_USER']}), $MU_ADMIN_PASS (#{ENV['MU_ADMIN_PASS']}) "</span>
|
391
|
-
55: <span class="ruby-keyword kw">end</span>
|
392
|
-
56:
|
393
|
-
57: <span class="ruby-keyword kw">end</span></pre>
|
394
|
-
</div>
|
395
|
-
|
396
|
-
</div>
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
</div>
|
402
|
-
|
403
|
-
|
404
|
-
<div id="run-method" class="method-detail ">
|
405
|
-
<a name="method-c-run"></a>
|
406
|
-
|
407
|
-
<div class="method-heading">
|
408
|
-
|
409
|
-
<span class="method-name">run</span><span
|
410
|
-
class="method-args">(cmd, argv)</span>
|
411
|
-
<span class="method-click-advice">click to toggle source</span>
|
412
|
-
|
413
|
-
</div>
|
414
|
-
|
415
|
-
<div class="method-description">
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
<div class="method-source-code"
|
422
|
-
id="run-source">
|
423
|
-
<pre>
|
424
|
-
<span class="ruby-comment cmt"># File lib/mu.rb, line 20</span>
|
425
|
-
20: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">run</span> <span class="ruby-identifier">cmd</span>, <span class="ruby-identifier">argv</span>
|
426
|
-
21: <span class="ruby-identifier">$log</span>.<span class="ruby-identifier">datetime_format</span> = <span class="ruby-value str">"%Y-%m-%d %H:%M:%S"</span>
|
427
|
-
22: <span class="ruby-identifier">$log</span>.<span class="ruby-identifier">formatter</span> = <span class="ruby-identifier">proc</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">severity</span>, <span class="ruby-identifier">datetime</span>, <span class="ruby-identifier">progname</span>, <span class="ruby-identifier">msg</span><span class="ruby-operator">|</span>
|
428
|
-
23: <span class="ruby-node">"[#{datetime} #{severity}]: #{msg}\n"</span>
|
429
|
-
24: }
|
430
|
-
25:
|
431
|
-
26: <span class="ruby-identifier">check_version</span>
|
432
|
-
27:
|
433
|
-
28: <span class="ruby-identifier">kname</span>, <span class="ruby-identifier">mname</span> = <span class="ruby-identifier">cmd</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">':'</span>, <span class="ruby-value">2</span>)
|
434
|
-
29: <span class="ruby-identifier">klass</span> = <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">Command</span>.<span class="ruby-identifier">const_get</span> <span class="ruby-identifier">kname</span>.<span class="ruby-identifier">capitalize</span> <span class="ruby-keyword kw">rescue</span> <span class="ruby-keyword kw">nil</span>
|
435
|
-
30: <span class="ruby-identifier">mname</span> <span class="ruby-operator">||=</span> <span class="ruby-value str">'default'</span>
|
436
|
-
31: <span class="ruby-identifier">mname</span> = <span class="ruby-node">"cmd_#{mname}"</span>.<span class="ruby-identifier">to_sym</span>
|
437
|
-
32: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">klass</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">klass</span> <span class="ruby-operator"><</span> <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">Command</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">method_defined?</span> <span class="ruby-identifier">mname</span>
|
438
|
-
33: <span class="ruby-identifier">command</span> = <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">new</span>
|
439
|
-
34: <span class="ruby-keyword kw">begin</span>
|
440
|
-
35: <span class="ruby-identifier">command</span>.<span class="ruby-identifier">send</span> <span class="ruby-identifier">mname</span>, <span class="ruby-identifier">argv</span>
|
441
|
-
36: <span class="ruby-keyword kw">rescue</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">e</span>
|
442
|
-
37: <span class="ruby-identifier">error</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">message</span>.<span class="ruby-identifier">chomp</span>(<span class="ruby-value str">'.'</span>)
|
443
|
-
38: <span class="ruby-keyword kw">end</span>
|
444
|
-
39: <span class="ruby-keyword kw">else</span>
|
445
|
-
40: <span class="ruby-identifier">error</span> <span class="ruby-node">"Unknown command #{cmd}"</span>
|
446
|
-
41: <span class="ruby-keyword kw">end</span>
|
447
|
-
42: <span class="ruby-keyword kw">end</span></pre>
|
448
|
-
</div>
|
449
|
-
|
450
|
-
</div>
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
</div>
|
456
|
-
|
457
|
-
|
458
|
-
</div>
|
459
|
-
|
460
|
-
|
461
|
-
</div>
|
462
|
-
|
463
|
-
|
464
|
-
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
465
|
-
|
466
|
-
<p>Disabled; run with --debug to generate this.</p>
|
467
|
-
|
468
|
-
</div>
|
469
|
-
|
470
|
-
<div id="validator-badges">
|
471
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
472
|
-
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
473
|
-
Rdoc Generator</a> 1.1.6</small>.</p>
|
474
|
-
</div>
|
475
|
-
|
476
|
-
</body>
|
477
|
-
</html>
|
478
|
-
|