mu 5.7.2.3 → 5.7.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (384) hide show
  1. data/lib/mu.rb +1 -1
  2. data/lib/mu/api/netconfig.rb +5 -3
  3. data/lib/mu/api/scale.rb +16 -1
  4. data/lib/mu/command/cmd_netconfig.rb +1 -1
  5. data/lib/mu/command/cmd_runscale.rb +2 -2
  6. data/rdoc/classes/Mu.html +24 -142
  7. data/rdoc/classes/Mu.src/M000001.html +39 -0
  8. data/rdoc/classes/Mu.src/M000002.html +29 -0
  9. data/rdoc/classes/Mu.src/M000053.html +39 -0
  10. data/rdoc/classes/Mu.src/M000054.html +29 -0
  11. data/rdoc/classes/Mu/Client.html +26 -77
  12. data/rdoc/classes/Mu/Client.src/M000212.html +24 -0
  13. data/rdoc/classes/Mu/Client.src/M000213.html +18 -0
  14. data/rdoc/classes/Mu/Client.src/M000214.html +18 -0
  15. data/rdoc/classes/Mu/Client.src/M000215.html +18 -0
  16. data/rdoc/classes/Mu/Client.src/M000216.html +18 -0
  17. data/rdoc/classes/Mu/Command.html +1 -92
  18. data/rdoc/classes/Mu/Command/API.html +75 -237
  19. data/rdoc/classes/Mu/Command/API.src/M000130.html +22 -0
  20. data/rdoc/classes/Mu/Command/API.src/M000131.html +19 -0
  21. data/rdoc/classes/Mu/Command/API.src/M000132.html +19 -0
  22. data/rdoc/classes/Mu/Command/API.src/M000133.html +19 -0
  23. data/rdoc/classes/Mu/Command/API.src/M000134.html +18 -0
  24. data/rdoc/classes/Mu/Command/API.src/M000135.html +17 -0
  25. data/rdoc/classes/Mu/Command/API.src/M000136.html +23 -0
  26. data/rdoc/classes/Mu/Command/API.src/M000137.html +18 -0
  27. data/rdoc/classes/Mu/Command/API.src/M000138.html +29 -0
  28. data/rdoc/classes/Mu/Command/API.src/M000139.html +18 -0
  29. data/rdoc/classes/Mu/Command/API.src/M000140.html +22 -0
  30. data/rdoc/classes/Mu/Command/API.src/M000141.html +19 -0
  31. data/rdoc/classes/Mu/Command/API.src/M000142.html +18 -0
  32. data/rdoc/classes/Mu/Command/API.src/M000143.html +18 -0
  33. data/rdoc/classes/Mu/Command/API.src/M000144.html +17 -0
  34. data/rdoc/classes/Mu/Command/Cmd_appid.html +22 -718
  35. data/rdoc/classes/Mu/Command/Cmd_appid.src/M000145.html +18 -0
  36. data/rdoc/classes/Mu/Command/Cmd_appid.src/M000146.html +30 -0
  37. data/rdoc/classes/Mu/Command/Cmd_appid.src/M000147.html +39 -0
  38. data/rdoc/classes/Mu/Command/Cmd_appid.src/M000148.html +50 -0
  39. data/rdoc/classes/Mu/Command/Cmd_cli.html +32 -274
  40. data/rdoc/classes/Mu/Command/Cmd_cli.src/M000200.html +18 -0
  41. data/rdoc/classes/Mu/Command/Cmd_cli.src/M000201.html +19 -0
  42. data/rdoc/classes/Mu/Command/Cmd_cli.src/M000202.html +19 -0
  43. data/rdoc/classes/Mu/Command/Cmd_cli.src/M000203.html +19 -0
  44. data/rdoc/classes/Mu/Command/Cmd_cli.src/M000204.html +20 -0
  45. data/rdoc/classes/Mu/Command/Cmd_cli.src/M000205.html +20 -0
  46. data/rdoc/classes/Mu/Command/Cmd_ddt.html +126 -656
  47. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000101.html +18 -0
  48. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000102.html +21 -0
  49. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000103.html +22 -0
  50. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000104.html +21 -0
  51. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000105.html +21 -0
  52. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000106.html +21 -0
  53. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000107.html +21 -0
  54. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000108.html +21 -0
  55. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000109.html +21 -0
  56. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000110.html +21 -0
  57. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000111.html +22 -0
  58. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000112.html +21 -0
  59. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000113.html +43 -0
  60. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000114.html +21 -0
  61. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000115.html +38 -0
  62. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000116.html +21 -0
  63. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000117.html +38 -0
  64. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000118.html +21 -0
  65. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000119.html +21 -0
  66. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000120.html +21 -0
  67. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000121.html +24 -0
  68. data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000122.html +24 -0
  69. data/rdoc/classes/Mu/Command/Cmd_homepage.html +31 -244
  70. data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000206.html +18 -0
  71. data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000207.html +21 -0
  72. data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000208.html +21 -0
  73. data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000209.html +21 -0
  74. data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000210.html +21 -0
  75. data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000211.html +21 -0
  76. data/rdoc/classes/Mu/Command/Cmd_muapi.html +86 -527
  77. data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000164.html +18 -0
  78. data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000165.html +27 -0
  79. data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000166.html +22 -0
  80. data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000167.html +27 -0
  81. data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000168.html +22 -0
  82. data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000169.html +22 -0
  83. data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000170.html +22 -0
  84. data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000171.html +22 -0
  85. data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000172.html +28 -0
  86. data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000173.html +22 -0
  87. data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000174.html +21 -0
  88. data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000175.html +28 -0
  89. data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000176.html +23 -0
  90. data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000177.html +22 -0
  91. data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000178.html +23 -0
  92. data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000179.html +23 -0
  93. data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000180.html +24 -0
  94. data/rdoc/classes/Mu/Command/Cmd_netconfig.html +61 -405
  95. data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000152.html +18 -0
  96. data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000153.html +22 -0
  97. data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000154.html +23 -0
  98. data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000155.html +23 -0
  99. data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000156.html +22 -0
  100. data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000157.html +23 -0
  101. data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000158.html +21 -0
  102. data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000159.html +22 -0
  103. data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000160.html +22 -0
  104. data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000161.html +21 -0
  105. data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000162.html +21 -0
  106. data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000163.html +23 -0
  107. data/rdoc/classes/Mu/Command/Cmd_runscale.html +17 -766
  108. data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000003.html +18 -0
  109. data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000004.html +51 -0
  110. data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000005.html +50 -0
  111. data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000149.html +18 -0
  112. data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000150.html +51 -0
  113. data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000151.html +50 -0
  114. data/rdoc/classes/Mu/Command/Cmd_runscenario.html +11 -344
  115. data/rdoc/classes/Mu/Command/Cmd_runscenario.src/M000128.html +18 -0
  116. data/rdoc/classes/Mu/Command/Cmd_runscenario.src/M000129.html +144 -0
  117. data/rdoc/classes/Mu/Command/Cmd_runverify.html +11 -436
  118. data/rdoc/classes/Mu/Command/Cmd_runverify.src/M000198.html +18 -0
  119. data/rdoc/classes/Mu/Command/Cmd_runverify.src/M000199.html +200 -0
  120. data/rdoc/classes/Mu/Command/Cmd_scale.html +86 -514
  121. data/rdoc/classes/Mu/Command/Cmd_scale.src/M000181.html +18 -0
  122. data/rdoc/classes/Mu/Command/Cmd_scale.src/M000182.html +23 -0
  123. data/rdoc/classes/Mu/Command/Cmd_scale.src/M000183.html +21 -0
  124. data/rdoc/classes/Mu/Command/Cmd_scale.src/M000184.html +21 -0
  125. data/rdoc/classes/Mu/Command/Cmd_scale.src/M000185.html +22 -0
  126. data/rdoc/classes/Mu/Command/Cmd_scale.src/M000186.html +21 -0
  127. data/rdoc/classes/Mu/Command/Cmd_scale.src/M000187.html +21 -0
  128. data/rdoc/classes/Mu/Command/Cmd_scale.src/M000188.html +21 -0
  129. data/rdoc/classes/Mu/Command/Cmd_scale.src/M000189.html +23 -0
  130. data/rdoc/classes/Mu/Command/Cmd_scale.src/M000190.html +21 -0
  131. data/rdoc/classes/Mu/Command/Cmd_scale.src/M000191.html +29 -0
  132. data/rdoc/classes/Mu/Command/Cmd_scale.src/M000192.html +27 -0
  133. data/rdoc/classes/Mu/Command/Cmd_scale.src/M000193.html +21 -0
  134. data/rdoc/classes/Mu/Command/Cmd_scale.src/M000194.html +21 -0
  135. data/rdoc/classes/Mu/Command/Cmd_scale.src/M000195.html +22 -0
  136. data/rdoc/classes/Mu/Command/Cmd_scale.src/M000196.html +22 -0
  137. data/rdoc/classes/Mu/Command/Cmd_scale.src/M000197.html +22 -0
  138. data/rdoc/classes/Mu/Command/Cmd_system.html +21 -211
  139. data/rdoc/classes/Mu/Command/Cmd_system.src/M000097.html +18 -0
  140. data/rdoc/classes/Mu/Command/Cmd_system.src/M000098.html +21 -0
  141. data/rdoc/classes/Mu/Command/Cmd_system.src/M000099.html +21 -0
  142. data/rdoc/classes/Mu/Command/Cmd_system.src/M000100.html +21 -0
  143. data/rdoc/classes/Mu/Command/Curl.html +19 -361
  144. data/rdoc/classes/Mu/Command/Curl.src/M000124.html +18 -0
  145. data/rdoc/classes/Mu/Command/Curl.src/M000125.html +21 -0
  146. data/rdoc/classes/Mu/Command/Curl.src/M000126.html +26 -0
  147. data/rdoc/classes/Mu/Command/Help.html +5 -34
  148. data/rdoc/classes/Mu/Command/Help.src/M000123.html +38 -0
  149. data/rdoc/classes/Mu/Curl/Error.html +5 -14
  150. data/rdoc/classes/Mu/Curl/Error.src/M000063.html +18 -0
  151. data/rdoc/classes/Mu/Curl/Error/Authorize.html +5 -18
  152. data/rdoc/classes/Mu/Curl/Error/Authorize.src/M000065.html +22 -0
  153. data/rdoc/classes/Mu/Curl/Error/Connect.html +5 -15
  154. data/rdoc/classes/Mu/Curl/Error/Connect.src/M000068.html +19 -0
  155. data/rdoc/classes/Mu/Curl/Error/Region.html +5 -15
  156. data/rdoc/classes/Mu/Curl/Error/Region.src/M000066.html +19 -0
  157. data/rdoc/classes/Mu/Curl/Error/Status.html +5 -15
  158. data/rdoc/classes/Mu/Curl/Error/Status.src/M000064.html +19 -0
  159. data/rdoc/classes/Mu/Curl/Error/Timeout.html +5 -15
  160. data/rdoc/classes/Mu/Curl/Error/Timeout.src/M000067.html +19 -0
  161. data/rdoc/classes/Mu/Curl/Verify.html +20 -95
  162. data/rdoc/classes/Mu/Curl/Verify.src/M000055.html +29 -0
  163. data/rdoc/classes/Mu/Curl/Verify.src/M000056.html +18 -0
  164. data/rdoc/classes/Mu/Curl/Verify.src/M000057.html +46 -0
  165. data/rdoc/classes/Mu/Curl/Verify.src/M000058.html +18 -0
  166. data/rdoc/classes/Mu/Curl/Verify/Request.html +10 -50
  167. data/rdoc/classes/Mu/Curl/Verify/Request.src/M000061.html +35 -0
  168. data/rdoc/classes/Mu/Curl/Verify/Request.src/M000062.html +23 -0
  169. data/rdoc/classes/Mu/Curl/Verify/Response.html +5 -20
  170. data/rdoc/classes/Mu/Curl/Verify/Response.src/M000059.html +24 -0
  171. data/rdoc/classes/Mu/Curl/Verify/Result.html +5 -21
  172. data/rdoc/classes/Mu/Curl/Verify/Result.src/M000060.html +25 -0
  173. data/rdoc/classes/Mu/Ddt.html +132 -436
  174. data/rdoc/classes/Mu/Ddt.src/M000242.html +24 -0
  175. data/rdoc/classes/Mu/Ddt.src/M000243.html +20 -0
  176. data/rdoc/classes/Mu/Ddt.src/M000244.html +20 -0
  177. data/rdoc/classes/Mu/Ddt.src/M000245.html +23 -0
  178. data/rdoc/classes/Mu/Ddt.src/M000246.html +20 -0
  179. data/rdoc/classes/Mu/Ddt.src/M000247.html +32 -0
  180. data/rdoc/classes/Mu/Ddt.src/M000248.html +20 -0
  181. data/rdoc/classes/Mu/Ddt.src/M000249.html +20 -0
  182. data/rdoc/classes/Mu/Ddt.src/M000250.html +20 -0
  183. data/rdoc/classes/Mu/Ddt.src/M000251.html +20 -0
  184. data/rdoc/classes/Mu/Ddt.src/M000252.html +20 -0
  185. data/rdoc/classes/Mu/Ddt.src/M000253.html +20 -0
  186. data/rdoc/classes/Mu/Ddt.src/M000254.html +25 -0
  187. data/rdoc/classes/Mu/Ddt.src/M000255.html +20 -0
  188. data/rdoc/classes/Mu/Ddt.src/M000256.html +24 -0
  189. data/rdoc/classes/Mu/Ddt.src/M000257.html +20 -0
  190. data/rdoc/classes/Mu/Ddt.src/M000258.html +24 -0
  191. data/rdoc/classes/Mu/Ddt.src/M000259.html +20 -0
  192. data/rdoc/classes/Mu/Ddt.src/M000260.html +35 -0
  193. data/rdoc/classes/Mu/Ddt.src/M000261.html +20 -0
  194. data/rdoc/classes/Mu/Ddt.src/M000262.html +20 -0
  195. data/rdoc/classes/Mu/Ddt.src/M000263.html +20 -0
  196. data/rdoc/classes/Mu/Ddt.src/M000264.html +22 -0
  197. data/rdoc/classes/Mu/Homepage.html +34 -105
  198. data/rdoc/classes/Mu/Homepage.src/M000236.html +25 -0
  199. data/rdoc/classes/Mu/Homepage.src/M000237.html +20 -0
  200. data/rdoc/classes/Mu/Homepage.src/M000238.html +20 -0
  201. data/rdoc/classes/Mu/Homepage.src/M000239.html +20 -0
  202. data/rdoc/classes/Mu/Homepage.src/M000240.html +20 -0
  203. data/rdoc/classes/Mu/Homepage.src/M000241.html +20 -0
  204. data/rdoc/classes/Mu/HttpHelper.html +68 -314
  205. data/rdoc/classes/Mu/HttpHelper.src/M000069.html +22 -0
  206. data/rdoc/classes/Mu/HttpHelper.src/M000070.html +25 -0
  207. data/rdoc/classes/Mu/HttpHelper.src/M000071.html +34 -0
  208. data/rdoc/classes/Mu/HttpHelper.src/M000072.html +39 -0
  209. data/rdoc/classes/Mu/HttpHelper.src/M000073.html +36 -0
  210. data/rdoc/classes/Mu/HttpHelper.src/M000074.html +34 -0
  211. data/rdoc/classes/Mu/HttpHelper.src/M000075.html +46 -0
  212. data/rdoc/classes/Mu/HttpHelper.src/M000076.html +24 -0
  213. data/rdoc/classes/Mu/HttpHelper.src/M000077.html +19 -0
  214. data/rdoc/classes/Mu/HttpHelper.src/M000078.html +33 -0
  215. data/rdoc/classes/Mu/HttpHelper.src/M000079.html +29 -0
  216. data/rdoc/classes/Mu/Muapi.html +92 -359
  217. data/rdoc/classes/Mu/Muapi.src/M000080.html +25 -0
  218. data/rdoc/classes/Mu/Muapi.src/M000081.html +27 -0
  219. data/rdoc/classes/Mu/Muapi.src/M000082.html +24 -0
  220. data/rdoc/classes/Mu/Muapi.src/M000083.html +27 -0
  221. data/rdoc/classes/Mu/Muapi.src/M000084.html +23 -0
  222. data/rdoc/classes/Mu/Muapi.src/M000085.html +23 -0
  223. data/rdoc/classes/Mu/Muapi.src/M000086.html +23 -0
  224. data/rdoc/classes/Mu/Muapi.src/M000087.html +23 -0
  225. data/rdoc/classes/Mu/Muapi.src/M000088.html +23 -0
  226. data/rdoc/classes/Mu/Muapi.src/M000089.html +22 -0
  227. data/rdoc/classes/Mu/Muapi.src/M000090.html +21 -0
  228. data/rdoc/classes/Mu/Muapi.src/M000091.html +19 -0
  229. data/rdoc/classes/Mu/Muapi.src/M000092.html +18 -0
  230. data/rdoc/classes/Mu/Muapi.src/M000093.html +18 -0
  231. data/rdoc/classes/Mu/Muapi.src/M000094.html +36 -0
  232. data/rdoc/classes/Mu/Muapi.src/M000095.html +34 -0
  233. data/rdoc/classes/Mu/Muapi.src/M000096.html +34 -0
  234. data/rdoc/classes/Mu/Netconfig.html +79 -382
  235. data/rdoc/classes/Mu/Netconfig.src/M000217.html +25 -0
  236. data/rdoc/classes/Mu/Netconfig.src/M000218.html +20 -0
  237. data/rdoc/classes/Mu/Netconfig.src/M000219.html +21 -0
  238. data/rdoc/classes/Mu/Netconfig.src/M000220.html +24 -0
  239. data/rdoc/classes/Mu/Netconfig.src/M000221.html +20 -0
  240. data/rdoc/classes/Mu/Netconfig.src/M000222.html +36 -0
  241. data/rdoc/classes/Mu/Netconfig.src/M000223.html +22 -0
  242. data/rdoc/classes/Mu/Netconfig.src/M000224.html +22 -0
  243. data/rdoc/classes/Mu/Netconfig.src/M000225.html +37 -0
  244. data/rdoc/classes/Mu/Netconfig.src/M000226.html +21 -0
  245. data/rdoc/classes/Mu/Netconfig.src/M000227.html +23 -0
  246. data/rdoc/classes/Mu/Netconfig.src/M000228.html +26 -0
  247. data/rdoc/classes/Mu/Netconfig.src/M000229.html +23 -0
  248. data/rdoc/classes/Mu/Netconfig.src/M000230.html +22 -0
  249. data/rdoc/classes/Mu/Netconfig.src/M000231.html +19 -0
  250. data/rdoc/classes/Mu/Scale.html +133 -385
  251. data/rdoc/classes/Mu/Scale.src/M000006.html +47 -0
  252. data/rdoc/classes/Mu/Scale.src/M000007.html +27 -0
  253. data/rdoc/classes/Mu/Scale.src/M000008.html +22 -0
  254. data/rdoc/classes/Mu/Scale.src/M000009.html +20 -0
  255. data/rdoc/classes/Mu/Scale.src/M000010.html +20 -0
  256. data/rdoc/classes/Mu/Scale.src/M000011.html +20 -0
  257. data/rdoc/classes/Mu/Scale.src/M000012.html +20 -0
  258. data/rdoc/classes/Mu/Scale.src/M000013.html +20 -0
  259. data/rdoc/classes/Mu/Scale.src/M000014.html +20 -0
  260. data/rdoc/classes/Mu/Scale.src/M000015.html +20 -0
  261. data/rdoc/classes/Mu/Scale.src/M000016.html +20 -0
  262. data/rdoc/classes/Mu/Scale.src/M000017.html +20 -0
  263. data/rdoc/classes/Mu/Scale.src/M000018.html +20 -0
  264. data/rdoc/classes/Mu/Scale.src/M000019.html +20 -0
  265. data/rdoc/classes/Mu/Scale.src/M000020.html +20 -0
  266. data/rdoc/classes/Mu/Scale.src/M000021.html +20 -0
  267. data/rdoc/classes/Mu/Scale.src/M000022.html +20 -0
  268. data/rdoc/classes/Mu/Scale.src/M000023.html +20 -0
  269. data/rdoc/classes/Mu/Scale.src/M000024.html +20 -0
  270. data/rdoc/classes/Mu/Scale.src/M000025.html +20 -0
  271. data/rdoc/classes/Mu/Scale.src/M000265.html +46 -0
  272. data/rdoc/classes/Mu/Scale.src/M000266.html +27 -0
  273. data/rdoc/classes/Mu/Scale.src/M000267.html +22 -0
  274. data/rdoc/classes/Mu/Scale.src/M000268.html +20 -0
  275. data/rdoc/classes/Mu/Scale.src/M000269.html +20 -0
  276. data/rdoc/classes/Mu/Scale.src/M000270.html +20 -0
  277. data/rdoc/classes/Mu/Scale.src/M000271.html +20 -0
  278. data/rdoc/classes/Mu/Scale.src/M000272.html +20 -0
  279. data/rdoc/classes/Mu/Scale.src/M000273.html +20 -0
  280. data/rdoc/classes/Mu/Scale.src/M000274.html +20 -0
  281. data/rdoc/classes/Mu/Scale.src/M000275.html +20 -0
  282. data/rdoc/classes/Mu/Scale.src/M000276.html +20 -0
  283. data/rdoc/classes/Mu/Scale.src/M000277.html +20 -0
  284. data/rdoc/classes/Mu/Scale.src/M000278.html +20 -0
  285. data/rdoc/classes/Mu/Scale.src/M000279.html +20 -0
  286. data/rdoc/classes/Mu/Scale.src/M000280.html +20 -0
  287. data/rdoc/classes/Mu/Scale.src/M000281.html +20 -0
  288. data/rdoc/classes/Mu/Scale.src/M000282.html +20 -0
  289. data/rdoc/classes/Mu/System.html +23 -72
  290. data/rdoc/classes/Mu/System.src/M000232.html +25 -0
  291. data/rdoc/classes/Mu/System.src/M000233.html +20 -0
  292. data/rdoc/classes/Mu/System.src/M000234.html +20 -0
  293. data/rdoc/classes/Mu/System.src/M000235.html +20 -0
  294. data/rdoc/classes/Object.html +5 -14
  295. data/rdoc/classes/Object.src/M000052.html +18 -0
  296. data/rdoc/classes/TCTestMu.html +254 -1099
  297. data/rdoc/classes/TCTestMu.src/M000001.html +24 -0
  298. data/rdoc/classes/TCTestMu.src/M000002.html +18 -0
  299. data/rdoc/classes/TCTestMu.src/M000003.html +32 -0
  300. data/rdoc/classes/TCTestMu.src/M000004.html +33 -0
  301. data/rdoc/classes/TCTestMu.src/M000005.html +21 -0
  302. data/rdoc/classes/TCTestMu.src/M000006.html +21 -0
  303. data/rdoc/classes/TCTestMu.src/M000007.html +26 -0
  304. data/rdoc/classes/TCTestMu.src/M000008.html +29 -0
  305. data/rdoc/classes/TCTestMu.src/M000009.html +39 -0
  306. data/rdoc/classes/TCTestMu.src/M000010.html +38 -0
  307. data/rdoc/classes/TCTestMu.src/M000011.html +38 -0
  308. data/rdoc/classes/TCTestMu.src/M000012.html +20 -0
  309. data/rdoc/classes/TCTestMu.src/M000013.html +25 -0
  310. data/rdoc/classes/TCTestMu.src/M000014.html +25 -0
  311. data/rdoc/classes/TCTestMu.src/M000015.html +33 -0
  312. data/rdoc/classes/TCTestMu.src/M000016.html +20 -0
  313. data/rdoc/classes/TCTestMu.src/M000017.html +20 -0
  314. data/rdoc/classes/TCTestMu.src/M000018.html +20 -0
  315. data/rdoc/classes/TCTestMu.src/M000019.html +20 -0
  316. data/rdoc/classes/TCTestMu.src/M000020.html +20 -0
  317. data/rdoc/classes/TCTestMu.src/M000021.html +20 -0
  318. data/rdoc/classes/TCTestMu.src/M000022.html +23 -0
  319. data/rdoc/classes/TCTestMu.src/M000023.html +23 -0
  320. data/rdoc/classes/TCTestMu.src/M000024.html +44 -0
  321. data/rdoc/classes/TCTestMu.src/M000025.html +53 -0
  322. data/rdoc/classes/TCTestMu.src/M000026.html +22 -0
  323. data/rdoc/classes/TCTestMu.src/M000027.html +49 -0
  324. data/rdoc/classes/TCTestMu.src/M000028.html +40 -0
  325. data/rdoc/classes/TCTestMu.src/M000029.html +20 -0
  326. data/rdoc/classes/TCTestMu.src/M000030.html +20 -0
  327. data/rdoc/classes/TCTestMu.src/M000031.html +20 -0
  328. data/rdoc/classes/TCTestMu.src/M000032.html +20 -0
  329. data/rdoc/classes/TCTestMu.src/M000033.html +27 -0
  330. data/rdoc/classes/TCTestMu.src/M000034.html +32 -0
  331. data/rdoc/classes/TCTestMu.src/M000035.html +23 -0
  332. data/rdoc/classes/TCTestMu.src/M000036.html +41 -0
  333. data/rdoc/classes/TCTestMu.src/M000037.html +23 -0
  334. data/rdoc/classes/TCTestMu.src/M000038.html +24 -0
  335. data/rdoc/classes/TCTestMu.src/M000039.html +20 -0
  336. data/rdoc/classes/TCTestMu.src/M000040.html +32 -0
  337. data/rdoc/classes/TCTestMu.src/M000041.html +32 -0
  338. data/rdoc/classes/TCTestMu.src/M000042.html +26 -0
  339. data/rdoc/classes/TCTestMu.src/M000043.html +28 -0
  340. data/rdoc/classes/TCTestMu.src/M000044.html +21 -0
  341. data/rdoc/classes/TCTestMu.src/M000045.html +23 -0
  342. data/rdoc/classes/TCTestMu.src/M000046.html +21 -0
  343. data/rdoc/classes/TCTestMu.src/M000047.html +20 -0
  344. data/rdoc/classes/TCTestMu.src/M000048.html +20 -0
  345. data/rdoc/classes/TCTestMu.src/M000049.html +22 -0
  346. data/rdoc/classes/TCTestMu.src/M000050.html +20 -0
  347. data/rdoc/classes/TCTestMu.src/M000051.html +35 -0
  348. data/rdoc/created.rid +1 -1
  349. data/rdoc/files/lib/mu/api/ddt_rb.html +1 -1
  350. data/rdoc/files/lib/mu/api/homepage_rb.html +1 -1
  351. data/rdoc/files/lib/mu/api/muapi_rb.html +1 -1
  352. data/rdoc/files/lib/mu/api/netconfig_rb.html +1 -1
  353. data/rdoc/files/lib/mu/api/scale_rb.html +1 -1
  354. data/rdoc/files/lib/mu/api/system_rb.html +1 -1
  355. data/rdoc/files/lib/mu/client_rb.html +1 -1
  356. data/rdoc/files/lib/mu/command/api_rb.html +1 -1
  357. data/rdoc/files/lib/mu/command/cmd_appid_rb.html +1 -1
  358. data/rdoc/files/lib/mu/command/cmd_cli_rb.html +1 -1
  359. data/rdoc/files/lib/mu/command/cmd_ddt_rb.html +4 -5
  360. data/rdoc/files/lib/mu/command/cmd_homepage_rb.html +1 -1
  361. data/rdoc/files/lib/mu/command/cmd_muapi_rb.html +3 -4
  362. data/rdoc/files/lib/mu/command/cmd_netconfig_rb.html +1 -1
  363. data/rdoc/files/lib/mu/command/cmd_runscale_rb.html +1 -1
  364. data/rdoc/files/lib/mu/command/cmd_runscenario_rb.html +1 -1
  365. data/rdoc/files/lib/mu/command/cmd_runverify_rb.html +5 -4
  366. data/rdoc/files/lib/mu/command/cmd_scale_rb.html +1 -1
  367. data/rdoc/files/lib/mu/command/cmd_system_rb.html +1 -1
  368. data/rdoc/files/lib/mu/command/curl_rb.html +1 -1
  369. data/rdoc/files/lib/mu/command/help_rb.html +1 -1
  370. data/rdoc/files/lib/mu/command_rb.html +1 -1
  371. data/rdoc/files/lib/mu/curl/error_rb.html +1 -1
  372. data/rdoc/files/lib/mu/curl/verify_rb.html +1 -1
  373. data/rdoc/files/lib/mu/http_helper_rb.html +1 -1
  374. data/rdoc/files/lib/mu_rb.html +1 -1
  375. data/rdoc/files/test/tc_test_mu_rb.html +1 -1
  376. data/rdoc/fr_class_index.html +0 -38
  377. data/rdoc/fr_file_index.html +0 -26
  378. data/rdoc/fr_method_index.html +25 -348
  379. data/rdoc/index.html +3 -3
  380. data/test/data/app_id_stats.csv +1 -1
  381. data/test/data/app_id_status.json +156 -0
  382. data/test/tc_test_mu.rb +1 -1
  383. metadata +314 -8
  384. data/Mu_Gem.html +0 -1591
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>cmd_help (Mu::Command::Cmd_appid)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/mu/command/cmd_appid.rb, line 13</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_help</span> <span class="ruby-identifier">argv</span>
15
+ <span class="ruby-identifier">help</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,30 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>cmd_running? (Mu::Command::Cmd_appid)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/mu/command/cmd_appid.rb, line 19</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_running?</span> <span class="ruby-identifier">argv</span>
15
+ <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">nil?</span>
16
+ <span class="ruby-identifier">msg</span> <span class="ruby-value str">&quot;false&quot;</span>
17
+ <span class="ruby-keyword kw">return</span>
18
+ <span class="ruby-keyword kw">end</span>
19
+
20
+ <span class="ruby-identifier">status</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">status</span>
21
+ <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">status</span>.<span class="ruby-identifier">nil?</span>
22
+ <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">status</span>[<span class="ruby-value str">&quot;status&quot;</span>].<span class="ruby-identifier">nil?</span>
23
+ <span class="ruby-identifier">msg</span> <span class="ruby-identifier">status</span>[<span class="ruby-value str">&quot;status&quot;</span>][<span class="ruby-value str">&quot;running&quot;</span>]
24
+ <span class="ruby-keyword kw">end</span>
25
+ <span class="ruby-keyword kw">else</span>
26
+ <span class="ruby-identifier">msg</span> <span class="ruby-value str">&quot;false&quot;</span>
27
+ <span class="ruby-keyword kw">end</span>
28
+ <span class="ruby-keyword kw">end</span></pre>
29
+ </body>
30
+ </html>
@@ -0,0 +1,39 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>cmd_run_file (Mu::Command::Cmd_appid)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/mu/command/cmd_appid.rb, line 37</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_run_file</span> <span class="ruby-identifier">argv</span>
15
+ <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
16
+
17
+ <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">not</span> <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'scenario'</span>]
18
+ <span class="ruby-identifier">raise</span> <span class="ruby-value str">&quot;*** Error: scenario required, using -s option&quot;</span>
19
+ <span class="ruby-keyword kw">else</span>
20
+ <span class="ruby-identifier">scenario</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'scenario'</span>]
21
+ <span class="ruby-keyword kw">end</span>
22
+
23
+ <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-identifier">scenario</span>)
24
+ <span class="ruby-identifier">raise</span> <span class="ruby-node">&quot;*** Error: Scenario file #{scenario} was not found&quot;</span>
25
+ <span class="ruby-keyword kw">end</span>
26
+
27
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">&quot;app_id_status.json&quot;</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-value str">&quot;app_id_status.json&quot;</span>)
28
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">&quot;app_id_stats.csv&quot;</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-value str">&quot;app_id_stats.csv&quot;</span>)
29
+
30
+ <span class="ruby-ivar">@api</span> = <span class="ruby-constant">Scale</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@@mu_ip</span>, <span class="ruby-ivar">@@mu_admin_user</span>, <span class="ruby-ivar">@@mu_admin_pass</span>)
31
+ <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">configure</span>(<span class="ruby-value str">&quot;pattern&quot;</span>, <span class="ruby-ivar">@cmd_line_pattern</span>)
32
+ <span class="ruby-ivar">@params</span> = {}
33
+ <span class="ruby-ivar">@params</span>[<span class="ruby-value str">&quot;msl&quot;</span>] = <span class="ruby-identifier">scenario</span>
34
+ <span class="ruby-ivar">@params</span>[<span class="ruby-value str">&quot;hosts&quot;</span>] = <span class="ruby-ivar">@cmd_line_hosts</span>
35
+ <span class="ruby-identifier">run</span>(<span class="ruby-identifier">scenario</span>)
36
+ <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">release</span>
37
+ <span class="ruby-keyword kw">end</span></pre>
38
+ </body>
39
+ </html>
@@ -0,0 +1,50 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>cmd_run_dir (Mu::Command::Cmd_appid)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/mu/command/cmd_appid.rb, line 65</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_run_dir</span> <span class="ruby-identifier">argv</span>
15
+ <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
16
+
17
+ <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">not</span> <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'dir'</span>]
18
+ <span class="ruby-identifier">raise</span> <span class="ruby-value str">&quot;*** Error: directory required, using -d option&quot;</span>
19
+ <span class="ruby-keyword kw">else</span>
20
+ <span class="ruby-identifier">dir</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'dir'</span>]
21
+ <span class="ruby-keyword kw">end</span>
22
+
23
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">&quot;app_id_status.json&quot;</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-value str">&quot;app_id_status.json&quot;</span>)
24
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">&quot;app_id_stats.csv&quot;</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-value str">&quot;app_id_stats.csv&quot;</span>)
25
+
26
+ <span class="ruby-ivar">@api</span> = <span class="ruby-constant">Scale</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@@mu_ip</span>, <span class="ruby-ivar">@@mu_admin_user</span>, <span class="ruby-ivar">@@mu_admin_pass</span>)
27
+ <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">configure</span>(<span class="ruby-value str">&quot;pattern&quot;</span>, <span class="ruby-ivar">@cmd_line_pattern</span>)
28
+ <span class="ruby-ivar">@params</span> = {}
29
+ <span class="ruby-ivar">@params</span>[<span class="ruby-value str">&quot;dir&quot;</span>] = <span class="ruby-identifier">dir</span>
30
+ <span class="ruby-ivar">@params</span>[<span class="ruby-value str">&quot;hosts&quot;</span>] = <span class="ruby-ivar">@cmd_line_hosts</span>
31
+ <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">chdir</span>(<span class="ruby-ivar">@params</span>[<span class="ruby-value str">&quot;dir&quot;</span>])
32
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">&quot;app_id_status.json&quot;</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-value str">&quot;app_id_status.json&quot;</span>)
33
+ <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'recursive'</span>].<span class="ruby-identifier">nil?</span>
34
+ <span class="ruby-identifier">files</span> = <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">glob</span>(<span class="ruby-value str">&quot;*.msl&quot;</span>)
35
+ <span class="ruby-keyword kw">else</span>
36
+ <span class="ruby-identifier">files</span> = <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">glob</span>(<span class="ruby-value str">&quot;**/*.msl&quot;</span>)
37
+ <span class="ruby-keyword kw">end</span>
38
+ <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">files</span>.<span class="ruby-identifier">empty?</span>
39
+ <span class="ruby-identifier">files</span>.<span class="ruby-identifier">sort</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span> <span class="ruby-identifier">f</span> <span class="ruby-operator">|</span>
40
+ <span class="ruby-identifier">run</span>(<span class="ruby-identifier">f</span>)
41
+ <span class="ruby-identifier">output_csv</span>(<span class="ruby-identifier">f</span>)
42
+ <span class="ruby-identifier">sleep</span> <span class="ruby-value">2</span>
43
+ <span class="ruby-keyword kw">end</span>
44
+ <span class="ruby-keyword kw">else</span>
45
+ <span class="ruby-identifier">msg</span> <span class="ruby-node">&quot;no msl files found in #{dir}&quot;</span>
46
+ <span class="ruby-keyword kw">end</span>
47
+ <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">release</span>
48
+ <span class="ruby-keyword kw">end</span></pre>
49
+ </body>
50
+ </html>
@@ -86,16 +86,12 @@
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000256">cmd_cli_help</a>&nbsp;&nbsp;
90
- <a href="#M000255">cmd_help</a>&nbsp;&nbsp;
91
- <a href="#M000258">cmd_history</a>&nbsp;&nbsp;
92
- <a href="#M000259">cmd_ping</a>&nbsp;&nbsp;
93
- <a href="#M000257">cmd_question</a>&nbsp;&nbsp;
94
- <a href="#M000260">cmd_traceroute</a>&nbsp;&nbsp;
95
- <a href="#M000264">help</a>&nbsp;&nbsp;
96
- <a href="#M000263">parse_cli</a>&nbsp;&nbsp;
97
- <a href="#M000261">run_cmd</a>&nbsp;&nbsp;
98
- <a href="#M000262">setup</a>&nbsp;&nbsp;
89
+ <a href="#M000201">cmd_cli_help</a>&nbsp;&nbsp;
90
+ <a href="#M000200">cmd_help</a>&nbsp;&nbsp;
91
+ <a href="#M000203">cmd_history</a>&nbsp;&nbsp;
92
+ <a href="#M000204">cmd_ping</a>&nbsp;&nbsp;
93
+ <a href="#M000202">cmd_question</a>&nbsp;&nbsp;
94
+ <a href="#M000205">cmd_traceroute</a>&nbsp;&nbsp;
99
95
  </div>
