mu 5.7.8 → 5.7.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (198) hide show
  1. data/lib/mu.rb +1 -1
  2. data/lib/mu/command.rb +18 -2
  3. data/lib/mu/command/cmd_musl.rb +165 -0
  4. data/lib/mu/command/cmd_runscale.rb +12 -8
  5. data/lib/mu/command/help.rb +1 -0
  6. data/lib/mu/har.rb +449 -0
  7. data/lib/mu/libxml.rb +21 -0
  8. data/lib/mu/maker.rb +288 -0
  9. data/lib/mu/xmlizable.rb +559 -0
  10. metadata +78 -267
  11. data/rdoc/Gemfile.html +0 -194
  12. data/rdoc/LICENSE_txt.html +0 -201
  13. data/rdoc/Mu.html +0 -478
  14. data/rdoc/Mu/Client.html +0 -461
  15. data/rdoc/Mu/Command.html +0 -338
  16. data/rdoc/Mu/Command/API.html +0 -844
  17. data/rdoc/Mu/Command/Cmd_appid.html +0 -1341
  18. data/rdoc/Mu/Command/Cmd_cli.html +0 -800
  19. data/rdoc/Mu/Command/Cmd_ddt.html +0 -1612
  20. data/rdoc/Mu/Command/Cmd_homepage.html +0 -762
  21. data/rdoc/Mu/Command/Cmd_muapi.html +0 -1363
  22. data/rdoc/Mu/Command/Cmd_netconfig.html +0 -1077
  23. data/rdoc/Mu/Command/Cmd_runscale.html +0 -1441
  24. data/rdoc/Mu/Command/Cmd_runscenario.html +0 -787
  25. data/rdoc/Mu/Command/Cmd_runverify.html +0 -893
  26. data/rdoc/Mu/Command/Cmd_scale.html +0 -1323
  27. data/rdoc/Mu/Command/Cmd_system.html +0 -677
  28. data/rdoc/Mu/Command/Curl.html +0 -751
  29. data/rdoc/Mu/Command/Help.html +0 -305
  30. data/rdoc/Mu/Curl.html +0 -243
  31. data/rdoc/Mu/Curl/Error.html +0 -304
  32. data/rdoc/Mu/Curl/Error/Authorize.html +0 -355
  33. data/rdoc/Mu/Curl/Error/Connect.html +0 -286
  34. data/rdoc/Mu/Curl/Error/DNS.html +0 -236
  35. data/rdoc/Mu/Curl/Error/Region.html +0 -307
  36. data/rdoc/Mu/Curl/Error/Status.html +0 -286
  37. data/rdoc/Mu/Curl/Error/Timeout.html +0 -286
  38. data/rdoc/Mu/Curl/Verify.html +0 -472
  39. data/rdoc/Mu/Curl/Verify/Request.html +0 -424
  40. data/rdoc/Mu/Curl/Verify/Response.html +0 -372
  41. data/rdoc/Mu/Curl/Verify/Result.html +0 -373
  42. data/rdoc/Mu/Ddt.html +0 -1347
  43. data/rdoc/Mu/Helper.html +0 -517
  44. data/rdoc/Mu/Homepage.html +0 -719
  45. data/rdoc/Mu/HttpHelper.html +0 -890
  46. data/rdoc/Mu/Muapi.html +0 -1226
  47. data/rdoc/Mu/Netconfig.html +0 -1178
  48. data/rdoc/Mu/Scale.html +0 -1359
  49. data/rdoc/Mu/System.html +0 -504
  50. data/rdoc/Object.html +0 -285
  51. data/rdoc/README_rdoc.html +0 -892
  52. data/rdoc/Rakefile.html +0 -257
  53. data/rdoc/TCTestMu.html +0 -2583
  54. data/rdoc/Test.html +0 -235
  55. data/rdoc/Test/Unit.html +0 -235
  56. data/rdoc/Test/Unit/TestCase.html +0 -236
  57. data/rdoc/Test/helper_rb.html +0 -62
  58. data/rdoc/Test/tc_test_mu_rb.html +0 -60
  59. data/rdoc/VERSION.html +0 -179
  60. data/rdoc/bin/mu.html +0 -54
  61. data/rdoc/classes/Mu.html +0 -132
  62. data/rdoc/classes/Mu/Client.html +0 -214
  63. data/rdoc/classes/Mu/Command.html +0 -129
  64. data/rdoc/classes/Mu/Command/API.html +0 -362
  65. data/rdoc/classes/Mu/Command/Cmd_appid.html +0 -238
  66. data/rdoc/classes/Mu/Command/Cmd_cli.html +0 -273
  67. data/rdoc/classes/Mu/Command/Cmd_ddt.html +0 -639
  68. data/rdoc/classes/Mu/Command/Cmd_homepage.html +0 -276
  69. data/rdoc/classes/Mu/Command/Cmd_muapi.html +0 -527
  70. data/rdoc/classes/Mu/Command/Cmd_netconfig.html +0 -399
  71. data/rdoc/classes/Mu/Command/Cmd_runscale.html +0 -220
  72. data/rdoc/classes/Mu/Command/Cmd_runscenario.html +0 -197
  73. data/rdoc/classes/Mu/Command/Cmd_runverify.html +0 -196
  74. data/rdoc/classes/Mu/Command/Cmd_scale.html +0 -511
  75. data/rdoc/classes/Mu/Command/Cmd_system.html +0 -236
  76. data/rdoc/classes/Mu/Command/Curl.html +0 -182
  77. data/rdoc/classes/Mu/Command/Help.html +0 -137
  78. data/rdoc/classes/Mu/Curl.html +0 -116
  79. data/rdoc/classes/Mu/Curl/Error.html +0 -148
  80. data/rdoc/classes/Mu/Curl/Error/Authorize.html +0 -165
  81. data/rdoc/classes/Mu/Curl/Error/Connect.html +0 -139
  82. data/rdoc/classes/Mu/Curl/Error/DNS.html +0 -113
  83. data/rdoc/classes/Mu/Curl/Error/Region.html +0 -150
  84. data/rdoc/classes/Mu/Curl/Error/Status.html +0 -139
  85. data/rdoc/classes/Mu/Curl/Error/Timeout.html +0 -139
  86. data/rdoc/classes/Mu/Curl/Verify.html +0 -207
  87. data/rdoc/classes/Mu/Curl/Verify/Request.html +0 -187
  88. data/rdoc/classes/Mu/Curl/Verify/Response.html +0 -172
  89. data/rdoc/classes/Mu/Curl/Verify/Result.html +0 -172
  90. data/rdoc/classes/Mu/Ddt.html +0 -610
  91. data/rdoc/classes/Mu/Helper.html +0 -308
  92. data/rdoc/classes/Mu/Homepage.html +0 -306
  93. data/rdoc/classes/Mu/HttpHelper.html +0 -393
  94. data/rdoc/classes/Mu/Muapi.html +0 -549
  95. data/rdoc/classes/Mu/Netconfig.html +0 -478
  96. data/rdoc/classes/Mu/Scale.html +0 -580
  97. data/rdoc/classes/Mu/System.html +0 -232
  98. data/rdoc/classes/Object.html +0 -139
  99. data/rdoc/classes/TCTestMu.html +0 -948
  100. data/rdoc/classes/Test.html +0 -107
  101. data/rdoc/classes/Test/Unit.html +0 -107
  102. data/rdoc/classes/Test/Unit/TestCase.html +0 -113
  103. data/rdoc/created.rid +0 -36
  104. data/rdoc/files/lib/mu/api/ddt_rb.html +0 -101
  105. data/rdoc/files/lib/mu/api/homepage_rb.html +0 -101
  106. data/rdoc/files/lib/mu/api/muapi_rb.html +0 -101
  107. data/rdoc/files/lib/mu/api/netconfig_rb.html +0 -101
  108. data/rdoc/files/lib/mu/api/scale_rb.html +0 -101
  109. data/rdoc/files/lib/mu/api/system_rb.html +0 -101
  110. data/rdoc/files/lib/mu/client_rb.html +0 -101
  111. data/rdoc/files/lib/mu/command/api_rb.html +0 -101
  112. data/rdoc/files/lib/mu/command/cmd_appid_rb.html +0 -119
  113. data/rdoc/files/lib/mu/command/cmd_cli_rb.html +0 -108
  114. data/rdoc/files/lib/mu/command/cmd_ddt_rb.html +0 -116
  115. data/rdoc/files/lib/mu/command/cmd_homepage_rb.html +0 -115
  116. data/rdoc/files/lib/mu/command/cmd_muapi_rb.html +0 -115
  117. data/rdoc/files/lib/mu/command/cmd_netconfig_rb.html +0 -116
  118. data/rdoc/files/lib/mu/command/cmd_runscale_rb.html +0 -119
  119. data/rdoc/files/lib/mu/command/cmd_runscenario_rb.html +0 -115
  120. data/rdoc/files/lib/mu/command/cmd_runverify_rb.html +0 -118
  121. data/rdoc/files/lib/mu/command/cmd_scale_rb.html +0 -115
  122. data/rdoc/files/lib/mu/command/cmd_system_rb.html +0 -116
  123. data/rdoc/files/lib/mu/command/curl_rb.html +0 -101
  124. data/rdoc/files/lib/mu/command/help_rb.html +0 -101
  125. data/rdoc/files/lib/mu/command_rb.html +0 -107
  126. data/rdoc/files/lib/mu/curl/error_rb.html +0 -101
  127. data/rdoc/files/lib/mu/curl/verify_rb.html +0 -101
  128. data/rdoc/files/lib/mu/helper_rb.html +0 -101
  129. data/rdoc/files/lib/mu/http_helper_rb.html +0 -101
  130. data/rdoc/files/lib/mu_rb.html +0 -121
  131. data/rdoc/files/test/helper_rb.html +0 -112
  132. data/rdoc/files/test/tc_test_mu_rb.html +0 -111
  133. data/rdoc/fr_class_index.html +0 -34
  134. data/rdoc/fr_file_index.html +0 -31
  135. data/rdoc/fr_method_index.html +0 -112
  136. data/rdoc/images/brick.png +0 -0
  137. data/rdoc/images/brick_link.png +0 -0
  138. data/rdoc/images/bug.png +0 -0
  139. data/rdoc/images/bullet_black.png +0 -0
  140. data/rdoc/images/bullet_toggle_minus.png +0 -0
  141. data/rdoc/images/bullet_toggle_plus.png +0 -0
  142. data/rdoc/images/date.png +0 -0
  143. data/rdoc/images/find.png +0 -0
  144. data/rdoc/images/loadingAnimation.gif +0 -0
  145. data/rdoc/images/macFFBgHack.png +0 -0
  146. data/rdoc/images/package.png +0 -0
  147. data/rdoc/images/page_green.png +0 -0
  148. data/rdoc/images/page_white_text.png +0 -0
  149. data/rdoc/images/page_white_width.png +0 -0
  150. data/rdoc/images/plugin.png +0 -0
  151. data/rdoc/images/ruby.png +0 -0
  152. data/rdoc/images/tag_green.png +0 -0
  153. data/rdoc/images/wrench.png +0 -0
  154. data/rdoc/images/wrench_orange.png +0 -0
  155. data/rdoc/images/zoom.png +0 -0
  156. data/rdoc/index.html +0 -884
  157. data/rdoc/js/darkfish.js +0 -116
  158. data/rdoc/js/jquery.js +0 -32
  159. data/rdoc/js/quicksearch.js +0 -114
  160. data/rdoc/js/thickbox-compressed.js +0 -10
  161. data/rdoc/lib/mu/api/ddt_rb.html +0 -52
  162. data/rdoc/lib/mu/api/homepage_rb.html +0 -52
  163. data/rdoc/lib/mu/api/muapi_rb.html +0 -52
  164. data/rdoc/lib/mu/api/netconfig_rb.html +0 -52
  165. data/rdoc/lib/mu/api/scale_rb.html +0 -52
  166. data/rdoc/lib/mu/api/system_rb.html +0 -52
  167. data/rdoc/lib/mu/client_rb.html +0 -52
  168. data/rdoc/lib/mu/command/api_rb.html +0 -52
  169. data/rdoc/lib/mu/command/cmd_appid_rb.html +0 -62
  170. data/rdoc/lib/mu/command/cmd_cli_rb.html +0 -55
  171. data/rdoc/lib/mu/command/cmd_ddt_rb.html +0 -60
  172. data/rdoc/lib/mu/command/cmd_homepage_rb.html +0 -57
  173. data/rdoc/lib/mu/command/cmd_muapi_rb.html +0 -59
  174. data/rdoc/lib/mu/command/cmd_netconfig_rb.html +0 -58
  175. data/rdoc/lib/mu/command/cmd_runscale_rb.html +0 -62
  176. data/rdoc/lib/mu/command/cmd_runscenario_rb.html +0 -57
  177. data/rdoc/lib/mu/command/cmd_runverify_rb.html +0 -61
  178. data/rdoc/lib/mu/command/cmd_scale_rb.html +0 -58
  179. data/rdoc/lib/mu/command/cmd_system_rb.html +0 -59
  180. data/rdoc/lib/mu/command/curl_rb.html +0 -52
  181. data/rdoc/lib/mu/command/help_rb.html +0 -52
  182. data/rdoc/lib/mu/command_rb.html +0 -55
  183. data/rdoc/lib/mu/curl/error_rb.html +0 -52
  184. data/rdoc/lib/mu/curl/verify_rb.html +0 -52
  185. data/rdoc/lib/mu/helper_rb.html +0 -52
  186. data/rdoc/lib/mu/http_helper_rb.html +0 -52
  187. data/rdoc/lib/mu_rb.html +0 -80
  188. data/rdoc/rdoc-style.css +0 -208
  189. data/rdoc/rdoc.css +0 -706
  190. data/test/data/app_id_stats.csv +0 -1
  191. data/test/data/app_id_status.json +0 -156
  192. data/test/data/data_cgi.msl +0 -94
  193. data/test/data/data_cgi.xml +0 -322
  194. data/test/data/default_test.csv +0 -3
  195. data/test/data/ftp_with_channel.xml +0 -1643
  196. data/test/data/irc.xml +0 -3837
  197. data/test/data/scale.json +0 -25
  198. data/test/data/test_data_cgi_error.xml +0 -35
