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,25 @@
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>new (Mu::Netconfig)</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/api/netconfig.rb, line 7</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">host</span>=<span class="ruby-constant">ENV</span>[<span class="ruby-value str">'MU_IP'</span>], <span class="ruby-identifier">username</span>=<span class="ruby-constant">ENV</span>[<span class="ruby-value str">'MU_ADMIN_USER'</span>], <span class="ruby-identifier">password</span>=<span class="ruby-constant">ENV</span>[<span class="ruby-value str">'MU_ADMIN_PASS'</span>])
15
+ <span class="ruby-ivar">@host</span> = <span class="ruby-identifier">host</span>
16
+ <span class="ruby-ivar">@username</span> = <span class="ruby-identifier">username</span>
17
+ <span class="ruby-ivar">@password</span> = <span class="ruby-identifier">password</span>
18
+ <span class="ruby-ivar">@docroot</span> = <span class="ruby-value str">&quot;/restlet/netconfig/&quot;</span>
19
+ <span class="ruby-ivar">@response</span> = <span class="ruby-keyword kw">nil</span>
20
+ <span class="ruby-ivar">@http</span> = <span class="ruby-constant">HttpHelper</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@host</span>, <span class="ruby-ivar">@username</span>, <span class="ruby-ivar">@password</span>, <span class="ruby-ivar">@docroot</span>)
21
+ <span class="ruby-ivar">@element</span> = <span class="ruby-value str">&quot;&quot;</span> <span class="ruby-comment cmt"># sticky variable will hold a default element, the last element specified</span>
22
+ <span class="ruby-identifier">msg</span> <span class="ruby-node">&quot;Created Netconfig API object to :#{@host}&quot;</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
23
+ <span class="ruby-keyword kw">end</span></pre>
24
+ </body>
25
+ </html>
@@ -0,0 +1,20 @@
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>get (Mu::Netconfig)</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/api/netconfig.rb, line 20</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get</span>(<span class="ruby-identifier">e</span>)
15
+ <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get_json</span>(<span class="ruby-identifier">e</span>)
16
+ <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
17
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
18
+ <span class="ruby-keyword kw">end</span></pre>
19
+ </body>
20
+ </html>
@@ -0,0 +1,21 @@
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>modify (Mu::Netconfig)</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/api/netconfig.rb, line 29</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">modify</span>(<span class="ruby-identifier">json</span>, <span class="ruby-identifier">e</span>)
15
+ <span class="ruby-identifier">response</span> = <span class="ruby-identifier">do_modify</span>(<span class="ruby-identifier">json</span>, <span class="ruby-identifier">e</span>)
16
+ <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
17
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
18
+ ??
19
+ <span class="ruby-keyword kw">end</span></pre>
20
+ </body>
21
+ </html>
@@ -0,0 +1,24 @@
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>create (Mu::Netconfig)</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/api/netconfig.rb, line 48</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create</span>(<span class="ruby-identifier">json</span>, <span class="ruby-identifier">e</span>)
15
+ <span class="ruby-identifier">jstring</span> = <span class="ruby-identifier">json</span>
16
+ <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">json</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">String</span>
17
+ <span class="ruby-identifier">jstring</span> = <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">generate</span> <span class="ruby-identifier">json</span>
18
+ <span class="ruby-keyword kw">end</span>
19
+ <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">post_json</span>(<span class="ruby-identifier">e</span>, <span class="ruby-identifier">jstring</span>)
20
+ <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
21
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
22
+ <span class="ruby-keyword kw">end</span></pre>
23
+ </body>
24
+ </html>
@@ -0,0 +1,20 @@
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>delete (Mu::Netconfig)</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/api/netconfig.rb, line 60</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete</span>(<span class="ruby-identifier">e</span>)
15
+ <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">e</span>)
16
+ <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
17
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
18
+ <span class="ruby-keyword kw">end</span></pre>
19
+ </body>
20
+ </html>
@@ -0,0 +1,36 @@
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>restore (Mu::Netconfig)</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/api/netconfig.rb, line 69</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">restore</span>(<span class="ruby-identifier">filepath</span>=<span class="ruby-keyword kw">nil</span>,<span class="ruby-identifier">clear_existing</span>=<span class="ruby-keyword kw">false</span>)
15
+ <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">filepath</span>.<span class="ruby-identifier">nil?</span>
16
+ <span class="ruby-ivar">@config</span> = <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">filepath</span>))
17
+ <span class="ruby-keyword kw">end</span>
18
+ <span class="ruby-ivar">@config</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>
19
+ <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">keys</span>[<span class="ruby-value">0</span>]
20
+ <span class="ruby-keyword kw">when</span> <span class="ruby-value str">&quot;hosts&quot;</span>
21
+ <span class="ruby-identifier">msg</span> <span class="ruby-value str">&quot;RESTORE HOSTS&quot;</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
22
+ <span class="ruby-identifier">clear_existing</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">clear_hosts</span>
23
+ <span class="ruby-identifier">restore_hosts</span> <span class="ruby-identifier">c</span>[<span class="ruby-value str">&quot;hosts&quot;</span>]
24
+ <span class="ruby-keyword kw">when</span> <span class="ruby-value str">&quot;routes&quot;</span>
25
+ <span class="ruby-identifier">msg</span> <span class="ruby-value str">&quot;RESTORE ROUTES&quot;</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
26
+ <span class="ruby-identifier">clear_existing</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">clear_routes</span>
27
+ <span class="ruby-identifier">restore_routes</span> <span class="ruby-identifier">c</span>[<span class="ruby-value str">&quot;routes&quot;</span>]
28
+ <span class="ruby-keyword kw">when</span> <span class="ruby-value str">&quot;interfaces&quot;</span>
29
+ <span class="ruby-identifier">clear_existing</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">clear_vlans</span>
30
+ <span class="ruby-identifier">msg</span> <span class="ruby-value str">&quot;RESTORE INTERFACES&quot;</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
31
+ <span class="ruby-identifier">restore_interfaces</span> <span class="ruby-identifier">c</span>[<span class="ruby-value str">&quot;interfaces&quot;</span>]
32
+ <span class="ruby-keyword kw">end</span>
33
+ <span class="ruby-keyword kw">end</span>
34
+ <span class="ruby-keyword kw">end</span></pre>
35
+ </body>
36
+ </html>
@@ -0,0 +1,22 @@
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>clear_hosts (Mu::Netconfig)</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/api/netconfig.rb, line 92</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clear_hosts</span>
15
+ <span class="ruby-identifier">h</span> = <span class="ruby-identifier">get</span>(<span class="ruby-value str">&quot;hosts&quot;</span>)
16
+ <span class="ruby-identifier">h</span>[<span class="ruby-value str">&quot;hosts&quot;</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>
17
+ <span class="ruby-identifier">msg</span> <span class="ruby-node">&quot;Clear host: #{h['name']}&quot;</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
18
+ <span class="ruby-identifier">delete</span>(<span class="ruby-node">&quot;hosts/#{h['name']}&quot;</span>)
19
+ <span class="ruby-keyword kw">end</span>
20
+ <span class="ruby-keyword kw">end</span></pre>
21
+ </body>
22
+ </html>
@@ -0,0 +1,22 @@
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>restore_hosts (Mu::Netconfig)</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/api/netconfig.rb, line 101</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">restore_hosts</span>(<span class="ruby-identifier">hosts</span>)
15
+ <span class="ruby-identifier">hosts</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>
16
+ <span class="ruby-identifier">msg</span> <span class="ruby-node">&quot;create host: #{h['name']}&quot;</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
17
+ <span class="ruby-identifier">delete</span> <span class="ruby-node">&quot;hosts/#{h['name']}&quot;</span> <span class="ruby-comment cmt"># harmlessly fails when host does not exist</span>
18
+ <span class="ruby-identifier">create</span>(<span class="ruby-identifier">h</span>,<span class="ruby-value str">&quot;hosts&quot;</span>)
19
+ <span class="ruby-keyword kw">end</span>
20
+ <span class="ruby-keyword kw">end</span></pre>
21
+ </body>
22
+ </html>
@@ -0,0 +1,37 @@
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>resolve_hosts (Mu::Netconfig)</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/api/netconfig.rb, line 112</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">resolve_hosts</span>(<span class="ruby-identifier">name</span>=<span class="ruby-keyword kw">nil</span>)
15
+ <span class="ruby-identifier">hosts</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
16
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">name</span>.<span class="ruby-identifier">nil?</span>
17
+ <span class="ruby-identifier">hst</span> = <span class="ruby-identifier">get</span> <span class="ruby-value str">&quot;hosts&quot;</span>
18
+ <span class="ruby-identifier">hst</span>[<span class="ruby-value str">&quot;hosts&quot;</span>].<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">h</span><span class="ruby-operator">|</span> <span class="ruby-identifier">hosts</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">h</span>[<span class="ruby-value str">&quot;name&quot;</span>]}
19
+ <span class="ruby-keyword kw">else</span>
20
+ <span class="ruby-identifier">hosts</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">name</span>
21
+ <span class="ruby-keyword kw">end</span>
22
+ <span class="ruby-identifier">hosts</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>
23
+ <span class="ruby-identifier">msg</span> <span class="ruby-node">&quot;resolve host: #{h}&quot;</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
24
+ <span class="ruby-identifier">v4_addr</span> = <span class="ruby-constant">Socket</span><span class="ruby-operator">::</span><span class="ruby-identifier">gethostbyname</span>(<span class="ruby-identifier">h</span>)[<span class="ruby-value">3</span>].<span class="ruby-identifier">unpack</span>(<span class="ruby-value str">&quot;CCCC&quot;</span>).<span class="ruby-identifier">join</span>(<span class="ruby-value str">&quot;.&quot;</span>) <span class="ruby-keyword kw">rescue</span> <span class="ruby-keyword kw">nil</span>
25
+ <span class="ruby-keyword kw">next</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">v4_addr</span>.<span class="ruby-identifier">nil?</span>
26
+ <span class="ruby-identifier">json</span> = <span class="ruby-identifier">get</span> <span class="ruby-node">&quot;hosts/#{h}&quot;</span>
27
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">json</span>[<span class="ruby-value str">&quot;name&quot;</span>].<span class="ruby-identifier">nil?</span>
28
+ <span class="ruby-identifier">json</span> = {<span class="ruby-value str">&quot;name&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">h</span>, <span class="ruby-value str">&quot;v4_addr&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">v4_addr</span>}
29
+ <span class="ruby-identifier">create</span> <span class="ruby-identifier">json</span>, <span class="ruby-value str">&quot;hosts&quot;</span>
30
+ <span class="ruby-keyword kw">else</span>
31
+ <span class="ruby-identifier">json</span>[<span class="ruby-value str">&quot;v4_addr&quot;</span>] = <span class="ruby-identifier">v4_addr</span>
32
+ <span class="ruby-identifier">modify</span> <span class="ruby-identifier">json</span>, <span class="ruby-node">&quot;hosts/#{h}&quot;</span>
33
+ <span class="ruby-keyword kw">end</span>
34
+ <span class="ruby-keyword kw">end</span>
35
+ <span class="ruby-keyword kw">end</span></pre>
36
+ </body>
37
+ </html>
@@ -0,0 +1,21 @@
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>clear_interface (Mu::Netconfig)</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/api/netconfig.rb, line 137</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clear_interface</span>(<span class="ruby-identifier">interface</span>)
15
+ <span class="ruby-identifier">interface</span> = <span class="ruby-identifier">interface</span>
16
+ <span class="ruby-identifier">json</span> = { <span class="ruby-value str">&quot;v4_addrs&quot;</span>=<span class="ruby-operator">&gt;</span>[], <span class="ruby-value str">&quot;v4_mask&quot;</span>=<span class="ruby-operator">&gt;</span><span class="ruby-value str">&quot;&quot;</span>, <span class="ruby-value str">&quot;v4_dhcp&quot;</span>=<span class="ruby-operator">&gt;</span><span class="ruby-keyword kw">false</span>,
17
+ <span class="ruby-value str">&quot;v6_global_addrs&quot;</span>=<span class="ruby-operator">&gt;</span>[], <span class="ruby-value str">&quot;v6_global_mask&quot;</span>=<span class="ruby-operator">&gt;</span><span class="ruby-value str">&quot;&quot;</span>}
18
+ <span class="ruby-identifier">modify</span> <span class="ruby-identifier">json</span>,<span class="ruby-node">&quot;interfaces/#{interface}&quot;</span>
19
+ <span class="ruby-keyword kw">end</span></pre>
20
+ </body>
21
+ </html>
@@ -0,0 +1,23 @@
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>clear_vlans (Mu::Netconfig)</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/api/netconfig.rb, line 145</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clear_vlans</span>
15
+ <span class="ruby-identifier">i</span> = <span class="ruby-identifier">get</span> <span class="ruby-value str">&quot;interfaces&quot;</span>
16
+ <span class="ruby-identifier">i</span>[<span class="ruby-value str">&quot;interfaces&quot;</span>].<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
17
+ <span class="ruby-keyword kw">next</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">i</span>[<span class="ruby-value str">'vlan'</span>] <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;&quot;</span>
18
+ <span class="ruby-identifier">msg</span> <span class="ruby-node">&quot;Clear vlan: #{i['name']}&quot;</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
19
+ <span class="ruby-identifier">delete</span> <span class="ruby-node">&quot;interfaces/#{i['name']}&quot;</span>
20
+ <span class="ruby-keyword kw">end</span>
21
+ <span class="ruby-keyword kw">end</span></pre>
22
+ </body>
23
+ </html>
@@ -0,0 +1,26 @@
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>restore_interfaces (Mu::Netconfig)</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/api/netconfig.rb, line 156</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">restore_interfaces</span>(<span class="ruby-identifier">interfaces</span>)
15
+ <span class="ruby-identifier">interfaces</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
16
+ <span class="ruby-keyword kw">next</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">i</span>[<span class="ruby-value str">'name'</span>].<span class="ruby-identifier">include?</span> <span class="ruby-value str">&quot;eth&quot;</span> <span class="ruby-comment cmt"># don't do eth0 or eth1</span>
17
+ <span class="ruby-identifier">msg</span> <span class="ruby-node">&quot;configure interface: #{i['name']}&quot;</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
18
+ <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">i</span>[<span class="ruby-value str">'vlan'</span>] <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;&quot;</span>
19
+ <span class="ruby-identifier">interface</span>,<span class="ruby-identifier">vlan</span> = <span class="ruby-identifier">i</span>[<span class="ruby-value str">'name'</span>].<span class="ruby-identifier">split</span>(<span class="ruby-value str">&quot;.&quot;</span>)
20
+ <span class="ruby-identifier">create</span> [{<span class="ruby-value str">&quot;name&quot;</span>=<span class="ruby-operator">&gt;</span><span class="ruby-identifier">interface</span>,<span class="ruby-value str">&quot;vlan&quot;</span>=<span class="ruby-operator">&gt;</span><span class="ruby-identifier">vlan</span>},<span class="ruby-value str">&quot;interfaces&quot;</span>]
21
+ <span class="ruby-keyword kw">end</span>
22
+ <span class="ruby-identifier">modify</span> [<span class="ruby-identifier">i</span>,<span class="ruby-node">&quot;interfaces/#{i['name']}&quot;</span>]
23
+ <span class="ruby-keyword kw">end</span>
24
+ <span class="ruby-keyword kw">end</span></pre>
25
+ </body>
26
+ </html>
@@ -0,0 +1,23 @@
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>clear_routes (Mu::Netconfig)</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/api/netconfig.rb, line 169</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clear_routes</span>
15
+ <span class="ruby-identifier">routes</span> = <span class="ruby-identifier">get</span> <span class="ruby-value str">&quot;routes&quot;</span>
16
+ <span class="ruby-identifier">routes</span>[<span class="ruby-value str">&quot;routes&quot;</span>].<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">r</span><span class="ruby-operator">|</span>
17
+ <span class="ruby-keyword kw">next</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">r</span>[<span class="ruby-value str">'readonly'</span>] <span class="ruby-operator">==</span> <span class="ruby-keyword kw">true</span>
18
+ <span class="ruby-identifier">msg</span> <span class="ruby-node">&quot;Clear route: #{r['dst']}-#{r['gateway']}-#{r['interface_display_name'].downcase}&quot;</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
19
+ <span class="ruby-identifier">delete</span> <span class="ruby-node">&quot;routes/#{r['dst']}-#{r['gateway']}-#{r['interface_display_name'].downcase}&quot;</span>
20
+ <span class="ruby-keyword kw">end</span>
21
+ <span class="ruby-keyword kw">end</span></pre>
22
+ </body>
23
+ </html>
@@ -0,0 +1,22 @@
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>restore_routes (Mu::Netconfig)</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/api/netconfig.rb, line 179</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">restore_routes</span>(<span class="ruby-identifier">routes</span>)
15
+ <span class="ruby-identifier">routes</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">r</span><span class="ruby-operator">|</span>
16
+ <span class="ruby-keyword kw">next</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">r</span>[<span class="ruby-value str">'readonly'</span>] <span class="ruby-operator">==</span> <span class="ruby-keyword kw">true</span>
17
+ <span class="ruby-identifier">msg</span> <span class="ruby-node">&quot;configure route: #{r['dst']}-#{r['gateway']}-#{r['interface_display_name'].downcase}&quot;</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
18
+ <span class="ruby-identifier">create</span> <span class="ruby-identifier">r</span>,<span class="ruby-value str">&quot;routes&quot;</span>
19
+ <span class="ruby-keyword kw">end</span>
20
+ <span class="ruby-keyword kw">end</span></pre>
21
+ </body>
22
+ </html>
@@ -0,0 +1,19 @@
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>save (Mu::Netconfig)</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/api/netconfig.rb, line 190</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">save</span>(<span class="ruby-identifier">e</span>=<span class="ruby-value str">&quot;all&quot;</span>, <span class="ruby-identifier">filepath</span>=<span class="ruby-value str">&quot;config.json&quot;</span>)
15
+ <span class="ruby-identifier">json</span> = <span class="ruby-identifier">get</span> <span class="ruby-identifier">e</span>
16
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">filepath</span>,<span class="ruby-value str">'w'</span>){<span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">write</span>(<span class="ruby-constant">JSON</span>.<span class="ruby-identifier">pretty_generate</span>(<span class="ruby-identifier">json</span>))}
17
+ <span class="ruby-keyword kw">end</span></pre>
18
+ </body>
19
+ </html>
@@ -65,9 +65,7 @@
65
65
  <tr class="top-aligned-row">
66
66
  <td><strong>Parent:</strong></td>
67
67
  <td>
68
- <a href="../Object.html">
69
68
  Object
70
- </a>
71
69
  </td>
72
70
  </tr>
73
71
  </table>
@@ -88,26 +86,26 @@
88
86
  <h3 class="section-bar">Methods</h3>
89
87
 
90
88
  <div class="name-list">
91
- <a href="#M000337">about</a>&nbsp;&nbsp;
92
- <a href="#M000331">configure</a>&nbsp;&nbsp;
93
- <a href="#M000340">data</a>&nbsp;&nbsp;
94
- <a href="#M000346">delete_scale_engine</a>&nbsp;&nbsp;
95
- <a href="#M000347">get</a>&nbsp;&nbsp;
96
- <a href="#M000336">list</a>&nbsp;&nbsp;
97
- <a href="#M000329">new</a>&nbsp;&nbsp;
98
- <a href="#M000341">pattern</a>&nbsp;&nbsp;
99
- <a href="#M000338">pcap</a>&nbsp;&nbsp;
100
- <a href="#M000348">post</a>&nbsp;&nbsp;
101
- <a href="#M000343">release</a>&nbsp;&nbsp;
102
- <a href="#M000345">release_scale_engine</a>&nbsp;&nbsp;
103
- <a href="#M000344">reserve_scale_engine</a>&nbsp;&nbsp;
104
- <a href="#M000330">session</a>&nbsp;&nbsp;
105
- <a href="#M000332">start</a>&nbsp;&nbsp;
106
- <a href="#M000335">status</a>&nbsp;&nbsp;
107
- <a href="#M000339">statuses</a>&nbsp;&nbsp;
108
- <a href="#M000342">stop</a>&nbsp;&nbsp;
109
- <a href="#M000334">update</a>&nbsp;&nbsp;
110
- <a href="#M000333">verify</a>&nbsp;&nbsp;
89
+ <a href="#M000016">about</a>&nbsp;&nbsp;
90
+ <a href="#M000008">configure</a>&nbsp;&nbsp;
91
+ <a href="#M000019">data</a>&nbsp;&nbsp;
92
+ <a href="#M000025">delete_scale_engine</a>&nbsp;&nbsp;
93
+ <a href="#M000015">list</a>&nbsp;&nbsp;
94
+ <a href="#M000006">new</a>&nbsp;&nbsp;
95
+ <a href="#M000020">pattern</a>&nbsp;&nbsp;
96
+ <a href="#M000017">pcap</a>&nbsp;&nbsp;
97
+ <a href="#M000022">release</a>&nbsp;&nbsp;
98
+ <a href="#M000024">release_scale_engine</a>&nbsp;&nbsp;
99
+ <a href="#M000023">reserve_scale_engine</a>&nbsp;&nbsp;
100
+ <a href="#M000007">session</a>&nbsp;&nbsp;
101
+ <a href="#M000009">start</a>&nbsp;&nbsp;
102
+ <a href="#M000010">start_n</a>&nbsp;&nbsp;
103
+ <a href="#M000014">status</a>&nbsp;&nbsp;
104
+ <a href="#M000018">statuses</a>&nbsp;&nbsp;
105
+ <a href="#M000021">stop</a>&nbsp;&nbsp;
106
+ <a href="#M000013">update</a>&nbsp;&nbsp;
107
+ <a href="#M000011">verify</a>&nbsp;&nbsp;
108
+ <a href="#M000012">verify_n</a>&nbsp;&nbsp;
111
109
  </div>
112
110
  </div>
113
111
 
@@ -119,7 +117,7 @@
119
117
  <h3 class="section-bar">Included Modules</h3>
120
118
 
121
119
  <div id="includes-list">
122
- <span class="include-name"><a href="Helper.html">Helper</a></span>
120
+ <span class="include-name">Helper</span>
123
121
  </div>
124
122
  </div>
125
123
 
@@ -159,6 +157,11 @@
159
157
  <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
160
158
  <td class="context-item-desc"></td>
161
159
  </tr>
160
+ <tr class="top-aligned-row context-row">
161
+ <td class="context-item-name">tracks</td>
162
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
163
+ <td class="context-item-desc"></td>
164
+ </tr>
162
165
  <tr class="top-aligned-row context-row">
163
166
  <td class="context-item-name">username</td>
164
167
  <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
@@ -179,94 +182,47 @@
179
182
  <div id="methods">
180
183
  <h3 class="section-bar">Public Class methods</h3>
181
184
 
182
- <div id="method-M000329" class="method-detail">
183
- <a name="M000329"></a>
185
+ <div id="method-M000006" class="method-detail">
186
+ <a name="M000006"></a>
184
187
 
185
188
  <div class="method-heading">
186
- <a href="#M000329" class="method-signature">
189
+ <a href="Scale.src/M000006.html" target="Code" class="method-signature"
190
+ onclick="popupCode('Scale.src/M000006.html');return false;">
187
191
  <span class="method-name">new</span><span class="method-args">(host=ENV['MU_IP'], username=ENV['MU_ADMIN_USER'], password=ENV['MU_ADMIN_PASS'])</span>
188
192
  </a>
189
193
  </div>
190
194
 
191
195
  <div class="method-description">
192
- <p><a class="source-toggle" href="#"
193
- onclick="toggleCode('M000329-source');return false;">[Source]</a></p>
194
- <div class="method-source-code" id="M000329-source">
195
- <pre>
196
- <span class="ruby-comment cmt"># File lib/mu/api/scale.rb, line 7</span>
197
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">host</span>=<span class="ruby-constant">ENV</span>[<span class="ruby-value str">'MU_IP'</span>], <span class="ruby-identifier">username</span>=<span class="ruby-constant">ENV</span>[<span class="ruby-value str">'MU_ADMIN_USER'</span>], <span class="ruby-identifier">password</span>=<span class="ruby-constant">ENV</span>[<span class="ruby-value str">'MU_ADMIN_PASS'</span>])
198
- <span class="ruby-ivar">@host</span> = <span class="ruby-identifier">host</span>
199
- <span class="ruby-ivar">@username</span> = <span class="ruby-identifier">username</span>
200
- <span class="ruby-ivar">@password</span> = <span class="ruby-identifier">password</span>
201
- <span class="ruby-ivar">@docroot</span> = <span class="ruby-value str">&quot;/api/v5/scale/&quot;</span>
202
- <span class="ruby-ivar">@uuid</span> = <span class="ruby-keyword kw">nil</span>
203
- <span class="ruby-ivar">@http</span> = <span class="ruby-constant">HttpHelper</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@host</span>, <span class="ruby-ivar">@username</span>, <span class="ruby-ivar">@password</span>, <span class="ruby-ivar">@docroot</span>)
204
- <span class="ruby-ivar">@config_file</span> = (<span class="ruby-constant">ENV</span>[<span class="ruby-value str">'SCALE_CONFIG_FILE'</span>].<span class="ruby-identifier">nil?</span>) <span class="ruby-operator">?</span> <span class="ruby-value str">&quot;scale.json&quot;</span> <span class="ruby-operator">:</span> <span class="ruby-constant">ENV</span>[<span class="ruby-value str">'SCALE_CONFIG_FILE'</span>]
205
- <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">readable?</span> <span class="ruby-ivar">@config_file</span>
206
- <span class="ruby-identifier">msg</span> <span class="ruby-node">&quot;reading config file: #{@config_file}&quot;</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
207
- <span class="ruby-ivar">@configuration</span> = <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">parse</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-ivar">@config_file</span>)
208
- <span class="ruby-keyword kw">else</span>
209
- <span class="ruby-ivar">@configuration</span> = {
210
- <span class="ruby-value str">&quot;hosts&quot;</span>=<span class="ruby-operator">&gt;</span> {
211
- <span class="ruby-value str">&quot;host_0&quot;</span>=<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;a1/*&quot;</span>,
212
- <span class="ruby-value str">&quot;host_1&quot;</span>=<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;a2/*&quot;</span>
213
- },
214
- <span class="ruby-value str">&quot;timeout&quot;</span>=<span class="ruby-operator">&gt;</span> <span class="ruby-value">5000</span>,
215
- <span class="ruby-value str">&quot;delay&quot;</span>=<span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>,
216
- <span class="ruby-value str">&quot;volume&quot;</span>=<span class="ruby-operator">&gt;</span> <span class="ruby-value">1</span>,
217
- <span class="ruby-value str">&quot;holdConcurrency&quot;</span>=<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">true</span>,
218
- <span class="ruby-value str">&quot;limitConcurrency&quot;</span>=<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>,
219
- <span class="ruby-value str">&quot;vectorAddressPairing&quot;</span>=<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>,
220
- <span class="ruby-value str">&quot;musl&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;&quot;</span>,
221
- <span class="ruby-value str">&quot;csv&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;&quot;</span>,
222
- <span class="ruby-value str">&quot;pattern&quot;</span> =<span class="ruby-operator">&gt;</span> {}
223
- }
224
- <span class="ruby-keyword kw">end</span>
225
- <span class="ruby-ivar">@uuid</span> = <span class="ruby-identifier">session</span>
226
- <span class="ruby-identifier">msg</span> <span class="ruby-node">&quot;Created Scale Api session [#{@uuid}] on :#{@host}&quot;</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
227
- <span class="ruby-keyword kw">end</span>
228
- </pre>
229
- </div>
230
196
  </div>
231
197
  </div>
232
198
 
233
199
  <h3 class="section-bar">Public Instance methods</h3>
234
200
 
235
- <div id="method-M000337" class="method-detail">
236
- <a name="M000337"></a>
201
+ <div id="method-M000016" class="method-detail">
202
+ <a name="M000016"></a>
237
203
 
238
204
  <div class="method-heading">
239
- <a href="#M000337" class="method-signature">
205
+ <a href="Scale.src/M000016.html" target="Code" class="method-signature"
206
+ onclick="popupCode('Scale.src/M000016.html');return false;">
240
207
  <span class="method-name">about</span><span class="method-args">()</span>
241
208
  </a>
242
209
  </div>
243
210
 
244
211
  <div class="method-description">
245
212
  <p>
246
- lists information <a href="Scale.html#M000337">about</a> the the <a
213
+ lists information <a href="Scale.html#M000016">about</a> the the <a
247
214
  href="Scale.html">Scale</a> Player and all active and inactive <a
248
215
  href="Scale.html">Scale</a> Engines
249
216
  </p>
250
- <p><a class="source-toggle" href="#"
251
- onclick="toggleCode('M000337-source');return false;">[Source]</a></p>
252
- <div class="method-source-code" id="M000337-source">
253
- <pre>
254
- <span class="ruby-comment cmt"># File lib/mu/api/scale.rb, line 101</span>
255
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">about</span>
256
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">get</span> <span class="ruby-value str">&quot;about&quot;</span>
257
- <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
258
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
259
- <span class="ruby-keyword kw">end</span>
260
- </pre>
261
- </div>
262
217
  </div>
263
218
  </div>
264
219
 
265
- <div id="method-M000331" class="method-detail">
266
- <a name="M000331"></a>
220
+ <div id="method-M000008" class="method-detail">
221
+ <a name="M000008"></a>
267
222
 
268
223
  <div class="method-heading">
269
- <a href="#M000331" class="method-signature">
224
+ <a href="Scale.src/M000008.html" target="Code" class="method-signature"
225
+ onclick="popupCode('Scale.src/M000008.html');return false;">
270
226
  <span class="method-name">configure</span><span class="method-args">(param, value)</span>
271
227
  </a>
272
228
  </div>
@@ -279,35 +235,22 @@ configures a parameter in the class @configuration object
279
235
  * param = the parameter to configure (e.g. volume)
280
236
  * value = the parameter's value ( e.g. 100)
281
237
  </pre>
282
- <p><a class="source-toggle" href="#"
283
- onclick="toggleCode('M000331-source');return false;">[Source]</a></p>
284
- <div class="method-source-code" id="M000331-source">
285
- <pre>
286
- <span class="ruby-comment cmt"># File lib/mu/api/scale.rb, line 56</span>
287
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">configure</span>(<span class="ruby-identifier">param</span>, <span class="ruby-identifier">value</span>)
288
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">param</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;pattern&quot;</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">String</span>)
289
- <span class="ruby-identifier">value</span> = <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">value</span>)
290
- <span class="ruby-keyword kw">end</span>
291
- <span class="ruby-ivar">@configuration</span>[<span class="ruby-identifier">param</span>] = <span class="ruby-identifier">value</span>
292
- <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-value str">&quot;scale_configuration.json&quot;</span>,<span class="ruby-value str">'w'</span>){<span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">write</span>(<span class="ruby-constant">JSON</span>.<span class="ruby-identifier">pretty_generate</span>(<span class="ruby-ivar">@configuration</span>))}
293
- <span class="ruby-keyword kw">end</span>
294
- </pre>
295
- </div>
296
238
  </div>
297
239
  </div>
298
240
 
299
- <div id="method-M000340" class="method-detail">
300
- <a name="M000340"></a>
241
+ <div id="method-M000019" class="method-detail">
242
+ <a name="M000019"></a>
301
243
 
302
244
  <div class="method-heading">
303
- <a href="#M000340" class="method-signature">
245
+ <a href="Scale.src/M000019.html" target="Code" class="method-signature"
246
+ onclick="popupCode('Scale.src/M000019.html');return false;">
304
247
  <span class="method-name">data</span><span class="method-args">(view='TIMELINE', zoom=&quot;0&quot;, position=&quot;0&quot;, bot_id=&quot;&quot;)</span>
305
248
  </a>
306
249
  </div>
307
250
 
308
251
  <div class="method-description">
309
252
  <p>
310
- gets chart <a href="Scale.html#M000340">data</a> for the <a
253
+ gets chart <a href="Scale.html#M000019">data</a> for the <a
311
254
  href="Scale.html">Scale</a> test
312
255
  </p>
313
256
  <pre>
@@ -316,26 +259,15 @@ href="Scale.html">Scale</a> test
316
259
  * position = 0.
317
260
  * bot_id = the scale engine id
318
261
  </pre>
319
- <p><a class="source-toggle" href="#"
320
- onclick="toggleCode('M000340-source');return false;">[Source]</a></p>
321
- <div class="method-source-code" id="M000340-source">
322
- <pre>
323
- <span class="ruby-comment cmt"># File lib/mu/api/scale.rb, line 128</span>
324
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">data</span>(<span class="ruby-identifier">view</span>=<span class="ruby-value str">'TIMELINE'</span>, <span class="ruby-identifier">zoom</span>=<span class="ruby-value str">&quot;0&quot;</span>, <span class="ruby-identifier">position</span>=<span class="ruby-value str">&quot;0&quot;</span>, <span class="ruby-identifier">bot_id</span>=<span class="ruby-value str">&quot;&quot;</span>)
325
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">get</span> <span class="ruby-value str">&quot;data&quot;</span>, <span class="ruby-node">&quot;view=#{view.upcase}&amp;zoom=#{zoom}&amp;position=#{position}&amp;bot_id=#{bot_id}&quot;</span>
326
- <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
327
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
328
- <span class="ruby-keyword kw">end</span>
329
- </pre>
330
- </div>
331
262
  </div>
332
263
  </div>
333
264
 
334
- <div id="method-M000346" class="method-detail">
335
- <a name="M000346"></a>
265
+ <div id="method-M000025" class="method-detail">
266
+ <a name="M000025"></a>
336
267
 
337
268
  <div class="method-heading">
338
- <a href="#M000346" class="method-signature">
269
+ <a href="Scale.src/M000025.html" target="Code" class="method-signature"
270
+ onclick="popupCode('Scale.src/M000025.html');return false;">
339
271
  <span class="method-name">delete_scale_engine</span><span class="method-args">(bot_id)</span>
340
272
  </a>
341
273
  </div>
@@ -343,31 +275,20 @@ href="Scale.html">Scale</a> test
343
275
  <div class="method-description">
344
276
  <p>
345
277
  removes a <a href="Scale.html">Scale</a> engine from the <a
346
- href="Scale.html#M000336">list</a> of available engines
278
+ href="Scale.html#M000015">list</a> of available engines
347
279
  </p>
348
280
  <pre>
349
281
  * bot_id = the scale engine id
350
282
  </pre>
351
- <p><a class="source-toggle" href="#"
352
- onclick="toggleCode('M000346-source');return false;">[Source]</a></p>
353
- <div class="method-source-code" id="M000346-source">
354
- <pre>
355
- <span class="ruby-comment cmt"># File lib/mu/api/scale.rb, line 176</span>
356
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete_scale_engine</span>(<span class="ruby-identifier">bot_id</span>)
357
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">get</span> <span class="ruby-value str">&quot;deleteScaleEngine&quot;</span>, <span class="ruby-node">&quot;botId=#{bot_id}&quot;</span>
358
- <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
359
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
360
- <span class="ruby-keyword kw">end</span>
361
- </pre>
362
- </div>
363
283
  </div>
364
284
  </div>
365
285
 
366
- <div id="method-M000336" class="method-detail">
367
- <a name="M000336"></a>
286
+ <div id="method-M000015" class="method-detail">
287
+ <a name="M000015"></a>
368
288
 
369
289
  <div class="method-heading">
370
- <a href="#M000336" class="method-signature">
290
+ <a href="Scale.src/M000015.html" target="Code" class="method-signature"
291
+ onclick="popupCode('Scale.src/M000015.html');return false;">
371
292
  <span class="method-name">list</span><span class="method-args">()</span>
372
293
  </a>
373
294
  </div>
@@ -375,61 +296,39 @@ href="Scale.html#M000336">list</a> of available engines
375
296
  <div class="method-description">
376
297
  <p>
377
298
  returns the current <a href="Scale.html">Scale</a> Player&#8216;s <a
378
- href="Scale.html#M000330">session</a> id
299
+ href="Scale.html#M000007">session</a> id
379
300
  </p>
380
- <p><a class="source-toggle" href="#"
381
- onclick="toggleCode('M000336-source');return false;">[Source]</a></p>
382
- <div class="method-source-code" id="M000336-source">
383
- <pre>
384
- <span class="ruby-comment cmt"># File lib/mu/api/scale.rb, line 94</span>
385
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">list</span>
386
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">get</span> <span class="ruby-value str">&quot;list&quot;</span>
387
- <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
388
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
389
- <span class="ruby-keyword kw">end</span>
390
- </pre>
391
- </div>
392
301
  </div>
393
302
  </div>
394
303
 
395
- <div id="method-M000341" class="method-detail">
396
- <a name="M000341"></a>
304
+ <div id="method-M000020" class="method-detail">
305
+ <a name="M000020"></a>
397
306
 
398
307
  <div class="method-heading">
399
- <a href="#M000341" class="method-signature">
308
+ <a href="Scale.src/M000020.html" target="Code" class="method-signature"
309
+ onclick="popupCode('Scale.src/M000020.html');return false;">
400
310
  <span class="method-name">pattern</span><span class="method-args">(zoom=&quot;0&quot;, position=&quot;0&quot;)</span>
401
311
  </a>
402
312
  </div>
403
313
 
404
314
  <div class="method-description">
405
315
  <p>
406
- returns scale test <a href="Scale.html#M000340">data</a> for charting
316
+ returns scale test <a href="Scale.html#M000019">data</a> for charting
407
317
  </p>
408
318
  <pre>
409
319
  * command-line args require a zoom level and position(0)
410
320
  * zoom = the zoom level (0 to 1). 1 returns data for 100% of the time range, 0.5 returns data for 50% of the time range, and 0 returns only the last minute of data
411
321
  * position = 0.
412
322
  </pre>
413
- <p><a class="source-toggle" href="#"
414
- onclick="toggleCode('M000341-source');return false;">[Source]</a></p>
415
- <div class="method-source-code" id="M000341-source">
416
- <pre>
417
- <span class="ruby-comment cmt"># File lib/mu/api/scale.rb, line 138</span>
418
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pattern</span>(<span class="ruby-identifier">zoom</span>=<span class="ruby-value str">&quot;0&quot;</span>, <span class="ruby-identifier">position</span>=<span class="ruby-value str">&quot;0&quot;</span>)
419
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">get</span> <span class="ruby-value str">&quot;pattern&quot;</span>, <span class="ruby-node">&quot;zoom=#{zoom}&amp;position=#{position}&quot;</span>
420
- <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
421
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
422
- <span class="ruby-keyword kw">end</span>
423
- </pre>
424
- </div>
425
323
  </div>
426
324
  </div>
427
325
 
428
- <div id="method-M000338" class="method-detail">
429
- <a name="M000338"></a>
326
+ <div id="method-M000017" class="method-detail">
327
+ <a name="M000017"></a>
430
328
 
431
329
  <div class="method-heading">
432
- <a href="#M000338" class="method-signature">
330
+ <a href="Scale.src/M000017.html" target="Code" class="method-signature"
331
+ onclick="popupCode('Scale.src/M000017.html');return false;">
433
332
  <span class="method-name">pcap</span><span class="method-args">(bot_id, file)</span>
434
333
  </a>
435
334
  </div>
@@ -437,32 +336,21 @@ returns scale test <a href="Scale.html#M000340">data</a> for charting
437
336
  <div class="method-description">
438
337
  <p>
439
338
  returns a packet capture file from scale <a
440
- href="Scale.html#M000333">verify</a>
339
+ href="Scale.html#M000011">verify</a>
441
340
  </p>
442
341
  <pre>
443
342
  * bot_id = the id of the scale engine
444
343
  * file = the name of the pcap file to retrieve
445
344
  </pre>
446
- <p><a class="source-toggle" href="#"
447
- onclick="toggleCode('M000338-source');return false;">[Source]</a></p>
448
- <div class="method-source-code" id="M000338-source">
449
- <pre>
450
- <span class="ruby-comment cmt"># File lib/mu/api/scale.rb, line 110</span>
451
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pcap</span>(<span class="ruby-identifier">bot_id</span>, <span class="ruby-identifier">file</span>)
452
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">get</span> <span class="ruby-value str">&quot;pcap&quot;</span>, <span class="ruby-node">&quot;botId=#{bot_id}&amp;file=#{file}&quot;</span>
453
- <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
454
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
455
- <span class="ruby-keyword kw">end</span>
456
- </pre>
457
- </div>
458
345
  </div>
459
346
  </div>
460
347
 
461
- <div id="method-M000343" class="method-detail">
462
- <a name="M000343"></a>
348
+ <div id="method-M000022" class="method-detail">
349
+ <a name="M000022"></a>
463
350
 
464
351
  <div class="method-heading">
465
- <a href="#M000343" class="method-signature">
352
+ <a href="Scale.src/M000022.html" target="Code" class="method-signature"
353
+ onclick="popupCode('Scale.src/M000022.html');return false;">
466
354
  <span class="method-name">release</span><span class="method-args">()</span>
467
355
  </a>
468
356
  </div>
@@ -471,26 +359,15 @@ href="Scale.html#M000333">verify</a>
471
359
  <p>
472
360
  releases the scale player
473
361
  </p>
474
- <p><a class="source-toggle" href="#"
475
- onclick="toggleCode('M000343-source');return false;">[Source]</a></p>
476
- <div class="method-source-code" id="M000343-source">
477
- <pre>
478
- <span class="ruby-comment cmt"># File lib/mu/api/scale.rb, line 152</span>
479
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">release</span>
480
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">get</span> <span class="ruby-value str">&quot;release&quot;</span>
481
- <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
482
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
483
- <span class="ruby-keyword kw">end</span>
484
- </pre>
485
- </div>
486
362
  </div>
487
363
  </div>
488
364
 
489
- <div id="method-M000345" class="method-detail">
490
- <a name="M000345"></a>
365
+ <div id="method-M000024" class="method-detail">
366
+ <a name="M000024"></a>
491
367
 
492
368
  <div class="method-heading">
493
- <a href="#M000345" class="method-signature">
369
+ <a href="Scale.src/M000024.html" target="Code" class="method-signature"
370
+ onclick="popupCode('Scale.src/M000024.html');return false;">
494
371
  <span class="method-name">release_scale_engine</span><span class="method-args">(bot_id)</span>
495
372
  </a>
496
373
  </div>
@@ -503,26 +380,15 @@ not participate in a <a href="Scale.html">Scale</a> test)
503
380
  <pre>
504
381
  * bot_id = the scale engine id
505
382
  </pre>
506
- <p><a class="source-toggle" href="#"
507
- onclick="toggleCode('M000345-source');return false;">[Source]</a></p>
508
- <div class="method-source-code" id="M000345-source">
509
- <pre>
510
- <span class="ruby-comment cmt"># File lib/mu/api/scale.rb, line 168</span>
511
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">release_scale_engine</span>(<span class="ruby-identifier">bot_id</span>)
512
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">get</span> <span class="ruby-value str">&quot;releaseScaleEngine&quot;</span>, <span class="ruby-node">&quot;botId=#{bot_id}&quot;</span>
513
- <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
514
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
515
- <span class="ruby-keyword kw">end</span>
516
- </pre>
517
- </div>
518
383
  </div>
519
384
  </div>
520
385
 
521
- <div id="method-M000344" class="method-detail">
522
- <a name="M000344"></a>
386
+ <div id="method-M000023" class="method-detail">
387
+ <a name="M000023"></a>
523
388
 
524
389
  <div class="method-heading">
525
- <a href="#M000344" class="method-signature">
390
+ <a href="Scale.src/M000023.html" target="Code" class="method-signature"
391
+ onclick="popupCode('Scale.src/M000023.html');return false;">
526
392
  <span class="method-name">reserve_scale_engine</span><span class="method-args">(bot_id)</span>
527
393
  </a>
528
394
  </div>
@@ -535,63 +401,34 @@ participate in a <a href="Scale.html">Scale</a> test
535
401
  <pre>
536
402
  * bot_id = the scale engine id
537
403
  </pre>
538
- <p><a class="source-toggle" href="#"
539
- onclick="toggleCode('M000344-source');return false;">[Source]</a></p>
540
- <div class="method-source-code" id="M000344-source">
541
- <pre>
542
- <span class="ruby-comment cmt"># File lib/mu/api/scale.rb, line 160</span>
543
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reserve_scale_engine</span>(<span class="ruby-identifier">bot_id</span>)
544
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">get</span> <span class="ruby-value str">&quot;reserveScaleEngine&quot;</span>, <span class="ruby-node">&quot;botId=#{bot_id}&quot;</span>
545
- <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
546
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
547
- <span class="ruby-keyword kw">end</span>
548
- </pre>
549
- </div>
550
404
  </div>
551
405
  </div>
552
406
 
553
- <div id="method-M000330" class="method-detail">
554
- <a name="M000330"></a>
407
+ <div id="method-M000007" class="method-detail">
408
+ <a name="M000007"></a>
555
409
 
556
410
  <div class="method-heading">
557
- <a href="#M000330" class="method-signature">
411
+ <a href="Scale.src/M000007.html" target="Code" class="method-signature"
412
+ onclick="popupCode('Scale.src/M000007.html');return false;">
558
413
  <span class="method-name">session</span><span class="method-args">()</span>
559
414
  </a>
560
415
  </div>
561
416
 
562
417
  <div class="method-description">
563
418
  <p>
564
- creates a <a href="Scale.html#M000329">new</a> Studio <a
565
- href="Scale.html">Scale</a> <a href="Scale.html#M000330">session</a>,
566
- returning the <a href="Scale.html#M000330">session</a> id
419
+ creates a <a href="Scale.html#M000006">new</a> Studio <a
420
+ href="Scale.html">Scale</a> <a href="Scale.html#M000007">session</a>,
421
+ returning the <a href="Scale.html#M000007">session</a> id
567
422
  </p>
568
- <p><a class="source-toggle" href="#"
569
- onclick="toggleCode('M000330-source');return false;">[Source]</a></p>
570
- <div class="method-source-code" id="M000330-source">
571
- <pre>
572
- <span class="ruby-comment cmt"># File lib/mu/api/scale.rb, line 40</span>
573
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">session</span>
574
- <span class="ruby-identifier">uuid</span> = <span class="ruby-keyword kw">nil</span>
575
- <span class="ruby-identifier">list</span> = <span class="ruby-identifier">get</span>(<span class="ruby-value str">&quot;list&quot;</span>)
576
- <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">list</span>.<span class="ruby-identifier">empty?</span>
577
- <span class="ruby-identifier">msg</span> <span class="ruby-identifier">list</span>
578
- <span class="ruby-identifier">uuid</span> = <span class="ruby-identifier">list</span>[<span class="ruby-value">0</span>] <span class="ruby-comment cmt"># return existing session identifier if there is one</span>
579
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">uuid</span>
580
- <span class="ruby-keyword kw">end</span>
581
- <span class="ruby-identifier">uuid</span> = <span class="ruby-identifier">get</span> <span class="ruby-value str">&quot;new&quot;</span> <span class="ruby-comment cmt"># return a new session identifier</span>
582
- <span class="ruby-identifier">msg</span> <span class="ruby-node">&quot;uuid from /new = #{uuid}&quot;</span>
583
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">uuid</span>
584
- <span class="ruby-keyword kw">end</span>
585
- </pre>
586
- </div>
587
423
  </div>
588
424
  </div>
589
425
 
590
- <div id="method-M000332" class="method-detail">
591
- <a name="M000332"></a>
426
+ <div id="method-M000009" class="method-detail">
427
+ <a name="M000009"></a>
592
428
 
593
429
  <div class="method-heading">
594
- <a href="#M000332" class="method-signature">
430
+ <a href="Scale.src/M000009.html" target="Code" class="method-signature"
431
+ onclick="popupCode('Scale.src/M000009.html');return false;">
595
432
  <span class="method-name">start</span><span class="method-args">()</span>
596
433
  </a>
597
434
  </div>
@@ -600,84 +437,68 @@ returning the <a href="Scale.html#M000330">session</a> id
600
437
  <p>
601
438
  starts a scale test with the class @configuration object
602
439
  </p>
603
- <p><a class="source-toggle" href="#"
604
- onclick="toggleCode('M000332-source');return false;">[Source]</a></p>
605
- <div class="method-source-code" id="M000332-source">
606
- <pre>
607
- <span class="ruby-comment cmt"># File lib/mu/api/scale.rb, line 65</span>
608
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">start</span>
609
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">post</span> <span class="ruby-value str">&quot;start&quot;</span>, {<span class="ruby-value str">&quot;request&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-ivar">@configuration</span>}
610
- <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
611
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
612
- <span class="ruby-keyword kw">end</span>
613
- </pre>
614
- </div>
615
440
  </div>
616
441
  </div>
617
442
 
618
- <div id="method-M000335" class="method-detail">
619
- <a name="M000335"></a>
443
+ <div id="method-M000010" class="method-detail">
444
+ <a name="M000010"></a>
620
445
 
621
446
  <div class="method-heading">
622
- <a href="#M000335" class="method-signature">
447
+ <a href="Scale.src/M000010.html" target="Code" class="method-signature"
448
+ onclick="popupCode('Scale.src/M000010.html');return false;">
449
+ <span class="method-name">start_n</span><span class="method-args">()</span>
450
+ </a>
451
+ </div>
452
+
453
+ <div class="method-description">
454
+ <p>
455
+ starts a multi-track scale test with the class @tracks object
456
+ </p>
457
+ </div>
458
+ </div>
459
+
460
+ <div id="method-M000014" class="method-detail">
461
+ <a name="M000014"></a>
462
+
463
+ <div class="method-heading">
464
+ <a href="Scale.src/M000014.html" target="Code" class="method-signature"
465
+ onclick="popupCode('Scale.src/M000014.html');return false;">
623
466
  <span class="method-name">status</span><span class="method-args">()</span>
624
467
  </a>
625
468
  </div>
626
469
 
627
470
  <div class="method-description">
628
471
  <p>
629
- gets information <a href="Scale.html#M000337">about</a> the currently
472
+ gets information <a href="Scale.html#M000016">about</a> the currently
630
473
  running <a href="Scale.html">Scale</a> test.
631
474
  </p>
632
- <p><a class="source-toggle" href="#"
633
- onclick="toggleCode('M000335-source');return false;">[Source]</a></p>
634
- <div class="method-source-code" id="M000335-source">
635
- <pre>
636
- <span class="ruby-comment cmt"># File lib/mu/api/scale.rb, line 87</span>
637
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">status</span>
638
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">get</span> <span class="ruby-value str">&quot;status&quot;</span>
639
- <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
640
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
641
- <span class="ruby-keyword kw">end</span>
642
- </pre>
643
- </div>
644
475
  </div>
645
476
  </div>
646
477
 
647
- <div id="method-M000339" class="method-detail">
648
- <a name="M000339"></a>
478
+ <div id="method-M000018" class="method-detail">
479
+ <a name="M000018"></a>
649
480
 
650
481
  <div class="method-heading">
651
- <a href="#M000339" class="method-signature">
482
+ <a href="Scale.src/M000018.html" target="Code" class="method-signature"
483
+ onclick="popupCode('Scale.src/M000018.html');return false;">
652
484
  <span class="method-name">statuses</span><span class="method-args">()</span>
653
485
  </a>
654
486
  </div>
655
487
 
656
488
  <div class="method-description">
657
489
  <p>
658
- gets the <a href="Scale.html#M000335">status</a> of all active and inactive
490
+ gets the <a href="Scale.html#M000014">status</a> of all active and inactive
659
491
  <a href="Scale.html">Scale</a> engines
660
492
  </p>
661
- <p><a class="source-toggle" href="#"
662
- onclick="toggleCode('M000339-source');return false;">[Source]</a></p>
663
- <div class="method-source-code" id="M000339-source">
664
- <pre>
665
- <span class="ruby-comment cmt"># File lib/mu/api/scale.rb, line 117</span>
666
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">statuses</span>
667
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">get</span> <span class="ruby-value str">&quot;statuses&quot;</span>
668
- <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
669
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
670
- <span class="ruby-keyword kw">end</span>
671
- </pre>
672
- </div>
673
493
  </div>
674
494
  </div>
675
495
 
676
- <div id="method-M000342" class="method-detail">
677
- <a name="M000342"></a>
496
+ <div id="method-M000021" class="method-detail">
497
+ <a name="M000021"></a>
678
498
 
679
499
  <div class="method-heading">
680
- <a href="#M000342" class="method-signature">
500
+ <a href="Scale.src/M000021.html" target="Code" class="method-signature"
501
+ onclick="popupCode('Scale.src/M000021.html');return false;">
681
502
  <span class="method-name">stop</span><span class="method-args">()</span>
682
503
  </a>
683
504
  </div>
@@ -686,26 +507,15 @@ gets the <a href="Scale.html#M000335">status</a> of all active and inactive
686
507
  <p>
687
508
  stops a scale test
688
509
  </p>
689
- <p><a class="source-toggle" href="#"
690
- onclick="toggleCode('M000342-source');return false;">[Source]</a></p>
691
- <div class="method-source-code" id="M000342-source">
692
- <pre>
693
- <span class="ruby-comment cmt"># File lib/mu/api/scale.rb, line 145</span>
694
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stop</span>
695
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">get</span> <span class="ruby-value str">&quot;stop&quot;</span>
696
- <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
697
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
698
- <span class="ruby-keyword kw">end</span>
699
- </pre>
700
- </div>
701
510
  </div>
702
511
  </div>
703
512
 
704
- <div id="method-M000334" class="method-detail">
705
- <a name="M000334"></a>
513
+ <div id="method-M000013" class="method-detail">
514
+ <a name="M000013"></a>
706
515
 
707
516
  <div class="method-heading">
708
- <a href="#M000334" class="method-signature">
517
+ <a href="Scale.src/M000013.html" target="Code" class="method-signature"
518
+ onclick="popupCode('Scale.src/M000013.html');return false;">
709
519
  <span class="method-name">update</span><span class="method-args">(params)</span>
710
520
  </a>
711
521
  </div>
@@ -713,31 +523,20 @@ stops a scale test
713
523
  <div class="method-description">
714
524
  <p>
715
525
  updates a running scale test, as long as the test <a
716
- href="Scale.html#M000341">pattern</a> is &#8216;none&#8216;
526
+ href="Scale.html#M000020">pattern</a> is &#8216;none&#8216;
717
527
  </p>
718
528
  <pre>
719
529
  * params = a json object containing the information to update, such as { &quot;volume&quot; : 100 }
720
530
  </pre>
721
- <p><a class="source-toggle" href="#"
722
- onclick="toggleCode('M000334-source');return false;">[Source]</a></p>
723
- <div class="method-source-code" id="M000334-source">
724
- <pre>
725
- <span class="ruby-comment cmt"># File lib/mu/api/scale.rb, line 80</span>
726
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update</span>(<span class="ruby-identifier">params</span>)
727
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">get</span> <span class="ruby-value str">&quot;update&quot;</span>, <span class="ruby-identifier">params</span>
728
- <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
729
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
730
- <span class="ruby-keyword kw">end</span>
731
- </pre>
732
- </div>
733
531
  </div>
734
532
  </div>
735
533
 
736
- <div id="method-M000333" class="method-detail">
737
- <a name="M000333"></a>
534
+ <div id="method-M000011" class="method-detail">
535
+ <a name="M000011"></a>
738
536
 
739
537
  <div class="method-heading">
740
- <a href="#M000333" class="method-signature">
538
+ <a href="Scale.src/M000011.html" target="Code" class="method-signature"
539
+ onclick="popupCode('Scale.src/M000011.html');return false;">
741
540
  <span class="method-name">verify</span><span class="method-args">()</span>
742
541
  </a>
743
542
  </div>
@@ -746,74 +545,23 @@ href="Scale.html#M000341">pattern</a> is &#8216;none&#8216;
746
545
  <p>
747
546
  verifies the class @configuration object
748
547
  </p>
749
- <p><a class="source-toggle" href="#"
750
- onclick="toggleCode('M000333-source');return false;">[Source]</a></p>
751
- <div class="method-source-code" id="M000333-source">
752
- <pre>
753
- <span class="ruby-comment cmt"># File lib/mu/api/scale.rb, line 72</span>
754
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">verify</span>
755
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">post</span> <span class="ruby-value str">&quot;verify&quot;</span>, {<span class="ruby-value str">&quot;request&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-ivar">@configuration</span>}
756
- <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
757
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
758
- <span class="ruby-keyword kw">end</span>
759
- </pre>
760
- </div>
761
- </div>
762
- </div>
763
-
764
- <h3 class="section-bar">Private Instance methods</h3>
765
-
766
- <div id="method-M000347" class="method-detail">
767
- <a name="M000347"></a>
768
-
769
- <div class="method-heading">
770
- <a href="#M000347" class="method-signature">
771
- <span class="method-name">get</span><span class="method-args">(e=@element, params=nil)</span>
772
- </a>
773
- </div>
774
-
775
- <div class="method-description">
776
- <p><a class="source-toggle" href="#"
777
- onclick="toggleCode('M000347-source');return false;">[Source]</a></p>
778
- <div class="method-source-code" id="M000347-source">
779
- <pre>
780
- <span class="ruby-comment cmt"># File lib/mu/api/scale.rb, line 184</span>
781
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get</span>(<span class="ruby-identifier">e</span>=<span class="ruby-ivar">@element</span>, <span class="ruby-identifier">params</span>=<span class="ruby-keyword kw">nil</span>)
782
- <span class="ruby-identifier">element</span> = <span class="ruby-identifier">e</span>
783
- <span class="ruby-identifier">element</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;?uuid=#{@uuid}&quot;</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@uuid</span>.<span class="ruby-identifier">nil?</span>
784
- <span class="ruby-identifier">element</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;&amp;#{params}&quot;</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">params</span>.<span class="ruby-identifier">nil?</span>
785
- <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get_json</span>(<span class="ruby-identifier">element</span>)
786
- <span class="ruby-keyword kw">end</span>
787
- </pre>
788
- </div>
789
548
  </div>
790
549
  </div>
791
550
 
792
- <div id="method-M000348" class="method-detail">
793
- <a name="M000348"></a>
551
+ <div id="method-M000012" class="method-detail">
552
+ <a name="M000012"></a>
794
553
 
795
554
  <div class="method-heading">
796
- <a href="#M000348" class="method-signature">
797
- <span class="method-name">post</span><span class="method-args">(e, json='{}')</span>
555
+ <a href="Scale.src/M000012.html" target="Code" class="method-signature"
556
+ onclick="popupCode('Scale.src/M000012.html');return false;">
557
+ <span class="method-name">verify_n</span><span class="method-args">()</span>
798
558
  </a>
799
559
  </div>
800
560
 
801
561
  <div class="method-description">
802
562
  <p>
803
- POST method
563
+ verifies the multi-track class @tracks object
804
564
  </p>
805
- <p><a class="source-toggle" href="#"
806
- onclick="toggleCode('M000348-source');return false;">[Source]</a></p>
807
- <div class="method-source-code" id="M000348-source">
808
- <pre>
809
- <span class="ruby-comment cmt"># File lib/mu/api/scale.rb, line 192</span>
810
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">post</span>(<span class="ruby-identifier">e</span>, <span class="ruby-identifier">json</span>=<span class="ruby-value str">'{}'</span>)
811
- <span class="ruby-identifier">element</span> = <span class="ruby-identifier">e</span>
812
- <span class="ruby-identifier">element</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;?uuid=#{@uuid}&quot;</span>
813
- <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">post_json</span>(<span class="ruby-identifier">element</span>, <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">generate</span>(<span class="ruby-identifier">json</span>))
814
- <span class="ruby-keyword kw">end</span>
815
- </pre>
816
- </div>
817
565
  </div>
818
566
  </div>
819
567