100
96
  </div>
101
97
 
@@ -145,67 +141,49 @@
145
141
  <div id="methods">
146
142
  <h3 class="section-bar">Public Instance methods</h3>
147
143
 
148
- <div id="method-M000256" class="method-detail">
149
- <a name="M000256"></a>
144
+ <div id="method-M000201" class="method-detail">
145
+ <a name="M000201"></a>
150
146
 
151
147
  <div class="method-heading">
152
- <a href="#M000256" class="method-signature">
148
+ <a href="Cmd_cli.src/M000201.html" target="Code" class="method-signature"
149
+ onclick="popupCode('Cmd_cli.src/M000201.html');return false;">
153
150
  <span class="method-name">cmd_cli_help</span><span class="method-args">(argv)</span>
154
151
  </a>
155
152
  </div>
156
153
 
157
154
  <div class="method-description">
158
155
  <p>
159
- runs the cli <a href="Cmd_cli.html#M000264">help</a> command
156
+ runs the cli help command
160
157
  </p>
161
158
  <pre>
162
159
  * argv = command-line arguments
163
160
  </pre>
164
- <p><a class="source-toggle" href="#"
165
- onclick="toggleCode('M000256-source');return false;">[Source]</a></p>
166
- <div class="method-source-code" id="M000256-source">
167
- <pre>
168
- <span class="ruby-comment cmt"># File lib/mu/command/cmd_cli.rb, line 15</span>
169
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_cli_help</span> <span class="ruby-identifier">argv</span>
170
- <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
171
- <span class="ruby-identifier">msg</span> <span class="ruby-identifier">run_cmd</span>(<span class="ruby-value str">&quot;help&quot;</span>)
172
- <span class="ruby-keyword kw">end</span>
173
- </pre>
174
- </div>
175
161
  </div>