data/rdoc/Mu/Command.html DELETED
@@ -1,338 +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</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/api_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
42
- class="thickbox" title="lib/mu/command/api.rb">lib/mu/command/api.rb</a></li>
43
-
44
- <li><a href="../lib/mu/command/cmd_appid_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
45
- class="thickbox" title="lib/mu/command/cmd_appid.rb">lib/mu/command/cmd_appid.rb</a></li>
46
-
47
- <li><a href="../lib/mu/command/cmd_cli_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
48
- class="thickbox" title="lib/mu/command/cmd_cli.rb">lib/mu/command/cmd_cli.rb</a></li>
49
-
50
- <li><a href="../lib/mu/command/cmd_ddt_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
51
- class="thickbox" title="lib/mu/command/cmd_ddt.rb">lib/mu/command/cmd_ddt.rb</a></li>
52
-
53
- <li><a href="../lib/mu/command/cmd_homepage_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
54
- class="thickbox" title="lib/mu/command/cmd_homepage.rb">lib/mu/command/cmd_homepage.rb</a></li>
55
-
56
- <li><a href="../lib/mu/command/cmd_muapi_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
57
- class="thickbox" title="lib/mu/command/cmd_muapi.rb">lib/mu/command/cmd_muapi.rb</a></li>
58
-
59
- <li><a href="../lib/mu/command/cmd_netconfig_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
60
- class="thickbox" title="lib/mu/command/cmd_netconfig.rb">lib/mu/command/cmd_netconfig.rb</a></li>
61
-
62
- <li><a href="../lib/mu/command/cmd_runscale_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
63
- class="thickbox" title="lib/mu/command/cmd_runscale.rb">lib/mu/command/cmd_runscale.rb</a></li>
64
-
65
- <li><a href="../lib/mu/command/cmd_runscenario_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
66
- class="thickbox" title="lib/mu/command/cmd_runscenario.rb">lib/mu/command/cmd_runscenario.rb</a></li>
67
-
68
- <li><a href="../lib/mu/command/cmd_runverify_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
69
- class="thickbox" title="lib/mu/command/cmd_runverify.rb">lib/mu/command/cmd_runverify.rb</a></li>
70
-
71
- <li><a href="../lib/mu/command/cmd_scale_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
72
- class="thickbox" title="lib/mu/command/cmd_scale.rb">lib/mu/command/cmd_scale.rb</a></li>
73
-
74
- <li><a href="../lib/mu/command/cmd_system_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
75
- class="thickbox" title="lib/mu/command/cmd_system.rb">lib/mu/command/cmd_system.rb</a></li>
76
-
77
- <li><a href="../lib/mu/command/curl_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
78
- class="thickbox" title="lib/mu/command/curl.rb">lib/mu/command/curl.rb</a></li>
79
-
80
- <li><a href="../lib/mu/command/help_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
81
- class="thickbox" title="lib/mu/command/help.rb">lib/mu/command/help.rb</a></li>
82
-
83
- <li><a href="../lib/mu/command_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
84
- class="thickbox" title="lib/mu/command.rb">lib/mu/command.rb</a></li>
85
-
86
- </ul>
87
- </div>
88
- </div>
89
-
90
-
91
- </div>
92
-
93
- <div id="class-metadata">
94
-
95
- <!-- Parent Class -->
96
-
97
- <div id="parent-class-section" class="section">
98
- <h3 class="section-header">Parent</h3>
99
-
100
- <p class="link"><a href="../Object.html">Object</a></p>
101
-
102
- </div>
103
-
104
-
105
- <!-- Namespace Contents -->
106
-
107
- <div id="namespace-list-section" class="section">
108
- <h3 class="section-header">Namespace</h3>
109
- <ul class="link-list">
110
-
111
- <li><span class="type">CLASS</span> <a href="Command/API.html">Mu::Command::API</a></li>
112
-
113
- <li><span class="type">CLASS</span> <a href="Command/API.html">Mu::Command::API</a></li>
114
-
115
- <li><span class="type">CLASS</span> <a href="Command/Cmd_appid.html">Mu::Command::Cmd_appid</a></li>
116
-
117
- <li><span class="type">CLASS</span> <a href="Command/Cmd_cli.html">Mu::Command::Cmd_cli</a></li>
118
-
119
- <li><span class="type">CLASS</span> <a href="Command/Cmd_ddt.html">Mu::Command::Cmd_ddt</a></li>
120
-
121
- <li><span class="type">CLASS</span> <a href="Command/Cmd_homepage.html">Mu::Command::Cmd_homepage</a></li>
122
-
123
- <li><span class="type">CLASS</span> <a href="Command/Cmd_muapi.html">Mu::Command::Cmd_muapi</a></li>
124
-
125
- <li><span class="type">CLASS</span> <a href="Command/Cmd_netconfig.html">Mu::Command::Cmd_netconfig</a></li>
126
-
127
- <li><span class="type">CLASS</span> <a href="Command/Cmd_runscale.html">Mu::Command::Cmd_runscale</a></li>
128
-
129
- <li><span class="type">CLASS</span> <a href="Command/Cmd_runscenario.html">Mu::Command::Cmd_runscenario</a></li>
130
-
131
- <li><span class="type">CLASS</span> <a href="Command/Cmd_runverify.html">Mu::Command::Cmd_runverify</a></li>
132
-
133
- <li><span class="type">CLASS</span> <a href="Command/Cmd_scale.html">Mu::Command::Cmd_scale</a></li>
134
-
135
- <li><span class="type">CLASS</span> <a href="Command/Cmd_system.html">Mu::Command::Cmd_system</a></li>
136
-
137
- <li><span class="type">CLASS</span> <a href="Command/Curl.html">Mu::Command::Curl</a></li>
138
-
139
- <li><span class="type">CLASS</span> <a href="Command/Help.html">Mu::Command::Help</a></li>
140
-
141
- </ul>
142
- </div>
143
-
144
-
145
- <!-- Method Quickref -->
146
-
147
-
148
- <!-- Included Modules -->
149
-
150
- <div id="includes-section" class="section">
151
- <h3 class="section-header">Included Modules</h3>
152
- <ul class="link-list">
153
-
154
-
155
- <li><span class="include">Helper</span></li>
156
-
157
-
158
- </ul>
159
- </div>
160
-
161
- </div>
162
-
163
- <div id="project-metadata">
164
-
165
-
166
- <div id="fileindex-section" class="section project-section">
167
- <h3 class="section-header">Files</h3>
168
- <ul>
169
-
170
- <li class="file"><a href="../Gemfile.html">Gemfile</a></li>
171
-
172
- <li class="file"><a href="../LICENSE_txt.html">LICENSE.txt</a></li>
173
-
174
- <li class="file"><a href="../README_rdoc.html">README.rdoc</a></li>
175
-
176
- <li class="file"><a href="../Rakefile.html">Rakefile</a></li>
177
-
178
- <li class="file"><a href="../VERSION.html">VERSION</a></li>
179
-
180
- </ul>
181
- </div>
182
-
183
-
184
- <div id="classindex-section" class="section project-section">
185
- <h3 class="section-header">Class Index
186
- <span class="search-toggle"><img src="../images/find.png"
187
- height="16" width="16" alt="[+]"
188
- title="show/hide quicksearch" /></span></h3>
189
- <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
190
- <fieldset>
191
- <legend>Quicksearch</legend>
192
- <input type="text" name="quicksearch" value=""
193
- class="quicksearch-field" />
194
- </fieldset>
195
- </form>
196
-
197
- <ul class="link-list">
198
-
199
- <li><a href="../Mu.html">Mu</a></li>
200
-
201
- <li><a href="../Mu/Client.html">Mu::Client</a></li>
202
-
203
- <li><a href="../Mu/Command.html">Mu::Command</a></li>
204
-
205
- <li><a href="../Mu/Command/API.html">Mu::Command::API</a></li>
206
-
207
- <li><a href="../Mu/Command/API.html">Mu::Command::API</a></li>
208
-
209
- <li><a href="../Mu/Command/Cmd_appid.html">Mu::Command::Cmd_appid</a></li>
210
-
211
- <li><a href="../Mu/Command/Cmd_cli.html">Mu::Command::Cmd_cli</a></li>
212
-
213
- <li><a href="../Mu/Command/Cmd_ddt.html">Mu::Command::Cmd_ddt</a></li>
214
-
215
- <li><a href="../Mu/Command/Cmd_homepage.html">Mu::Command::Cmd_homepage</a></li>
216
-
217
- <li><a href="../Mu/Command/Cmd_muapi.html">Mu::Command::Cmd_muapi</a></li>
218
-
219
- <li><a href="../Mu/Command/Cmd_netconfig.html">Mu::Command::Cmd_netconfig</a></li>
220
-
221
- <li><a href="../Mu/Command/Cmd_runscale.html">Mu::Command::Cmd_runscale</a></li>
222
-
223
- <li><a href="../Mu/Command/Cmd_runscenario.html">Mu::Command::Cmd_runscenario</a></li>
224
-
225
- <li><a href="../Mu/Command/Cmd_runverify.html">Mu::Command::Cmd_runverify</a></li>
226
-
227
- <li><a href="../Mu/Command/Cmd_scale.html">Mu::Command::Cmd_scale</a></li>
228
-
229
- <li><a href="../Mu/Command/Cmd_system.html">Mu::Command::Cmd_system</a></li>
230
-
231
- <li><a href="../Mu/Command/Curl.html">Mu::Command::Curl</a></li>
232
-
233
- <li><a href="../Mu/Command/Help.html">Mu::Command::Help</a></li>
234
-
235
- <li><a href="../Mu/Curl.html">Mu::Curl</a></li>
236
-
237
- <li><a href="../Mu/Curl/Error.html">Mu::Curl::Error</a></li>
238
-
239
- <li><a href="../Mu/Curl/Error/Authorize.html">Mu::Curl::Error::Authorize</a></li>
240
-
241
- <li><a href="../Mu/Curl/Error/Connect.html">Mu::Curl::Error::Connect</a></li>
242
-
243
- <li><a href="../Mu/Curl/Error/DNS.html">Mu::Curl::Error::DNS</a></li>
244
-
245
- <li><a href="../Mu/Curl/Error/Region.html">Mu::Curl::Error::Region</a></li>
246
-
247
- <li><a href="../Mu/Curl/Error/Status.html">Mu::Curl::Error::Status</a></li>
248
-
249
- <li><a href="../Mu/Curl/Error/Timeout.html">Mu::Curl::Error::Timeout</a></li>
250
-
251
- <li><a href="../Mu/Curl/Verify.html">Mu::Curl::Verify</a></li>
252
-
253
- <li><a href="../Mu/Curl/Verify/Request.html">Mu::Curl::Verify::Request</a></li>
254
-
255
- <li><a href="../Mu/Curl/Verify/Response.html">Mu::Curl::Verify::Response</a></li>
256
-
257
- <li><a href="../Mu/Curl/Verify/Result.html">Mu::Curl::Verify::Result</a></li>
258
-
259
- <li><a href="../Mu/Ddt.html">Mu::Ddt</a></li>
260
-
261
- <li><a href="../Mu/Helper.html">Mu::Helper</a></li>
262
-
263
- <li><a href="../Mu/Homepage.html">Mu::Homepage</a></li>
264
-
265
- <li><a href="../Mu/HttpHelper.html">Mu::HttpHelper</a></li>
266
-
267
- <li><a href="../Mu/Muapi.html">Mu::Muapi</a></li>
268
-
269
- <li><a href="../Mu/Netconfig.html">Mu::Netconfig</a></li>
270
-
271
- <li><a href="../Mu/Scale.html">Mu::Scale</a></li>
272
-
273
- <li><a href="../Mu/System.html">Mu::System</a></li>
274
-
275
- <li><a href="../Test.html">Test</a></li>
276
-
277
- <li><a href="../Test/Unit.html">Test::Unit</a></li>
278
-
279
- <li><a href="../Test/Unit/TestCase.html">Test::Unit::TestCase</a></li>
280
-
281
- <li><a href="../Object.html">Object</a></li>
282
-
283
- <li><a href="../TCTestMu.html">TCTestMu</a></li>
284
-
285
- </ul>
286
- <div id="no-class-search-results" style="display: none;">No matching classes.</div>
287
- </div>
288
-
289
-
290
- </div>
291
- </div>
292
-
293
- <div id="documentation">
294
- <h1 class="class">Mu::Command</h1>
295
-
296
- <div id="description">
297
-
298
- </div>
299
-
300
- <!-- Constants -->
301
-
302
- <div id="constants-list" class="section">
303
- <h3 class="section-header">Constants</h3>
304
- <dl>
305
-
306
- <dt><a name="Api">Api</a></dt>
307
-
308
- <dd class="description"></dd>
309
-
310
-
311
- </dl>
312
- </div>
313
-
314
-
315
- <!-- Attributes -->
316
-
317
-
318
- <!-- Methods -->
319
-
320
-
321
- </div>
322
-
323
-
324
- <div id="rdoc-debugging-section-dump" class="debugging-section">
325
-
326
- <p>Disabled; run with --debug to generate this.</p>
327
-
328
- </div>
329
-
330
- <div id="validator-badges">
331
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
332
- <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
333
- Rdoc Generator</a> 1.1.6</small>.</p>
334
- </div>
335
-
336
- </body>
337
- </html>
338
-
@@ -1,844 +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::API</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/api_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
42
- class="thickbox" title="lib/mu/command/api.rb">lib/mu/command/api.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-c-client">::client</a></li>
73
-
74
- <li><a href="#method-c-instance">::instance</a></li>
75
-
76
- <li><a href="#method-c-new">::new</a></li>
77
-
78
- <li><a href="#method-i-ask_for_credentials">#ask_for_credentials</a></li>
79
-
80
- <li><a href="#method-i-client">#client</a></li>
81
-
82
- <li><a href="#method-i-cmd_init">#cmd_init</a></li>
83
-
84
- <li><a href="#method-i-credentials_file">#credentials_file</a></li>
85
-
86
- <li><a href="#method-i-get_credentials">#get_credentials</a></li>
87
-
88
- <li><a href="#method-i-host">#host</a></li>
89
-
90
- <li><a href="#method-i-password">#password</a></li>
91
-
92
- <li><a href="#method-i-read_credentials">#read_credentials</a></li>
93
-
94
- <li><a href="#method-i-save_credentials">#save_credentials</a></li>
95
-
96
- <li><a href="#method-i-set_credentials_permissions">#set_credentials_permissions</a></li>
97
-
98
- <li><a href="#method-i-user">#user</a></li>
99
-
100
- <li><a href="#method-i-write_credentials">#write_credentials</a></li>
101
-
102
- </ul>
103
- </div>
104
-
105
-
106
- <!-- Included Modules -->
107
-
108
- </div>
109
-
110
- <div id="project-metadata">
111
-
112
-
113
- <div id="fileindex-section" class="section project-section">
114
- <h3 class="section-header">Files</h3>
115
- <ul>
116
-
117
- <li class="file"><a href="../../Gemfile.html">Gemfile</a></li>
118
-
119
- <li class="file"><a href="../../LICENSE_txt.html">LICENSE.txt</a></li>
120
-
121
- <li class="file"><a href="../../README_rdoc.html">README.rdoc</a></li>
122
-
123
- <li class="file"><a href="../../Rakefile.html">Rakefile</a></li>
124
-
125
- <li class="file"><a href="../../VERSION.html">VERSION</a></li>
126
-
127
- </ul>
128
- </div>
129
-
130
-
131
- <div id="classindex-section" class="section project-section">
132
- <h3 class="section-header">Class Index
133
- <span class="search-toggle"><img src="../../images/find.png"
134
- height="16" width="16" alt="[+]"
135
- title="show/hide quicksearch" /></span></h3>
136
- <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
137
- <fieldset>
138
- <legend>Quicksearch</legend>
139
- <input type="text" name="quicksearch" value=""
140
- class="quicksearch-field" />
141
- </fieldset>
142
- </form>
143
-
144
- <ul class="link-list">
145
-
146
- <li><a href="../../Mu.html">Mu</a></li>
147
-
148
- <li><a href="../../Mu/Client.html">Mu::Client</a></li>
149
-
150
- <li><a href="../../Mu/Command.html">Mu::Command</a></li>
151
-
152
- <li><a href="../../Mu/Command/API.html">Mu::Command::API</a></li>
153
-
154
- <li><a href="../../Mu/Command/API.html">Mu::Command::API</a></li>
155
-
156
- <li><a href="../../Mu/Command/Cmd_appid.html">Mu::Command::Cmd_appid</a></li>
157
-
158
- <li><a href="../../Mu/Command/Cmd_cli.html">Mu::Command::Cmd_cli</a></li>
159
-
160
- <li><a href="../../Mu/Command/Cmd_ddt.html">Mu::Command::Cmd_ddt</a></li>
161
-
162
- <li><a href="../../Mu/Command/Cmd_homepage.html">Mu::Command::Cmd_homepage</a></li>
163
-
164
- <li><a href="../../Mu/Command/Cmd_muapi.html">Mu::Command::Cmd_muapi</a></li>
165
-
166
- <li><a href="../../Mu/Command/Cmd_netconfig.html">Mu::Command::Cmd_netconfig</a></li>
167
-
168
- <li><a href="../../Mu/Command/Cmd_runscale.html">Mu::Command::Cmd_runscale</a></li>
169
-
170
- <li><a href="../../Mu/Command/Cmd_runscenario.html">Mu::Command::Cmd_runscenario</a></li>
171
-
172
- <li><a href="../../Mu/Command/Cmd_runverify.html">Mu::Command::Cmd_runverify</a></li>
173
-
174
- <li><a href="../../Mu/Command/Cmd_scale.html">Mu::Command::Cmd_scale</a></li>
175
-
176
- <li><a href="../../Mu/Command/Cmd_system.html">Mu::Command::Cmd_system</a></li>
177
-
178
- <li><a href="../../Mu/Command/Curl.html">Mu::Command::Curl</a></li>
179
-
180
- <li><a href="../../Mu/Command/Help.html">Mu::Command::Help</a></li>
181
-
182
- <li><a href="../../Mu/Curl.html">Mu::Curl</a></li>
183
-
184
- <li><a href="../../Mu/Curl/Error.html">Mu::Curl::Error</a></li>
185
-
186
- <li><a href="../../Mu/Curl/Error/Authorize.html">Mu::Curl::Error::Authorize</a></li>
187
-
188
- <li><a href="../../Mu/Curl/Error/Connect.html">Mu::Curl::Error::Connect</a></li>
189
-
190
- <li><a href="../../Mu/Curl/Error/DNS.html">Mu::Curl::Error::DNS</a></li>
191
-
192
- <li><a href="../../Mu/Curl/Error/Region.html">Mu::Curl::Error::Region</a></li>
193
-
194
- <li><a href="../../Mu/Curl/Error/Status.html">Mu::Curl::Error::Status</a></li>
195
-
196
- <li><a href="../../Mu/Curl/Error/Timeout.html">Mu::Curl::Error::Timeout</a></li>
197
-
198
- <li><a href="../../Mu/Curl/Verify.html">Mu::Curl::Verify</a></li>
199
-
200
- <li><a href="../../Mu/Curl/Verify/Request.html">Mu::Curl::Verify::Request</a></li>
201
-
202
- <li><a href="../../Mu/Curl/Verify/Response.html">Mu::Curl::Verify::Response</a></li>
203
-
204
- <li><a href="../../Mu/Curl/Verify/Result.html">Mu::Curl::Verify::Result</a></li>
205
-
206
- <li><a href="../../Mu/Ddt.html">Mu::Ddt</a></li>
207
-
208
- <li><a href="../../Mu/Helper.html">Mu::Helper</a></li>
209
-
210
- <li><a href="../../Mu/Homepage.html">Mu::Homepage</a></li>
211
-
212
- <li><a href="../../Mu/HttpHelper.html">Mu::HttpHelper</a></li>
213
-
214
- <li><a href="../../Mu/Muapi.html">Mu::Muapi</a></li>
215
-
216
- <li><a href="../../Mu/Netconfig.html">Mu::Netconfig</a></li>
217
-
218
- <li><a href="../../Mu/Scale.html">Mu::Scale</a></li>
219
-
220
- <li><a href="../../Mu/System.html">Mu::System</a></li>
221
-
222
- <li><a href="../../Test.html">Test</a></li>
223
-
224
- <li><a href="../../Test/Unit.html">Test::Unit</a></li>
225
-
226
- <li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a></li>
227
-
228
- <li><a href="../../Object.html">Object</a></li>
229
-
230
- <li><a href="../../TCTestMu.html">TCTestMu</a></li>
231
-
232
- </ul>
233
- <div id="no-class-search-results" style="display: none;">No matching classes.</div>
234
- </div>
235
-
236
-
237
- </div>
238
- </div>
239
-
240
- <div id="documentation">
241
- <h1 class="class">Mu::Command::API</h1>
242
-
243
- <div id="description">
244
-
245
- </div>
246
-
247
- <!-- Constants -->
248
-
249
-
250
- <!-- Attributes -->
251
-
252
- <div id="attribute-method-details" class="method-section section">
253
- <h3 class="section-header">Attributes</h3>
254
-
255
-
256
- <div id="credentials-attribute-method" class="method-detail">
257
- <a name="credentials"></a>
258
-
259
- <a name="credentials="></a>
260
-
261
- <div class="method-heading attribute-method-heading">
262
- <span class="method-name">credentials</span><span
263
- class="attribute-access-type">[RW]</span>
264
- </div>
265
-
266
- <div class="method-description">
267
-
268
-
269
-
270
- </div>
271
- </div>
272
-
273
- </div>
274
-
275
-
276
- <!-- Methods -->
277
-
278
- <div id="public-class-method-details" class="method-section section">
279
- <h3 class="section-header">Public Class Methods</h3>
280
-
281
-
282
- <div id="client-method" class="method-detail ">
283
- <a name="method-c-client"></a>
284
-
285
- <div class="method-heading">
286
-
287
- <span class="method-name">client</span><span
288
- class="method-args">()</span>
289
- <span class="method-click-advice">click to toggle source</span>
290
-
291
- </div>
292
-
293
- <div class="method-description">
294
-
295
-
296
-
297
-
298
-
299
- <div class="method-source-code"
300
- id="client-source">
301
- <pre>
302
- <span class="ruby-comment cmt"># File lib/mu/command/api.rb, line 85</span>
303
- 85: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">client</span>
304
- 86: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">instance</span>.<span class="ruby-identifier">client</span>
305
- 87: <span class="ruby-keyword kw">end</span></pre>
306
- </div>
307
-
308
- </div>
309
-
310
-
311
-
312
-
313
- </div>
314
-
315
-
316
- <div id="instance-method" class="method-detail ">
317
- <a name="method-c-instance"></a>
318
-
319
- <div class="method-heading">
320
-
321
- <span class="method-name">instance</span><span
322
- class="method-args">()</span>
323
- <span class="method-click-advice">click to toggle source</span>
324
-
325
- </div>
326
-
327
- <div class="method-description">
328
-
329
-
330
-
331
-
332
-
333
- <div class="method-source-code"
334
- id="instance-source">
335
- <pre>
336
- <span class="ruby-comment cmt"># File lib/mu/command/api.rb, line 81</span>
337
- 81: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">instance</span>
338
- 82: <span class="ruby-ivar">@instance</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">API</span>.<span class="ruby-identifier">new</span>
339
- 83: <span class="ruby-keyword kw">end</span></pre>
340
- </div>
341
-
342
- </div>
343
-
344
-
345
-
346
-
347
- </div>
348
-
349
-
350
- <div id="new-method" class="method-detail ">
351
- <a name="method-c-new"></a>
352
-
353
- <div class="method-heading">
354
-
355
- <span class="method-name">new</span><span
356
- class="method-args">()</span>
357
- <span class="method-click-advice">click to toggle source</span>
358
-
359
- </div>
360
-
361
- <div class="method-description">
362
-
363
-
364
-
365
-
366
-
367
- <div class="method-source-code"
368
- id="new-source">
369
- <pre>
370
- <span class="ruby-comment cmt"># File lib/mu/command/api.rb, line 90</span>
371
- 90: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
372
- 91: <span class="ruby-keyword kw">end</span></pre>
373
- </div>
374
-
375
- </div>
376
-
377
-
378
-
379
-
380
- </div>
381
-
382
-
383
- </div>
384
-
385
- <div id="public-instance-method-details" class="method-section section">
386
- <h3 class="section-header">Public Instance Methods</h3>
387
-
388
-
389
- <div id="ask-for-credentials-method" class="method-detail ">
390
- <a name="method-i-ask_for_credentials"></a>
391
-
392
- <div class="method-heading">
393
-
394
- <span class="method-name">ask_for_credentials</span><span
395
- class="method-args">()</span>
396
- <span class="method-click-advice">click to toggle source</span>
397
-
398
- </div>
399
-
400
- <div class="method-description">
401
-
402
-
403
-
404
-
405
-
406
- <div class="method-source-code"
407
- id="ask-for-credentials-source">
408
- <pre>
409
- <span class="ruby-comment cmt"># File lib/mu/command/api.rb, line 49</span>
410
- 49: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ask_for_credentials</span>
411
- 50: <span class="ruby-identifier">msg</span> <span class="ruby-value str">&quot;Enter your credentials.&quot;</span>
412
- 51: <span class="ruby-identifier">print</span> <span class="ruby-value str">&quot;User-ID: &quot;</span>
413
- 52: <span class="ruby-identifier">user</span> = <span class="ruby-identifier">ask</span>
414
- 53: <span class="ruby-identifier">print</span> <span class="ruby-value str">&quot;API-Key: &quot;</span>
415
- 54: <span class="ruby-identifier">apik</span> = <span class="ruby-identifier">ask</span>
416
- 55: <span class="ruby-identifier">apik2</span> = <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">Client</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">user</span>, <span class="ruby-identifier">apik</span>, <span class="ruby-identifier">host</span>).<span class="ruby-identifier">login</span>[<span class="ruby-value str">'api_key'</span>]
417
- 56: <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">not</span> <span class="ruby-identifier">apik2</span>
418
- 57: <span class="ruby-identifier">error</span> <span class="ruby-value str">&quot;Authentication failed&quot;</span>
419
- 58: <span class="ruby-identifier">exit</span> <span class="ruby-value">1</span>
420
- 59: <span class="ruby-keyword kw">end</span>
421
- 60:
422
- 61: [ <span class="ruby-identifier">user</span>, <span class="ruby-identifier">apik2</span> ]
423
- 62: <span class="ruby-keyword kw">end</span></pre>
424
- </div>
425
-
426
- </div>
427
-
428
-
429
-
430
-
431
- </div>
432
-
433
-
434
- <div id="client-method" class="method-detail ">
435
- <a name="method-i-client"></a>
436
-
437
- <div class="method-heading">
438
-
439
- <span class="method-name">client</span><span
440
- class="method-args">()</span>
441
- <span class="method-click-advice">click to toggle source</span>
442
-
443
- </div>
444
-
445
- <div class="method-description">
446
-
447
-
448
-
449
-
450
-
451
- <div class="method-source-code"
452
- id="client-source">
453
- <pre>
454
- <span class="ruby-comment cmt"># File lib/mu/command/api.rb, line 14</span>
455
- 14: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">client</span>
456
- 15: <span class="ruby-identifier">get_credentials</span>
457
- 16: <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">Client</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">user</span>, <span class="ruby-identifier">password</span>, <span class="ruby-identifier">host</span>)
458
- 17: <span class="ruby-keyword kw">end</span></pre>
459
- </div>
460
-
461
- </div>
462
-
463
-
464
-
465
-
466
- </div>
467
-
468
-
469
- <div id="cmd-init-method" class="method-detail ">
470
- <a name="method-i-cmd_init"></a>
471
-
472
- <div class="method-heading">
473
-
474
- <span class="method-name">cmd_init</span><span
475
- class="method-args">(argv)</span>
476
- <span class="method-click-advice">click to toggle source</span>
477
-
478
- </div>
479
-
480
- <div class="method-description">
481
-
482
-
483
-
484
-
485
-
486
- <div class="method-source-code"
487
- id="cmd-init-source">
488
- <pre>
489
- <span class="ruby-comment cmt"># File lib/mu/command/api.rb, line 6</span>
490
- 6: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_init</span> <span class="ruby-identifier">argv</span>
491
- 7: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">rm</span> <span class="ruby-identifier">credentials_file</span> <span class="ruby-keyword kw">rescue</span> <span class="ruby-keyword kw">nil</span>
492
- 8: <span class="ruby-constant">API</span>.<span class="ruby-identifier">client</span>
493
- 9:
494
- 10: <span class="ruby-identifier">msg</span> <span class="ruby-value str">&quot;You are now ready to use mu!&quot;</span>
495
- 11: <span class="ruby-identifier">msg</span> <span class="ruby-value str">&quot;Try mu help to learn more about the commands.&quot;</span>
496
- 12: <span class="ruby-keyword kw">end</span></pre>
497
- </div>
498
-
499
- </div>
500
-
501
-
502
-
503
-
504
- </div>
505
-
506
-
507
- <div id="credentials-file-method" class="method-detail ">
508
- <a name="method-i-credentials_file"></a>
509
-
510
- <div class="method-heading">
511
-
512
- <span class="method-name">credentials_file</span><span
513
- class="method-args">()</span>
514
- <span class="method-click-advice">click to toggle source</span>
515
-
516
- </div>
517
-
518
- <div class="method-description">
519
-
520
-
521
-
522
-
523
-
524
- <div class="method-source-code"
525
- id="credentials-file-source">
526
- <pre>
527
- <span class="ruby-comment cmt"># File lib/mu/command/api.rb, line 33</span>
528
- 33: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">credentials_file</span>
529
- 34: <span class="ruby-keyword kw">end</span></pre>
530
- </div>
531
-
532
- </div>
533
-
534
-
535
-
536
-
537
- </div>
538
-
539
-
540
- <div id="get-credentials-method" class="method-detail ">
541
- <a name="method-i-get_credentials"></a>
542
-
543
- <div class="method-heading">
544
-
545
- <span class="method-name">get_credentials</span><span
546
- class="method-args">()</span>
547
- <span class="method-click-advice">click to toggle source</span>
548
-
549
- </div>
550
-
551
- <div class="method-description">
552
-
553
-
554
-
555
-
556
-
557
- <div class="method-source-code"
558
- id="get-credentials-source">
559
- <pre>
560
- <span class="ruby-comment cmt"># File lib/mu/command/api.rb, line 36</span>
561
- 36: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_credentials</span>
562
- 37: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@credentials</span>
563
- 38: <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@credentials</span> = <span class="ruby-identifier">read_credentials</span>
564
- 39: <span class="ruby-ivar">@credentials</span> = <span class="ruby-identifier">ask_for_credentials</span>
565
- 40: <span class="ruby-identifier">save_credentials</span>
566
- 41: <span class="ruby-keyword kw">end</span>
567
- 42: <span class="ruby-ivar">@credentials</span>
568
- 43: <span class="ruby-keyword kw">end</span></pre>
569
- </div>
570
-
571
- </div>
572
-
573
-
574
-
575
-
576
- </div>
577
-
578
-
579
- <div id="host-method" class="method-detail ">
580
- <a name="method-i-host"></a>
581
-
582
- <div class="method-heading">
583
-
584
- <span class="method-name">host</span><span
585
- class="method-args">()</span>
586
- <span class="method-click-advice">click to toggle source</span>
587
-
588
- </div>
589
-
590
- <div class="method-description">
591
-
592
-
593
-
594
-
595
-
596
- <div class="method-source-code"
597
- id="host-source">
598
- <pre>
599
- <span class="ruby-comment cmt"># File lib/mu/command/api.rb, line 29</span>
600
- 29: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">host</span>
601
- 30: <span class="ruby-constant">ENV</span>[<span class="ruby-value str">'MU_IP'</span>] <span class="ruby-operator">||</span> <span class="ruby-value str">''</span>
602
- 31: <span class="ruby-keyword kw">end</span></pre>
603
- </div>
604
-
605
- </div>
606
-
607
-
608
-
609
-
610
- </div>
611
-
612
-
613
- <div id="password-method" class="method-detail ">
614
- <a name="method-i-password"></a>
615
-
616
- <div class="method-heading">
617
-
618
- <span class="method-name">password</span><span
619
- class="method-args">()</span>
620
- <span class="method-click-advice">click to toggle source</span>
621
-
622
- </div>
623
-
624
- <div class="method-description">
625
-
626
-
627
-
628
-
629
-
630
- <div class="method-source-code"
631
- id="password-source">
632
- <pre>
633
- <span class="ruby-comment cmt"># File lib/mu/command/api.rb, line 24</span>
634
- 24: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">password</span>
635
- 25: <span class="ruby-identifier">get_credentials</span>
636
- 26: <span class="ruby-ivar">@credentials</span>[<span class="ruby-value">1</span>]
637
- 27: <span class="ruby-keyword kw">end</span></pre>
638
- </div>
639
-
640
- </div>
641
-
642
-
643
-
644
-
645
- </div>
646
-
647
-
648
- <div id="read-credentials-method" class="method-detail ">
649
- <a name="method-i-read_credentials"></a>
650
-
651
- <div class="method-heading">
652
-
653
- <span class="method-name">read_credentials</span><span
654
- class="method-args">()</span>
655
- <span class="method-click-advice">click to toggle source</span>
656
-
657
- </div>
658
-
659
- <div class="method-description">
660
-
661
-
662
-
663
-
664
-
665
- <div class="method-source-code"
666
- id="read-credentials-source">
667
- <pre>
668
- <span class="ruby-comment cmt"># File lib/mu/command/api.rb, line 45</span>
669
- 45: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">read_credentials</span>
670
- 46: <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-identifier">credentials_file</span>) <span class="ruby-keyword kw">and</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">credentials_file</span>).<span class="ruby-identifier">split</span>(<span class="ruby-value str">&quot;\n&quot;</span>)
671
- 47: <span class="ruby-keyword kw">end</span></pre>
672
- </div>
673
-
674
- </div>
675
-
676
-
677
-
678
-
679
- </div>
680
-
681
-
682
- <div id="save-credentials-method" class="method-detail ">
683
- <a name="method-i-save_credentials"></a>
684
-
685
- <div class="method-heading">
686
-
687
- <span class="method-name">save_credentials</span><span
688
- class="method-args">()</span>
689
- <span class="method-click-advice">click to toggle source</span>
690
-
691
- </div>
692
-
693
- <div class="method-description">
694
-
695
-
696
-
697
-
698
-
699
- <div class="method-source-code"
700
- id="save-credentials-source">
701
- <pre>
702
- <span class="ruby-comment cmt"># File lib/mu/command/api.rb, line 64</span>
703
- 64: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">save_credentials</span>
704
- 65: <span class="ruby-identifier">write_credentials</span>
705
- 66: <span class="ruby-keyword kw">end</span></pre>
706
- </div>
707
-
708
- </div>
709
-
710
-
711
-
712
-
713
- </div>
714
-
715
-
716
- <div id="set-credentials-permissions-method" class="method-detail ">
717
- <a name="method-i-set_credentials_permissions"></a>
718
-
719
- <div class="method-heading">
720
-
721
- <span class="method-name">set_credentials_permissions</span><span
722
- class="method-args">()</span>
723
- <span class="method-click-advice">click to toggle source</span>
724
-
725
- </div>
726
-
727
- <div class="method-description">
728
-
729
-
730
-
731
-
732
-
733
- <div class="method-source-code"
734
- id="set-credentials-permissions-source">
735
- <pre>
736
- <span class="ruby-comment cmt"># File lib/mu/command/api.rb, line 76</span>
737
- 76: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_credentials_permissions</span>
738
- 77: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">chmod</span> <span class="ruby-value">0700</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-identifier">credentials_file</span>)
739
- 78: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">chmod</span> <span class="ruby-value">0600</span>, <span class="ruby-identifier">credentials_file</span>
740
- 79: <span class="ruby-keyword kw">end</span></pre>
741
- </div>
742
-
743
- </div>
744
-
745
-
746
-
747
-
748
- </div>
749
-
750
-
751
- <div id="user-method" class="method-detail ">
752
- <a name="method-i-user"></a>
753
-
754
- <div class="method-heading">
755
-
756
- <span class="method-name">user</span><span
757
- class="method-args">()</span>
758
- <span class="method-click-advice">click to toggle source</span>
759
-
760
- </div>
761
-
762
- <div class="method-description">
763
-
764
-
765
-
766
-
767
-
768
- <div class="method-source-code"
769
- id="user-source">
770
- <pre>
771
- <span class="ruby-comment cmt"># File lib/mu/command/api.rb, line 19</span>
772
- 19: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">user</span>
773
- 20: <span class="ruby-identifier">get_credentials</span>
774
- 21: <span class="ruby-ivar">@credentials</span>[<span class="ruby-value">0</span>]
775
- 22: <span class="ruby-keyword kw">end</span></pre>
776
- </div>
777
-
778
- </div>
779
-
780
-
781
-
782
-
783
- </div>
784
-
785
-
786
- <div id="write-credentials-method" class="method-detail ">
787
- <a name="method-i-write_credentials"></a>
788
-
789
- <div class="method-heading">
790
-
791
- <span class="method-name">write_credentials</span><span
792
- class="method-args">()</span>
793
- <span class="method-click-advice">click to toggle source</span>
794
-
795
- </div>
796
-
797
- <div class="method-description">
798
-
799
-
800
-
801
-
802
-
803
- <div class="method-source-code"
804
- id="write-credentials-source">
805
- <pre>
806
- <span class="ruby-comment cmt"># File lib/mu/command/api.rb, line 68</span>
807
- 68: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">write_credentials</span>
808
- 69: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">mkdir_p</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-identifier">credentials_file</span>))
809
- 70: <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">credentials_file</span>, <span class="ruby-value str">'w'</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span>
810
- 71: <span class="ruby-identifier">f</span>.<span class="ruby-identifier">puts</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">credentials</span>
811
- 72: <span class="ruby-keyword kw">end</span>
812
- 73: <span class="ruby-identifier">set_credentials_permissions</span>
813
- 74: <span class="ruby-keyword kw">end</span></pre>
814
- </div>
815
-
816
- </div>
817
-
818
-
819
-
820
-
821
- </div>
822
-
823
-
824
- </div>
825
-
826
-
827
- </div>
828
-
829
-
830
- <div id="rdoc-debugging-section-dump" class="debugging-section">
831
-
832
- <p>Disabled; run with --debug to generate this.</p>
833
-
834
- </div>
835
-
836
- <div id="validator-badges">
837
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
838
- <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
839
- Rdoc Generator</a> 1.1.6</small>.</p>
840
- </div>
841
-
842
- </body>
843
- </html>
844
-