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.
- data/lib/mu.rb +1 -1
- data/lib/mu/api/netconfig.rb +5 -3
- data/lib/mu/api/scale.rb +16 -1
- data/lib/mu/command/cmd_netconfig.rb +1 -1
- data/lib/mu/command/cmd_runscale.rb +2 -2
- data/rdoc/classes/Mu.html +24 -142
- data/rdoc/classes/Mu.src/M000001.html +39 -0
- data/rdoc/classes/Mu.src/M000002.html +29 -0
- data/rdoc/classes/Mu.src/M000053.html +39 -0
- data/rdoc/classes/Mu.src/M000054.html +29 -0
- data/rdoc/classes/Mu/Client.html +26 -77
- data/rdoc/classes/Mu/Client.src/M000212.html +24 -0
- data/rdoc/classes/Mu/Client.src/M000213.html +18 -0
- data/rdoc/classes/Mu/Client.src/M000214.html +18 -0
- data/rdoc/classes/Mu/Client.src/M000215.html +18 -0
- data/rdoc/classes/Mu/Client.src/M000216.html +18 -0
- data/rdoc/classes/Mu/Command.html +1 -92
- data/rdoc/classes/Mu/Command/API.html +75 -237
- data/rdoc/classes/Mu/Command/API.src/M000130.html +22 -0
- data/rdoc/classes/Mu/Command/API.src/M000131.html +19 -0
- data/rdoc/classes/Mu/Command/API.src/M000132.html +19 -0
- data/rdoc/classes/Mu/Command/API.src/M000133.html +19 -0
- data/rdoc/classes/Mu/Command/API.src/M000134.html +18 -0
- data/rdoc/classes/Mu/Command/API.src/M000135.html +17 -0
- data/rdoc/classes/Mu/Command/API.src/M000136.html +23 -0
- data/rdoc/classes/Mu/Command/API.src/M000137.html +18 -0
- data/rdoc/classes/Mu/Command/API.src/M000138.html +29 -0
- data/rdoc/classes/Mu/Command/API.src/M000139.html +18 -0
- data/rdoc/classes/Mu/Command/API.src/M000140.html +22 -0
- data/rdoc/classes/Mu/Command/API.src/M000141.html +19 -0
- data/rdoc/classes/Mu/Command/API.src/M000142.html +18 -0
- data/rdoc/classes/Mu/Command/API.src/M000143.html +18 -0
- data/rdoc/classes/Mu/Command/API.src/M000144.html +17 -0
- data/rdoc/classes/Mu/Command/Cmd_appid.html +22 -718
- data/rdoc/classes/Mu/Command/Cmd_appid.src/M000145.html +18 -0
- data/rdoc/classes/Mu/Command/Cmd_appid.src/M000146.html +30 -0
- data/rdoc/classes/Mu/Command/Cmd_appid.src/M000147.html +39 -0
- data/rdoc/classes/Mu/Command/Cmd_appid.src/M000148.html +50 -0
- data/rdoc/classes/Mu/Command/Cmd_cli.html +32 -274
- data/rdoc/classes/Mu/Command/Cmd_cli.src/M000200.html +18 -0
- data/rdoc/classes/Mu/Command/Cmd_cli.src/M000201.html +19 -0
- data/rdoc/classes/Mu/Command/Cmd_cli.src/M000202.html +19 -0
- data/rdoc/classes/Mu/Command/Cmd_cli.src/M000203.html +19 -0
- data/rdoc/classes/Mu/Command/Cmd_cli.src/M000204.html +20 -0
- data/rdoc/classes/Mu/Command/Cmd_cli.src/M000205.html +20 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.html +126 -656
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000101.html +18 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000102.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000103.html +22 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000104.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000105.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000106.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000107.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000108.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000109.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000110.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000111.html +22 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000112.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000113.html +43 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000114.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000115.html +38 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000116.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000117.html +38 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000118.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000119.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000120.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000121.html +24 -0
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000122.html +24 -0
- data/rdoc/classes/Mu/Command/Cmd_homepage.html +31 -244
- data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000206.html +18 -0
- data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000207.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000208.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000209.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000210.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000211.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_muapi.html +86 -527
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000164.html +18 -0
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000165.html +27 -0
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000166.html +22 -0
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000167.html +27 -0
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000168.html +22 -0
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000169.html +22 -0
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000170.html +22 -0
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000171.html +22 -0
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000172.html +28 -0
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000173.html +22 -0
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000174.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000175.html +28 -0
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000176.html +23 -0
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000177.html +22 -0
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000178.html +23 -0
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000179.html +23 -0
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000180.html +24 -0
- data/rdoc/classes/Mu/Command/Cmd_netconfig.html +61 -405
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000152.html +18 -0
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000153.html +22 -0
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000154.html +23 -0
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000155.html +23 -0
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000156.html +22 -0
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000157.html +23 -0
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000158.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000159.html +22 -0
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000160.html +22 -0
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000161.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000162.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000163.html +23 -0
- data/rdoc/classes/Mu/Command/Cmd_runscale.html +17 -766
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000003.html +18 -0
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000004.html +51 -0
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000005.html +50 -0
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000149.html +18 -0
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000150.html +51 -0
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000151.html +50 -0
- data/rdoc/classes/Mu/Command/Cmd_runscenario.html +11 -344
- data/rdoc/classes/Mu/Command/Cmd_runscenario.src/M000128.html +18 -0
- data/rdoc/classes/Mu/Command/Cmd_runscenario.src/M000129.html +144 -0
- data/rdoc/classes/Mu/Command/Cmd_runverify.html +11 -436
- data/rdoc/classes/Mu/Command/Cmd_runverify.src/M000198.html +18 -0
- data/rdoc/classes/Mu/Command/Cmd_runverify.src/M000199.html +200 -0
- data/rdoc/classes/Mu/Command/Cmd_scale.html +86 -514
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000181.html +18 -0
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000182.html +23 -0
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000183.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000184.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000185.html +22 -0
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000186.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000187.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000188.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000189.html +23 -0
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000190.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000191.html +29 -0
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000192.html +27 -0
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000193.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000194.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000195.html +22 -0
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000196.html +22 -0
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000197.html +22 -0
- data/rdoc/classes/Mu/Command/Cmd_system.html +21 -211
- data/rdoc/classes/Mu/Command/Cmd_system.src/M000097.html +18 -0
- data/rdoc/classes/Mu/Command/Cmd_system.src/M000098.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_system.src/M000099.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_system.src/M000100.html +21 -0
- data/rdoc/classes/Mu/Command/Curl.html +19 -361
- data/rdoc/classes/Mu/Command/Curl.src/M000124.html +18 -0
- data/rdoc/classes/Mu/Command/Curl.src/M000125.html +21 -0
- data/rdoc/classes/Mu/Command/Curl.src/M000126.html +26 -0
- data/rdoc/classes/Mu/Command/Help.html +5 -34
- data/rdoc/classes/Mu/Command/Help.src/M000123.html +38 -0
- data/rdoc/classes/Mu/Curl/Error.html +5 -14
- data/rdoc/classes/Mu/Curl/Error.src/M000063.html +18 -0
- data/rdoc/classes/Mu/Curl/Error/Authorize.html +5 -18
- data/rdoc/classes/Mu/Curl/Error/Authorize.src/M000065.html +22 -0
- data/rdoc/classes/Mu/Curl/Error/Connect.html +5 -15
- data/rdoc/classes/Mu/Curl/Error/Connect.src/M000068.html +19 -0
- data/rdoc/classes/Mu/Curl/Error/Region.html +5 -15
- data/rdoc/classes/Mu/Curl/Error/Region.src/M000066.html +19 -0
- data/rdoc/classes/Mu/Curl/Error/Status.html +5 -15
- data/rdoc/classes/Mu/Curl/Error/Status.src/M000064.html +19 -0
- data/rdoc/classes/Mu/Curl/Error/Timeout.html +5 -15
- data/rdoc/classes/Mu/Curl/Error/Timeout.src/M000067.html +19 -0
- data/rdoc/classes/Mu/Curl/Verify.html +20 -95
- data/rdoc/classes/Mu/Curl/Verify.src/M000055.html +29 -0
- data/rdoc/classes/Mu/Curl/Verify.src/M000056.html +18 -0
- data/rdoc/classes/Mu/Curl/Verify.src/M000057.html +46 -0
- data/rdoc/classes/Mu/Curl/Verify.src/M000058.html +18 -0
- data/rdoc/classes/Mu/Curl/Verify/Request.html +10 -50
- data/rdoc/classes/Mu/Curl/Verify/Request.src/M000061.html +35 -0
- data/rdoc/classes/Mu/Curl/Verify/Request.src/M000062.html +23 -0
- data/rdoc/classes/Mu/Curl/Verify/Response.html +5 -20
- data/rdoc/classes/Mu/Curl/Verify/Response.src/M000059.html +24 -0
- data/rdoc/classes/Mu/Curl/Verify/Result.html +5 -21
- data/rdoc/classes/Mu/Curl/Verify/Result.src/M000060.html +25 -0
- data/rdoc/classes/Mu/Ddt.html +132 -436
- data/rdoc/classes/Mu/Ddt.src/M000242.html +24 -0
- data/rdoc/classes/Mu/Ddt.src/M000243.html +20 -0
- data/rdoc/classes/Mu/Ddt.src/M000244.html +20 -0
- data/rdoc/classes/Mu/Ddt.src/M000245.html +23 -0
- data/rdoc/classes/Mu/Ddt.src/M000246.html +20 -0
- data/rdoc/classes/Mu/Ddt.src/M000247.html +32 -0
- data/rdoc/classes/Mu/Ddt.src/M000248.html +20 -0
- data/rdoc/classes/Mu/Ddt.src/M000249.html +20 -0
- data/rdoc/classes/Mu/Ddt.src/M000250.html +20 -0
- data/rdoc/classes/Mu/Ddt.src/M000251.html +20 -0
- data/rdoc/classes/Mu/Ddt.src/M000252.html +20 -0
- data/rdoc/classes/Mu/Ddt.src/M000253.html +20 -0
- data/rdoc/classes/Mu/Ddt.src/M000254.html +25 -0
- data/rdoc/classes/Mu/Ddt.src/M000255.html +20 -0
- data/rdoc/classes/Mu/Ddt.src/M000256.html +24 -0
- data/rdoc/classes/Mu/Ddt.src/M000257.html +20 -0
- data/rdoc/classes/Mu/Ddt.src/M000258.html +24 -0
- data/rdoc/classes/Mu/Ddt.src/M000259.html +20 -0
- data/rdoc/classes/Mu/Ddt.src/M000260.html +35 -0
- data/rdoc/classes/Mu/Ddt.src/M000261.html +20 -0
- data/rdoc/classes/Mu/Ddt.src/M000262.html +20 -0
- data/rdoc/classes/Mu/Ddt.src/M000263.html +20 -0
- data/rdoc/classes/Mu/Ddt.src/M000264.html +22 -0
- data/rdoc/classes/Mu/Homepage.html +34 -105
- data/rdoc/classes/Mu/Homepage.src/M000236.html +25 -0
- data/rdoc/classes/Mu/Homepage.src/M000237.html +20 -0
- data/rdoc/classes/Mu/Homepage.src/M000238.html +20 -0
- data/rdoc/classes/Mu/Homepage.src/M000239.html +20 -0
- data/rdoc/classes/Mu/Homepage.src/M000240.html +20 -0
- data/rdoc/classes/Mu/Homepage.src/M000241.html +20 -0
- data/rdoc/classes/Mu/HttpHelper.html +68 -314
- data/rdoc/classes/Mu/HttpHelper.src/M000069.html +22 -0
- data/rdoc/classes/Mu/HttpHelper.src/M000070.html +25 -0
- data/rdoc/classes/Mu/HttpHelper.src/M000071.html +34 -0
- data/rdoc/classes/Mu/HttpHelper.src/M000072.html +39 -0
- data/rdoc/classes/Mu/HttpHelper.src/M000073.html +36 -0
- data/rdoc/classes/Mu/HttpHelper.src/M000074.html +34 -0
- data/rdoc/classes/Mu/HttpHelper.src/M000075.html +46 -0
- data/rdoc/classes/Mu/HttpHelper.src/M000076.html +24 -0
- data/rdoc/classes/Mu/HttpHelper.src/M000077.html +19 -0
- data/rdoc/classes/Mu/HttpHelper.src/M000078.html +33 -0
- data/rdoc/classes/Mu/HttpHelper.src/M000079.html +29 -0
- data/rdoc/classes/Mu/Muapi.html +92 -359
- data/rdoc/classes/Mu/Muapi.src/M000080.html +25 -0
- data/rdoc/classes/Mu/Muapi.src/M000081.html +27 -0
- data/rdoc/classes/Mu/Muapi.src/M000082.html +24 -0
- data/rdoc/classes/Mu/Muapi.src/M000083.html +27 -0
- data/rdoc/classes/Mu/Muapi.src/M000084.html +23 -0
- data/rdoc/classes/Mu/Muapi.src/M000085.html +23 -0
- data/rdoc/classes/Mu/Muapi.src/M000086.html +23 -0
- data/rdoc/classes/Mu/Muapi.src/M000087.html +23 -0
- data/rdoc/classes/Mu/Muapi.src/M000088.html +23 -0
- data/rdoc/classes/Mu/Muapi.src/M000089.html +22 -0
- data/rdoc/classes/Mu/Muapi.src/M000090.html +21 -0
- data/rdoc/classes/Mu/Muapi.src/M000091.html +19 -0
- data/rdoc/classes/Mu/Muapi.src/M000092.html +18 -0
- data/rdoc/classes/Mu/Muapi.src/M000093.html +18 -0
- data/rdoc/classes/Mu/Muapi.src/M000094.html +36 -0
- data/rdoc/classes/Mu/Muapi.src/M000095.html +34 -0
- data/rdoc/classes/Mu/Muapi.src/M000096.html +34 -0
- data/rdoc/classes/Mu/Netconfig.html +79 -382
- data/rdoc/classes/Mu/Netconfig.src/M000217.html +25 -0
- data/rdoc/classes/Mu/Netconfig.src/M000218.html +20 -0
- data/rdoc/classes/Mu/Netconfig.src/M000219.html +21 -0
- data/rdoc/classes/Mu/Netconfig.src/M000220.html +24 -0
- data/rdoc/classes/Mu/Netconfig.src/M000221.html +20 -0
- data/rdoc/classes/Mu/Netconfig.src/M000222.html +36 -0
- data/rdoc/classes/Mu/Netconfig.src/M000223.html +22 -0
- data/rdoc/classes/Mu/Netconfig.src/M000224.html +22 -0
- data/rdoc/classes/Mu/Netconfig.src/M000225.html +37 -0
- data/rdoc/classes/Mu/Netconfig.src/M000226.html +21 -0
- data/rdoc/classes/Mu/Netconfig.src/M000227.html +23 -0
- data/rdoc/classes/Mu/Netconfig.src/M000228.html +26 -0
- data/rdoc/classes/Mu/Netconfig.src/M000229.html +23 -0
- data/rdoc/classes/Mu/Netconfig.src/M000230.html +22 -0
- data/rdoc/classes/Mu/Netconfig.src/M000231.html +19 -0
- data/rdoc/classes/Mu/Scale.html +133 -385
- data/rdoc/classes/Mu/Scale.src/M000006.html +47 -0
- data/rdoc/classes/Mu/Scale.src/M000007.html +27 -0
- data/rdoc/classes/Mu/Scale.src/M000008.html +22 -0
- data/rdoc/classes/Mu/Scale.src/M000009.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000010.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000011.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000012.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000013.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000014.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000015.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000016.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000017.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000018.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000019.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000020.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000021.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000022.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000023.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000024.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000025.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000265.html +46 -0
- data/rdoc/classes/Mu/Scale.src/M000266.html +27 -0
- data/rdoc/classes/Mu/Scale.src/M000267.html +22 -0
- data/rdoc/classes/Mu/Scale.src/M000268.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000269.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000270.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000271.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000272.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000273.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000274.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000275.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000276.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000277.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000278.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000279.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000280.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000281.html +20 -0
- data/rdoc/classes/Mu/Scale.src/M000282.html +20 -0
- data/rdoc/classes/Mu/System.html +23 -72
- data/rdoc/classes/Mu/System.src/M000232.html +25 -0
- data/rdoc/classes/Mu/System.src/M000233.html +20 -0
- data/rdoc/classes/Mu/System.src/M000234.html +20 -0
- data/rdoc/classes/Mu/System.src/M000235.html +20 -0
- data/rdoc/classes/Object.html +5 -14
- data/rdoc/classes/Object.src/M000052.html +18 -0
- data/rdoc/classes/TCTestMu.html +254 -1099
- data/rdoc/classes/TCTestMu.src/M000001.html +24 -0
- data/rdoc/classes/TCTestMu.src/M000002.html +18 -0
- data/rdoc/classes/TCTestMu.src/M000003.html +32 -0
- data/rdoc/classes/TCTestMu.src/M000004.html +33 -0
- data/rdoc/classes/TCTestMu.src/M000005.html +21 -0
- data/rdoc/classes/TCTestMu.src/M000006.html +21 -0
- data/rdoc/classes/TCTestMu.src/M000007.html +26 -0
- data/rdoc/classes/TCTestMu.src/M000008.html +29 -0
- data/rdoc/classes/TCTestMu.src/M000009.html +39 -0
- data/rdoc/classes/TCTestMu.src/M000010.html +38 -0
- data/rdoc/classes/TCTestMu.src/M000011.html +38 -0
- data/rdoc/classes/TCTestMu.src/M000012.html +20 -0
- data/rdoc/classes/TCTestMu.src/M000013.html +25 -0
- data/rdoc/classes/TCTestMu.src/M000014.html +25 -0
- data/rdoc/classes/TCTestMu.src/M000015.html +33 -0
- data/rdoc/classes/TCTestMu.src/M000016.html +20 -0
- data/rdoc/classes/TCTestMu.src/M000017.html +20 -0
- data/rdoc/classes/TCTestMu.src/M000018.html +20 -0
- data/rdoc/classes/TCTestMu.src/M000019.html +20 -0
- data/rdoc/classes/TCTestMu.src/M000020.html +20 -0
- data/rdoc/classes/TCTestMu.src/M000021.html +20 -0
- data/rdoc/classes/TCTestMu.src/M000022.html +23 -0
- data/rdoc/classes/TCTestMu.src/M000023.html +23 -0
- data/rdoc/classes/TCTestMu.src/M000024.html +44 -0
- data/rdoc/classes/TCTestMu.src/M000025.html +53 -0
- data/rdoc/classes/TCTestMu.src/M000026.html +22 -0
- data/rdoc/classes/TCTestMu.src/M000027.html +49 -0
- data/rdoc/classes/TCTestMu.src/M000028.html +40 -0
- data/rdoc/classes/TCTestMu.src/M000029.html +20 -0
- data/rdoc/classes/TCTestMu.src/M000030.html +20 -0
- data/rdoc/classes/TCTestMu.src/M000031.html +20 -0
- data/rdoc/classes/TCTestMu.src/M000032.html +20 -0
- data/rdoc/classes/TCTestMu.src/M000033.html +27 -0
- data/rdoc/classes/TCTestMu.src/M000034.html +32 -0
- data/rdoc/classes/TCTestMu.src/M000035.html +23 -0
- data/rdoc/classes/TCTestMu.src/M000036.html +41 -0
- data/rdoc/classes/TCTestMu.src/M000037.html +23 -0
- data/rdoc/classes/TCTestMu.src/M000038.html +24 -0
- data/rdoc/classes/TCTestMu.src/M000039.html +20 -0
- data/rdoc/classes/TCTestMu.src/M000040.html +32 -0
- data/rdoc/classes/TCTestMu.src/M000041.html +32 -0
- data/rdoc/classes/TCTestMu.src/M000042.html +26 -0
- data/rdoc/classes/TCTestMu.src/M000043.html +28 -0
- data/rdoc/classes/TCTestMu.src/M000044.html +21 -0
- data/rdoc/classes/TCTestMu.src/M000045.html +23 -0
- data/rdoc/classes/TCTestMu.src/M000046.html +21 -0
- data/rdoc/classes/TCTestMu.src/M000047.html +20 -0
- data/rdoc/classes/TCTestMu.src/M000048.html +20 -0
- data/rdoc/classes/TCTestMu.src/M000049.html +22 -0
- data/rdoc/classes/TCTestMu.src/M000050.html +20 -0
- data/rdoc/classes/TCTestMu.src/M000051.html +35 -0
- data/rdoc/created.rid +1 -1
- data/rdoc/files/lib/mu/api/ddt_rb.html +1 -1
- data/rdoc/files/lib/mu/api/homepage_rb.html +1 -1
- data/rdoc/files/lib/mu/api/muapi_rb.html +1 -1
- data/rdoc/files/lib/mu/api/netconfig_rb.html +1 -1
- data/rdoc/files/lib/mu/api/scale_rb.html +1 -1
- data/rdoc/files/lib/mu/api/system_rb.html +1 -1
- data/rdoc/files/lib/mu/client_rb.html +1 -1
- data/rdoc/files/lib/mu/command/api_rb.html +1 -1
- data/rdoc/files/lib/mu/command/cmd_appid_rb.html +1 -1
- data/rdoc/files/lib/mu/command/cmd_cli_rb.html +1 -1
- data/rdoc/files/lib/mu/command/cmd_ddt_rb.html +4 -5
- data/rdoc/files/lib/mu/command/cmd_homepage_rb.html +1 -1
- data/rdoc/files/lib/mu/command/cmd_muapi_rb.html +3 -4
- data/rdoc/files/lib/mu/command/cmd_netconfig_rb.html +1 -1
- data/rdoc/files/lib/mu/command/cmd_runscale_rb.html +1 -1
- data/rdoc/files/lib/mu/command/cmd_runscenario_rb.html +1 -1
- data/rdoc/files/lib/mu/command/cmd_runverify_rb.html +5 -4
- data/rdoc/files/lib/mu/command/cmd_scale_rb.html +1 -1
- data/rdoc/files/lib/mu/command/cmd_system_rb.html +1 -1
- data/rdoc/files/lib/mu/command/curl_rb.html +1 -1
- data/rdoc/files/lib/mu/command/help_rb.html +1 -1
- data/rdoc/files/lib/mu/command_rb.html +1 -1
- data/rdoc/files/lib/mu/curl/error_rb.html +1 -1
- data/rdoc/files/lib/mu/curl/verify_rb.html +1 -1
- data/rdoc/files/lib/mu/http_helper_rb.html +1 -1
- data/rdoc/files/lib/mu_rb.html +1 -1
- data/rdoc/files/test/tc_test_mu_rb.html +1 -1
- data/rdoc/fr_class_index.html +0 -38
- data/rdoc/fr_file_index.html +0 -26
- data/rdoc/fr_method_index.html +25 -348
- data/rdoc/index.html +3 -3
- data/test/data/app_id_stats.csv +1 -1
- data/test/data/app_id_status.json +156 -0
- data/test/tc_test_mu.rb +1 -1
- metadata +314 -8
- 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">"/restlet/netconfig/"</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">""</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">"Created Netconfig API object to :#{@host}"</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">"hosts"</span>
|
21
|
+
<span class="ruby-identifier">msg</span> <span class="ruby-value str">"RESTORE HOSTS"</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">"hosts"</span>]
|
24
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-value str">"routes"</span>
|
25
|
+
<span class="ruby-identifier">msg</span> <span class="ruby-value str">"RESTORE ROUTES"</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">"routes"</span>]
|
28
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-value str">"interfaces"</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">"RESTORE INTERFACES"</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">"interfaces"</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">"hosts"</span>)
|
16
|
+
<span class="ruby-identifier">h</span>[<span class="ruby-value str">"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>
|
17
|
+
<span class="ruby-identifier">msg</span> <span class="ruby-node">"Clear host: #{h['name']}"</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">"hosts/#{h['name']}"</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">"create host: #{h['name']}"</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">"hosts/#{h['name']}"</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">"hosts"</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">"hosts"</span>
|
18
|
+
<span class="ruby-identifier">hst</span>[<span class="ruby-value str">"hosts"</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"><<</span> <span class="ruby-identifier">h</span>[<span class="ruby-value str">"name"</span>]}
|
19
|
+
<span class="ruby-keyword kw">else</span>
|
20
|
+
<span class="ruby-identifier">hosts</span> <span class="ruby-operator"><<</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">"resolve host: #{h}"</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">"CCCC"</span>).<span class="ruby-identifier">join</span>(<span class="ruby-value str">"."</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">"hosts/#{h}"</span>
|
27
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">json</span>[<span class="ruby-value str">"name"</span>].<span class="ruby-identifier">nil?</span>
|
28
|
+
<span class="ruby-identifier">json</span> = {<span class="ruby-value str">"name"</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">h</span>, <span class="ruby-value str">"v4_addr"</span> =<span class="ruby-operator">></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">"hosts"</span>
|
30
|
+
<span class="ruby-keyword kw">else</span>
|
31
|
+
<span class="ruby-identifier">json</span>[<span class="ruby-value str">"v4_addr"</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">"hosts/#{h}"</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">"v4_addrs"</span>=<span class="ruby-operator">></span>[], <span class="ruby-value str">"v4_mask"</span>=<span class="ruby-operator">></span><span class="ruby-value str">""</span>, <span class="ruby-value str">"v4_dhcp"</span>=<span class="ruby-operator">></span><span class="ruby-keyword kw">false</span>,
|
17
|
+
<span class="ruby-value str">"v6_global_addrs"</span>=<span class="ruby-operator">></span>[], <span class="ruby-value str">"v6_global_mask"</span>=<span class="ruby-operator">></span><span class="ruby-value str">""</span>}
|
18
|
+
<span class="ruby-identifier">modify</span> <span class="ruby-identifier">json</span>,<span class="ruby-node">"interfaces/#{interface}"</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">"interfaces"</span>
|
16
|
+
<span class="ruby-identifier">i</span>[<span class="ruby-value str">"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>
|
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">""</span>
|
18
|
+
<span class="ruby-identifier">msg</span> <span class="ruby-node">"Clear vlan: #{i['name']}"</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">"interfaces/#{i['name']}"</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">"eth"</span> <span class="ruby-comment cmt"># don't do eth0 or eth1</span>
|
17
|
+
<span class="ruby-identifier">msg</span> <span class="ruby-node">"configure interface: #{i['name']}"</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">""</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">"."</span>)
|
20
|
+
<span class="ruby-identifier">create</span> [{<span class="ruby-value str">"name"</span>=<span class="ruby-operator">></span><span class="ruby-identifier">interface</span>,<span class="ruby-value str">"vlan"</span>=<span class="ruby-operator">></span><span class="ruby-identifier">vlan</span>},<span class="ruby-value str">"interfaces"</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">"interfaces/#{i['name']}"</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">"routes"</span>
|
16
|
+
<span class="ruby-identifier">routes</span>[<span class="ruby-value str">"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>
|
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">"Clear route: #{r['dst']}-#{r['gateway']}-#{r['interface_display_name'].downcase}"</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">"routes/#{r['dst']}-#{r['gateway']}-#{r['interface_display_name'].downcase}"</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">"configure route: #{r['dst']}-#{r['gateway']}-#{r['interface_display_name'].downcase}"</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">"routes"</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">"all"</span>, <span class="ruby-identifier">filepath</span>=<span class="ruby-value str">"config.json"</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>
|
data/rdoc/classes/Mu/Scale.html
CHANGED
@@ -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="#
|
92
|
-
<a href="#
|
93
|
-
<a href="#
|
94
|
-
<a href="#
|
95
|
-
<a href="#
|
96
|
-
<a href="#
|
97
|
-
<a href="#
|
98
|
-
<a href="#
|
99
|
-
<a href="#
|
100
|
-
<a href="#
|
101
|
-
<a href="#
|
102
|
-
<a href="#
|
103
|
-
<a href="#
|
104
|
-
<a href="#
|
105
|
-
<a href="#
|
106
|
-
<a href="#
|
107
|
-
<a href="#
|
108
|
-
<a href="#
|
109
|
-
<a href="#
|
110
|
-
<a href="#
|
89
|
+
<a href="#M000016">about</a>
|
90
|
+
<a href="#M000008">configure</a>
|
91
|
+
<a href="#M000019">data</a>
|
92
|
+
<a href="#M000025">delete_scale_engine</a>
|
93
|
+
<a href="#M000015">list</a>
|
94
|
+
<a href="#M000006">new</a>
|
95
|
+
<a href="#M000020">pattern</a>
|
96
|
+
<a href="#M000017">pcap</a>
|
97
|
+
<a href="#M000022">release</a>
|
98
|
+
<a href="#M000024">release_scale_engine</a>
|
99
|
+
<a href="#M000023">reserve_scale_engine</a>
|
100
|
+
<a href="#M000007">session</a>
|
101
|
+
<a href="#M000009">start</a>
|
102
|
+
<a href="#M000010">start_n</a>
|
103
|
+
<a href="#M000014">status</a>
|
104
|
+
<a href="#M000018">statuses</a>
|
105
|
+
<a href="#M000021">stop</a>
|
106
|
+
<a href="#M000013">update</a>
|
107
|
+
<a href="#M000011">verify</a>
|
108
|
+
<a href="#M000012">verify_n</a>
|
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"
|
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"> [RW] </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"> [RW] </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"> [RW] </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-
|
183
|
-
<a name="
|
185
|
+
<div id="method-M000006" class="method-detail">
|
186
|
+
<a name="M000006"></a>
|
184
187
|
|
185
188
|
<div class="method-heading">
|
186
|
-
<a href="
|
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">"/api/v5/scale/"</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">"scale.json"</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">"reading config file: #{@config_file}"</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">"hosts"</span>=<span class="ruby-operator">></span> {
|
211
|
-
<span class="ruby-value str">"host_0"</span>=<span class="ruby-operator">></span> <span class="ruby-value str">"a1/*"</span>,
|
212
|
-
<span class="ruby-value str">"host_1"</span>=<span class="ruby-operator">></span> <span class="ruby-value str">"a2/*"</span>
|
213
|
-
},
|
214
|
-
<span class="ruby-value str">"timeout"</span>=<span class="ruby-operator">></span> <span class="ruby-value">5000</span>,
|
215
|
-
<span class="ruby-value str">"delay"</span>=<span class="ruby-operator">></span> <span class="ruby-value">0</span>,
|
216
|
-
<span class="ruby-value str">"volume"</span>=<span class="ruby-operator">></span> <span class="ruby-value">1</span>,
|
217
|
-
<span class="ruby-value str">"holdConcurrency"</span>=<span class="ruby-operator">></span> <span class="ruby-keyword kw">true</span>,
|
218
|
-
<span class="ruby-value str">"limitConcurrency"</span>=<span class="ruby-operator">></span> <span class="ruby-keyword kw">false</span>,
|
219
|
-
<span class="ruby-value str">"vectorAddressPairing"</span>=<span class="ruby-operator">></span> <span class="ruby-keyword kw">false</span>,
|
220
|
-
<span class="ruby-value str">"musl"</span> =<span class="ruby-operator">></span> <span class="ruby-value str">""</span>,
|
221
|
-
<span class="ruby-value str">"csv"</span> =<span class="ruby-operator">></span> <span class="ruby-value str">""</span>,
|
222
|
-
<span class="ruby-value str">"pattern"</span> =<span class="ruby-operator">></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">"Created Scale Api session [#{@uuid}] on :#{@host}"</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-
|
236
|
-
<a name="
|
201
|
+
<div id="method-M000016" class="method-detail">
|
202
|
+
<a name="M000016"></a>
|
237
203
|
|
238
204
|
<div class="method-heading">
|
239
|
-
<a href="
|
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#
|
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">"about"</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-
|
266
|
-
<a name="
|
220
|
+
<div id="method-M000008" class="method-detail">
|
221
|
+
<a name="M000008"></a>
|
267
222
|
|
268
223
|
<div class="method-heading">
|
269
|
-
<a href="
|
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">"pattern"</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">"scale_configuration.json"</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-
|
300
|
-
<a name="
|
241
|
+
<div id="method-M000019" class="method-detail">
|
242
|
+
<a name="M000019"></a>
|
301
243
|
|
302
244
|
<div class="method-heading">
|
303
|
-
<a href="
|
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="0", position="0", bot_id="")</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#
|
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">"0"</span>, <span class="ruby-identifier">position</span>=<span class="ruby-value str">"0"</span>, <span class="ruby-identifier">bot_id</span>=<span class="ruby-value str">""</span>)
|
325
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-identifier">get</span> <span class="ruby-value str">"data"</span>, <span class="ruby-node">"view=#{view.upcase}&zoom=#{zoom}&position=#{position}&bot_id=#{bot_id}"</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-
|
335
|
-
<a name="
|
265
|
+
<div id="method-M000025" class="method-detail">
|
266
|
+
<a name="M000025"></a>
|
336
267
|
|
337
268
|
<div class="method-heading">
|
338
|
-
<a href="
|
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#
|
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">"deleteScaleEngine"</span>, <span class="ruby-node">"botId=#{bot_id}"</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-
|
367
|
-
<a name="
|
286
|
+
<div id="method-M000015" class="method-detail">
|
287
|
+
<a name="M000015"></a>
|
368
288
|
|
369
289
|
<div class="method-heading">
|
370
|
-
<a href="
|
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‘s <a
|
378
|
-
href="Scale.html#
|
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">"list"</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-
|
396
|
-
<a name="
|
304
|
+
<div id="method-M000020" class="method-detail">
|
305
|
+
<a name="M000020"></a>
|
397
306
|
|
398
307
|
<div class="method-heading">
|
399
|
-
<a href="
|
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="0", position="0")</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#
|
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">"0"</span>, <span class="ruby-identifier">position</span>=<span class="ruby-value str">"0"</span>)
|
419
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-identifier">get</span> <span class="ruby-value str">"pattern"</span>, <span class="ruby-node">"zoom=#{zoom}&position=#{position}"</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-
|
429
|
-
<a name="
|
326
|
+
<div id="method-M000017" class="method-detail">
|
327
|
+
<a name="M000017"></a>
|
430
328
|
|
431
329
|
<div class="method-heading">
|
432
|
-
<a href="
|
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#
|
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">"pcap"</span>, <span class="ruby-node">"botId=#{bot_id}&file=#{file}"</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-
|
462
|
-
<a name="
|
348
|
+
<div id="method-M000022" class="method-detail">
|
349
|
+
<a name="M000022"></a>
|
463
350
|
|
464
351
|
<div class="method-heading">
|
465
|
-
<a href="
|
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">"release"</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-
|
490
|
-
<a name="
|
365
|
+
<div id="method-M000024" class="method-detail">
|
366
|
+
<a name="M000024"></a>
|
491
367
|
|
492
368
|
<div class="method-heading">
|
493
|
-
<a href="
|
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">"releaseScaleEngine"</span>, <span class="ruby-node">"botId=#{bot_id}"</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-
|
522
|
-
<a name="
|
386
|
+
<div id="method-M000023" class="method-detail">
|
387
|
+
<a name="M000023"></a>
|
523
388
|
|
524
389
|
<div class="method-heading">
|
525
|
-
<a href="
|
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">"reserveScaleEngine"</span>, <span class="ruby-node">"botId=#{bot_id}"</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-
|
554
|
-
<a name="
|
407
|
+
<div id="method-M000007" class="method-detail">
|
408
|
+
<a name="M000007"></a>
|
555
409
|
|
556
410
|
<div class="method-heading">
|
557
|
-
<a href="
|
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#
|
565
|
-
href="Scale.html">Scale</a> <a href="Scale.html#
|
566
|
-
returning the <a href="Scale.html#
|
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">"list"</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">"new"</span> <span class="ruby-comment cmt"># return a new session identifier</span>
|
582
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-node">"uuid from /new = #{uuid}"</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-
|
591
|
-
<a name="
|
426
|
+
<div id="method-M000009" class="method-detail">
|
427
|
+
<a name="M000009"></a>
|
592
428
|
|
593
429
|
<div class="method-heading">
|
594
|
-
<a href="
|
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">"start"</span>, {<span class="ruby-value str">"request"</span> =<span class="ruby-operator">></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-
|
619
|
-
<a name="
|
443
|
+
<div id="method-M000010" class="method-detail">
|
444
|
+
<a name="M000010"></a>
|
620
445
|
|
621
446
|
<div class="method-heading">
|
622
|
-
<a href="
|
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#
|
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">"status"</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-
|
648
|
-
<a name="
|
478
|
+
<div id="method-M000018" class="method-detail">
|
479
|
+
<a name="M000018"></a>
|
649
480
|
|
650
481
|
<div class="method-heading">
|
651
|
-
<a href="
|
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#
|
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">"statuses"</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-
|
677
|
-
<a name="
|
496
|
+
<div id="method-M000021" class="method-detail">
|
497
|
+
<a name="M000021"></a>
|
678
498
|
|
679
499
|
<div class="method-heading">
|
680
|
-
<a href="
|
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">"stop"</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-
|
705
|
-
<a name="
|
513
|
+
<div id="method-M000013" class="method-detail">
|
514
|
+
<a name="M000013"></a>
|
706
515
|
|
707
516
|
<div class="method-heading">
|
708
|
-
<a href="
|
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#
|
526
|
+
href="Scale.html#M000020">pattern</a> is ‘none‘
|
717
527
|
</p>
|
718
528
|
<pre>
|
719
529
|
* params = a json object containing the information to update, such as { "volume" : 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">"update"</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-
|
737
|
-
<a name="
|
534
|
+
<div id="method-M000011" class="method-detail">
|
535
|
+
<a name="M000011"></a>
|
738
536
|
|
739
537
|
<div class="method-heading">
|
740
|
-
<a href="
|
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 ‘none‘
|
|
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">"verify"</span>, {<span class="ruby-value str">"request"</span> =<span class="ruby-operator">></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"><<</span> <span class="ruby-node">"?uuid=#{@uuid}"</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"><<</span> <span class="ruby-node">"&#{params}"</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-
|
793
|
-
<a name="
|
551
|
+
<div id="method-M000012" class="method-detail">
|
552
|
+
<a name="M000012"></a>
|
794
553
|
|
795
554
|
<div class="method-heading">
|
796
|
-
<a href="
|
797
|
-
|
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
|
-
|
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"><<</span> <span class="ruby-node">"?uuid=#{@uuid}"</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
|
|