176
162
  </div>
177
163
 
178
- <div id="method-M000255" class="method-detail">
179
- <a name="M000255"></a>
164
+ <div id="method-M000200" class="method-detail">
165
+ <a name="M000200"></a>
180
166
 
181
167
  <div class="method-heading">
182
- <a href="#M000255" class="method-signature">
168
+ <a href="Cmd_cli.src/M000200.html" target="Code" class="method-signature"
169
+ onclick="popupCode('Cmd_cli.src/M000200.html');return false;">
183
170
  <span class="method-name">cmd_help</span><span class="method-args">(argv)</span>
184
171
  </a>
185
172
  </div>
186
173
 
187
174
  <div class="method-description">
188
175
  <p>
189
- displays command-line <a href="Cmd_cli.html#M000264">help</a>
176
+ displays command-line help
190
177
  </p>
191
- <p><a class="source-toggle" href="#"
192
- onclick="toggleCode('M000255-source');return false;">[Source]</a></p>
193
- <div class="method-source-code" id="M000255-source">
194
- <pre>
195
- <span class="ruby-comment cmt"># File lib/mu/command/cmd_cli.rb, line 9</span>
196
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_help</span> <span class="ruby-identifier">argv</span>
197
- <span class="ruby-identifier">help</span>
198
- <span class="ruby-keyword kw">end</span>
199
- </pre>
200
- </div>
201
178
  </div>
202
179
  </div>
203
180
 
204
- <div id="method-M000258" class="method-detail">
205
- <a name="M000258"></a>
181
+ <div id="method-M000203" class="method-detail">
182
+ <a name="M000203"></a>
206
183
 
207
184
  <div class="method-heading">
208
- <a href="#M000258" class="method-signature">
185
+ <a href="Cmd_cli.src/M000203.html" target="Code" class="method-signature"
186
+ onclick="popupCode('Cmd_cli.src/M000203.html');return false;">
209
187
  <span class="method-name">cmd_history</span><span class="method-args">(argv)</span>
210
188
  </a>
211
189
  </div>
@@ -217,25 +195,15 @@ displays the command line history for the current session
217
195
  <pre>
218
196
  * argv = command-line arguments
219
197
  </pre>
220
- <p><a class="source-toggle" href="#"
221
- onclick="toggleCode('M000258-source');return false;">[Source]</a></p>
222
- <div class="method-source-code" id="M000258-source">
223
- <pre>
224
- <span class="ruby-comment cmt"># File lib/mu/command/cmd_cli.rb, line 29</span>
225
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_history</span> <span class="ruby-identifier">argv</span>
226
- <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
227
- <span class="ruby-identifier">msg</span> <span class="ruby-identifier">run_cmd</span>(<span class="ruby-value str">&quot;history&quot;</span>)
228
- <span class="ruby-keyword kw">end</span>
229
- </pre>
230
- </div>
231
198
  </div>
232
199
  </div>
233
200
 
234
- <div id="method-M000259" class="method-detail">
235
- <a name="M000259"></a>
201
+ <div id="method-M000204" class="method-detail">
202
+ <a name="M000204"></a>
236
203
 
237
204
  <div class="method-heading">
238
- <a href="#M000259" class="method-signature">
205
+ <a href="Cmd_cli.src/M000204.html" target="Code" class="method-signature"
206
+ onclick="popupCode('Cmd_cli.src/M000204.html');return false;">
239
207
  <span class="method-name">cmd_ping</span><span class="method-args">(argv)</span>
240
208
  </a>
241
209
  </div>
@@ -247,26 +215,15 @@ pings an ip address
247
215
  <pre>
248
216
  * argv = command-line arguments, requires an ip address (-a) argument
249
217
  </pre>
250
- <p><a class="source-toggle" href="#"
251
- onclick="toggleCode('M000259-source');return false;">[Source]</a></p>
252
- <div class="method-source-code" id="M000259-source">
253
- <pre>
254
- <span class="ruby-comment cmt"># File lib/mu/command/cmd_cli.rb, line 36</span>
255
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_ping</span> <span class="ruby-identifier">argv</span>
256
- <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
257
- <span class="ruby-identifier">addr</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">&quot;address&quot;</span>]
258
- <span class="ruby-identifier">msg</span> <span class="ruby-identifier">run_cmd</span>(<span class="ruby-node">&quot;ping #{addr}&quot;</span>)
259
- <span class="ruby-keyword kw">end</span>
260
- </pre>
261
- </div>
262
218
  </div>
263
219
  </div>
264
220
 
265
- <div id="method-M000257" class="method-detail">
266
- <a name="M000257"></a>
221
+ <div id="method-M000202" class="method-detail">
222
+ <a name="M000202"></a>
267
223
 
268
224
  <div class="method-heading">
269
- <a href="#M000257" class="method-signature">
225
+ <a href="Cmd_cli.src/M000202.html" target="Code" class="method-signature"
226
+ onclick="popupCode('Cmd_cli.src/M000202.html');return false;">
270
227
  <span class="method-name">cmd_question</span><span class="method-args">(argv)</span>
271
228
  </a>
272
229
  </div>
@@ -278,25 +235,15 @@ runs the cli command &#8217;?&quot;
278
235
  <pre>
279
236
  * argv = command-line arguments
280
237
  </pre>
281
- <p><a class="source-toggle" href="#"
282
- onclick="toggleCode('M000257-source');return false;">[Source]</a></p>
283
- <div class="method-source-code" id="M000257-source">
284
- <pre>
285
- <span class="ruby-comment cmt"># File lib/mu/command/cmd_cli.rb, line 22</span>
286
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_question</span> <span class="ruby-identifier">argv</span>
287
- <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
288
- <span class="ruby-identifier">msg</span> <span class="ruby-identifier">run_cmd</span>(<span class="ruby-value str">&quot;?&quot;</span>)
289
- <span class="ruby-keyword kw">end</span>
290
- </pre>
291
- </div>
292
238
  </div>
293
239
  </div>
294
240
 
295
- <div id="method-M000260" class="method-detail">
296
- <a name="M000260"></a>
241
+ <div id="method-M000205" class="method-detail">
242
+ <a name="M000205"></a>
297
243
 
298
244
  <div class="method-heading">
299
- <a href="#M000260" class="method-signature">
245
+ <a href="Cmd_cli.src/M000205.html" target="Code" class="method-signature"
246
+ onclick="popupCode('Cmd_cli.src/M000205.html');return false;">
300
247
  <span class="method-name">cmd_traceroute</span><span class="method-args">(argv)</span>
301
248
  </a>
302
249
  </div>
@@ -308,195 +255,6 @@ runs traceroute on an ip address
308
255
  <pre>
309
256
  * argv = command-line arguments, requires an ip address (-a) argument
310
257
  </pre>
311
- <p><a class="source-toggle" href="#"
312
- onclick="toggleCode('M000260-source');return false;">[Source]</a></p>
313
- <div class="method-source-code" id="M000260-source">
314
- <pre>
315
- <span class="ruby-comment cmt"># File lib/mu/command/cmd_cli.rb, line 44</span>
316
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_traceroute</span> <span class="ruby-identifier">argv</span>
317
- <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
318
- <span class="ruby-identifier">addr</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">&quot;address&quot;</span>]
319
- <span class="ruby-identifier">msg</span> <span class="ruby-identifier">run_cmd</span>(<span class="ruby-node">&quot;traceroute #{addr}&quot;</span>)
320
- <span class="ruby-keyword kw">end</span>
321
- </pre>
322
- </div>
323
- </div>
324
- </div>
325
-
326
- <h3 class="section-bar">Private Instance methods</h3>
327
-
328
- <div id="method-M000264" class="method-detail">
329
- <a name="M000264"></a>
330
-
331
- <div class="method-heading">
332
- <a href="#M000264" class="method-signature">
333
- <span class="method-name">help</span><span class="method-args">()</span>
334
- </a>
335
- </div>
336
-
337
- <div class="method-description">
338
- <p><a class="source-toggle" href="#"
339
- onclick="toggleCode('M000264-source');return false;">[Source]</a></p>
340
- <div class="method-source-code" id="M000264-source">
341
- <pre>
342
- <span class="ruby-comment cmt"># File lib/mu/command/cmd_cli.rb, line 115</span>
343
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">help</span>
344
- <span class="ruby-identifier">helps</span> = [
345
- { <span class="ruby-identifier">:short</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'-a'</span>, <span class="ruby-identifier">:long</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'--address'</span>, <span class="ruby-identifier">:value</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'&lt;string'</span>, <span class="ruby-identifier">:help</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'ip address to for ping or traceroute'</span> },
346
- { <span class="ruby-identifier">:short</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'-h'</span>, <span class="ruby-identifier">:long</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'--help'</span>, <span class="ruby-identifier">:value</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">''</span>, <span class="ruby-identifier">:help</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'Help on command line options'</span> },
347
- { <span class="ruby-identifier">:short</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'-o'</span>, <span class="ruby-identifier">:long</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'--output'</span>, <span class="ruby-identifier">:value</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'&lt;string&gt;'</span>, <span class="ruby-identifier">:help</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'output logging to this file'</span> },
348
- { <span class="ruby-identifier">:short</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'-m'</span>, <span class="ruby-identifier">:long</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'--mu_string'</span>, <span class="ruby-identifier">:value</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'&lt;string&gt;'</span>, <span class="ruby-identifier">:help</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'user, password, mu_ip in the form of admin:admin@10.9.8.7'</span> },
349
- { <span class="ruby-identifier">:short</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'-v'</span>, <span class="ruby-identifier">:long</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'--verbose'</span>, <span class="ruby-identifier">:value</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">''</span>, <span class="ruby-identifier">:help</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'set Logger::DEBUG level'</span> }
350
- ]
351
-
352
- <span class="ruby-identifier">cmds</span> = [
353
- <span class="ruby-value str">&quot;mu cmd_cli:cli_help&quot;</span>,
354
- <span class="ruby-value str">&quot;mu cmd_cli:history&quot;</span>,
355
- <span class="ruby-value str">&quot;mu cmd_cli:ping -a &lt;address&gt;&quot;</span>,
356
- <span class="ruby-value str">&quot;mu cmd_cli:question&quot;</span>,
357
- <span class="ruby-value str">&quot;mu cmd_cli:traceroute -a &lt;address&gt;&quot;</span>,
358
- ]
359
-
360
- <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-identifier">:long</span>].<span class="ruby-identifier">size</span>, <span class="ruby-identifier">memo</span> ].<span class="ruby-identifier">max</span> }
361
- <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-identifier">:value</span>].<span class="ruby-identifier">size</span>, <span class="ruby-identifier">memo</span> ].<span class="ruby-identifier">max</span> }
362
- <span class="ruby-identifier">puts</span>
363
- <span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;Usage: mu cmd_cli:&lt;command&gt; &lt;options&gt;&quot;</span>
364
- <span class="ruby-identifier">puts</span>
365
- <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>
366
- <span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;%-*s %*s %-*s %s&quot;</span> <span class="ruby-operator">%</span> [<span class="ruby-identifier">max_long_size</span>, <span class="ruby-identifier">h</span>[<span class="ruby-identifier">:long</span>], <span class="ruby-value">2</span>, <span class="ruby-identifier">h</span>[<span class="ruby-identifier">:short</span>], <span class="ruby-identifier">max_value_size</span>, <span class="ruby-identifier">h</span>[<span class="ruby-identifier">:value</span>], <span class="ruby-identifier">h</span>[<span class="ruby-identifier">:help</span>]]
367
- <span class="ruby-keyword kw">end</span>
368
- <span class="ruby-identifier">puts</span>
369
- <span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;Available Commands&quot;</span>
370
- <span class="ruby-identifier">puts</span>
371
- <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>
372
- <span class="ruby-identifier">puts</span> <span class="ruby-identifier">c</span>
373
- <span class="ruby-keyword kw">end</span>
374
- <span class="ruby-identifier">puts</span>
375
- <span class="ruby-keyword kw">end</span>
376
- </pre>
377
- </div>
378
- </div>
379
- </div>
380
-
381
- <div id="method-M000263" class="method-detail">
382
- <a name="M000263"></a>
383
-
384
- <div class="method-heading">
385
- <a href="#M000263" class="method-signature">
386
- <span class="method-name">parse_cli</span><span class="method-args">(argv)</span>
387
- </a>
388
- </div>
389
-
390
- <div class="method-description">
391
- <p><a class="source-toggle" href="#"
392
- onclick="toggleCode('M000263-source');return false;">[Source]</a></p>
393
- <div class="method-source-code" id="M000263-source">
394
- <pre>
395
- <span class="ruby-comment cmt"># File lib/mu/command/cmd_cli.rb, line 72</span>
396
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parse_cli</span> <span class="ruby-identifier">argv</span>
397
- <span class="ruby-ivar">@hash</span> = {}
398
- <span class="ruby-identifier">args</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
399
- <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>
400
- <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</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>
401
-
402
- <span class="ruby-identifier">k</span> = <span class="ruby-identifier">argv</span>.<span class="ruby-identifier">shift</span>
403
-
404
- <span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-a'</span>, <span class="ruby-value str">'--address'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
405
- <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'address'</span>] = <span class="ruby-identifier">shift</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">argv</span>)
406
- <span class="ruby-keyword kw">next</span>
407
- <span class="ruby-keyword kw">end</span>
408
-
409
- <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>
410
- <span class="ruby-identifier">help</span>
411
- <span class="ruby-identifier">exit</span>
412
- <span class="ruby-keyword kw">end</span>
413
-
414
- <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>
415
- <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>)
416
- <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>
417
- <span class="ruby-ivar">@@mu_admin_user</span> = <span class="ruby-identifier">$1</span>
418
- <span class="ruby-ivar">@@mu_admin_pass</span> = <span class="ruby-identifier">$2</span>
419
- <span class="ruby-ivar">@@mu_ip</span> = <span class="ruby-identifier">$3</span>
420
- <span class="ruby-keyword kw">end</span>
421
- <span class="ruby-keyword kw">next</span>
422
- <span class="ruby-keyword kw">end</span>
423
-
424
- <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>
425
- <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">&quot;w&quot;</span>)
426
- <span class="ruby-keyword kw">next</span>
427
- <span class="ruby-keyword kw">end</span>
428
-
429
- <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>
430
- <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>
431
- <span class="ruby-keyword kw">next</span>
432
- <span class="ruby-keyword kw">end</span>
433
-
434
- <span class="ruby-keyword kw">end</span>
435
-
436
- <span class="ruby-identifier">args</span>
437
- <span class="ruby-keyword kw">end</span>
438
- </pre>
439
- </div>
440
- </div>
441
- </div>
442
-
443
- <div id="method-M000261" class="method-detail">
444
- <a name="M000261"></a>
445
-
446
- <div class="method-heading">
447
- <a href="#M000261" class="method-signature">
448
- <span class="method-name">run_cmd</span><span class="method-args">(command, prompt=@prompt)</span>
449
- </a>
450
- </div>
451
-
452
- <div class="method-description">
453
- <p>
454
- runs the cli command
455
- </p>
456
- <p><a class="source-toggle" href="#"
457
- onclick="toggleCode('M000261-source');return false;">[Source]</a></p>
458
- <div class="method-source-code" id="M000261-source">
459
- <pre>
460
- <span class="ruby-comment cmt"># File lib/mu/command/cmd_cli.rb, line 53</span>
461
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run_cmd</span>(<span class="ruby-identifier">command</span>, <span class="ruby-identifier">prompt</span>=<span class="ruby-ivar">@prompt</span>)
462
- <span class="ruby-identifier">msg</span> <span class="ruby-node">&quot;run command #{command}&quot;</span>
463
- <span class="ruby-ivar">@pipe</span>.<span class="ruby-identifier">write</span>(<span class="ruby-node">&quot;#{command}\r&quot;</span>)
464
- <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@pipe</span>.<span class="ruby-identifier">readline</span>(<span class="ruby-identifier">prompt</span>)
465
- <span class="ruby-ivar">@pipe</span>.<span class="ruby-identifier">close</span>
466
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
467
- <span class="ruby-keyword kw">end</span>
468
- </pre>
469
- </div>
470
- </div>
471
- </div>
472
-
473
- <div id="method-M000262" class="method-detail">
474
- <a name="M000262"></a>
475
-
476
- <div class="method-heading">
477
- <a href="#M000262" class="method-signature">
478
- <span class="method-name">setup</span><span class="method-args">(argv)</span>
479
- </a>
480
- </div>
481
-
482
- <div class="method-description">
483
- <p><a class="source-toggle" href="#"
484
- onclick="toggleCode('M000262-source');return false;">[Source]</a></p>
485
- <div class="method-source-code" id="M000262-source">
486
- <pre>
487
- <span class="ruby-comment cmt"># File lib/mu/command/cmd_cli.rb, line 61</span>
488
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
489
- <span class="ruby-identifier">parse_cli</span> <span class="ruby-identifier">argv</span>
490
- <span class="ruby-ivar">@host</span> = (<span class="ruby-ivar">@@mu_ip</span>.<span class="ruby-identifier">nil?</span>) <span class="ruby-operator">?</span> <span class="ruby-value str">&quot;127.0.0.1&quot;</span> <span class="ruby-operator">:</span> <span class="ruby-ivar">@@mu_ip</span>
491
- <span class="ruby-ivar">@username</span> = (<span class="ruby-ivar">@@mu_admin_user</span>.<span class="ruby-identifier">nil?</span>) <span class="ruby-operator">?</span> <span class="ruby-value str">&quot;admin&quot;</span> <span class="ruby-operator">:</span> <span class="ruby-ivar">@@mu_admin_user</span>
492
- <span class="ruby-ivar">@password</span> = (<span class="ruby-ivar">@@mu_admin_pass</span>.<span class="ruby-identifier">nil?</span>) <span class="ruby-operator">?</span> <span class="ruby-value str">&quot;admin&quot;</span> <span class="ruby-operator">:</span> <span class="ruby-ivar">@@mu_admin_pass</span>
493
- <span class="ruby-ivar">@prompt</span> = <span class="ruby-value str">&quot;MU&gt;&quot;</span>
494
- <span class="ruby-ivar">@pipe</span> = <span class="ruby-constant">IO</span>.<span class="ruby-identifier">popen</span>(<span class="ruby-node">&quot;./lib/mu/cli/muclish.tcl #{@host} #{@password} '#{@prompt}'&quot;</span>, <span class="ruby-value str">'w+'</span>)
495
- <span class="ruby-ivar">@pipe</span>.<span class="ruby-identifier">sync</span> = <span class="ruby-keyword kw">true</span>
496
- <span class="ruby-ivar">@banner</span> = <span class="ruby-ivar">@pipe</span>.<span class="ruby-identifier">readline</span>(<span class="ruby-ivar">@prompt</span>)
497
- <span class="ruby-keyword kw">end</span>
498
- </pre>
499
- </div>
500
258
  </div>
501
259
  </div>
502
260