mu 5.7.2.3 → 5.7.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,18 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
<head>
|
|
8
|
+
<title>cmd_help (Mu::Command::Cmd_homepage)</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
+
</head>
|
|
12
|
+
<body class="standalone-code">
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/mu/command/cmd_homepage.rb, line 11</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_help</span> <span class="ruby-identifier">argv</span>
|
|
15
|
+
<span class="ruby-identifier">help</span>
|
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
17
|
+
</body>
|
|
18
|
+
</html>
|
|
@@ -0,0 +1,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>cmd_all (Mu::Command::Cmd_homepage)</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
+
</head>
|
|
12
|
+
<body class="standalone-code">
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/mu/command/cmd_homepage.rb, line 17</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_all</span> <span class="ruby-identifier">argv</span>
|
|
15
|
+
<span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
16
|
+
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">all</span>
|
|
17
|
+
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
18
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
19
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
20
|
+
</body>
|
|
21
|
+
</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>cmd_recent (Mu::Command::Cmd_homepage)</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
+
</head>
|
|
12
|
+
<body class="standalone-code">
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/mu/command/cmd_homepage.rb, line 26</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_recent</span> <span class="ruby-identifier">argv</span>
|
|
15
|
+
<span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
16
|
+
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">recent</span>
|
|
17
|
+
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
18
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
19
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
20
|
+
</body>
|
|
21
|
+
</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>cmd_status (Mu::Command::Cmd_homepage)</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
+
</head>
|
|
12
|
+
<body class="standalone-code">
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/mu/command/cmd_homepage.rb, line 35</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_status</span> <span class="ruby-identifier">argv</span>
|
|
15
|
+
<span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
16
|
+
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">status</span>
|
|
17
|
+
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
18
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
19
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
20
|
+
</body>
|
|
21
|
+
</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>cmd_latest_test (Mu::Command::Cmd_homepage)</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
+
</head>
|
|
12
|
+
<body class="standalone-code">
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/mu/command/cmd_homepage.rb, line 44</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_latest_test</span> <span class="ruby-identifier">argv</span>
|
|
15
|
+
<span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
16
|
+
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">latest_test</span>
|
|
17
|
+
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
18
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
19
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
20
|
+
</body>
|
|
21
|
+
</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>cmd_queue_test (Mu::Command::Cmd_homepage)</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
+
</head>
|
|
12
|
+
<body class="standalone-code">
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/mu/command/cmd_homepage.rb, line 53</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_queue_test</span> <span class="ruby-identifier">argv</span>
|
|
15
|
+
<span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
16
|
+
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">queue_test</span>
|
|
17
|
+
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
18
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
19
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
20
|
+
</body>
|
|
21
|
+
</html>
|
|
@@ -86,26 +86,23 @@
|
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
|
87
87
|
|
|
88
88
|
<div class="name-list">
|
|
89
|
-
<a href="#
|
|
90
|
-
<a href="#
|
|
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="#M000227">help</a>
|
|
107
|
-
<a href="#M000226">parse_cli</a>
|
|
108
|
-
<a href="#M000225">setup</a>
|
|
89
|
+
<a href="#M000178">cmd_archive</a>
|
|
90
|
+
<a href="#M000179">cmd_backup</a>
|
|
91
|
+
<a href="#M000180">cmd_capture</a>
|
|
92
|
+
<a href="#M000171">cmd_delete</a>
|
|
93
|
+
<a href="#M000176">cmd_export_by_type_and_name</a>
|
|
94
|
+
<a href="#M000177">cmd_export_by_uuid</a>
|
|
95
|
+
<a href="#M000172">cmd_get_faults</a>
|
|
96
|
+
<a href="#M000173">cmd_get_name</a>
|
|
97
|
+
<a href="#M000164">cmd_help</a>
|
|
98
|
+
<a href="#M000175">cmd_list</a>
|
|
99
|
+
<a href="#M000165">cmd_list_by_status</a>
|
|
100
|
+
<a href="#M000169">cmd_pause</a>
|
|
101
|
+
<a href="#M000170">cmd_resume</a>
|
|
102
|
+
<a href="#M000167">cmd_run</a>
|
|
103
|
+
<a href="#M000166">cmd_status</a>
|
|
104
|
+
<a href="#M000168">cmd_stop</a>
|
|
105
|
+
<a href="#M000174">cmd_types</a>
|
|
109
106
|
</div>
|
|
110
107
|
</div>
|
|
111
108
|
|
|
@@ -160,11 +157,12 @@
|
|
|
160
157
|
<div id="methods">
|
|
161
158
|
<h3 class="section-bar">Public Instance methods</h3>
|
|
162
159
|
|
|
163
|
-
<div id="method-
|
|
164
|
-
<a name="
|
|
160
|
+
<div id="method-M000178" class="method-detail">
|
|
161
|
+
<a name="M000178"></a>
|
|
165
162
|
|
|
166
163
|
<div class="method-heading">
|
|
167
|
-
<a href="
|
|
164
|
+
<a href="Cmd_muapi.src/M000178.html" target="Code" class="method-signature"
|
|
165
|
+
onclick="popupCode('Cmd_muapi.src/M000178.html');return false;">
|
|
168
166
|
<span class="method-name">cmd_archive</span><span class="method-args">(argv)</span>
|
|
169
167
|
</a>
|
|
170
168
|
</div>
|
|
@@ -180,29 +178,15 @@ an archive of all data produced by a particular test ex:
|
|
|
180
178
|
* command=status (called after 'run'), requires the job_id (-u) argument
|
|
181
179
|
* command=get (called when status returns "Finished"), requires the job_id (-u) argument
|
|
182
180
|
</pre>
|
|
183
|
-
<p><a class="source-toggle" href="#"
|
|
184
|
-
onclick="toggleCode('M000222-source');return false;">[Source]</a></p>
|
|
185
|
-
<div class="method-source-code" id="M000222-source">
|
|
186
|
-
<pre>
|
|
187
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_muapi.rb, line 177</span>
|
|
188
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_archive</span> <span class="ruby-identifier">argv</span>
|
|
189
|
-
<span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
190
|
-
<span class="ruby-identifier">command</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'command'</span>]
|
|
191
|
-
<span class="ruby-identifier">job_id</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'uuid'</span>]
|
|
192
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">archive</span>(<span class="ruby-identifier">command</span>, <span class="ruby-identifier">job_id</span>)
|
|
193
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
194
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
195
|
-
<span class="ruby-keyword kw">end</span>
|
|
196
|
-
</pre>
|
|
197
|
-
</div>
|
|
198
181
|
</div>
|
|
199
182
|
</div>
|
|
200
183
|
|
|
201
|
-
<div id="method-
|
|
202
|
-
<a name="
|
|
184
|
+
<div id="method-M000179" class="method-detail">
|
|
185
|
+
<a name="M000179"></a>
|
|
203
186
|
|
|
204
187
|
<div class="method-heading">
|
|
205
|
-
<a href="
|
|
188
|
+
<a href="Cmd_muapi.src/M000179.html" target="Code" class="method-signature"
|
|
189
|
+
onclick="popupCode('Cmd_muapi.src/M000179.html');return false;">
|
|
206
190
|
<span class="method-name">cmd_backup</span><span class="method-args">(argv)</span>
|
|
207
191
|
</a>
|
|
208
192
|
</div>
|
|
@@ -219,29 +203,15 @@ retrieve a backup ex:
|
|
|
219
203
|
* command=get (called when status returns "Finished"), requires the name (-n) argument
|
|
220
204
|
* name = backup file name (will be given a .dat extension)
|
|
221
205
|
</pre>
|
|
222
|
-
<p><a class="source-toggle" href="#"
|
|
223
|
-
onclick="toggleCode('M000223-source');return false;">[Source]</a></p>
|
|
224
|
-
<div class="method-source-code" id="M000223-source">
|
|
225
|
-
<pre>
|
|
226
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_muapi.rb, line 194</span>
|
|
227
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_backup</span> <span class="ruby-identifier">argv</span>
|
|
228
|
-
<span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
229
|
-
<span class="ruby-identifier">command</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'command'</span>]
|
|
230
|
-
<span class="ruby-identifier">name</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'name'</span>]
|
|
231
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">backup</span>(<span class="ruby-identifier">command</span>, <span class="ruby-identifier">name</span>)
|
|
232
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
233
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
234
|
-
<span class="ruby-keyword kw">end</span>
|
|
235
|
-
</pre>
|
|
236
|
-
</div>
|
|
237
206
|
</div>
|
|
238
207
|
</div>
|
|
239
208
|
|
|
240
|
-
<div id="method-
|
|
241
|
-
<a name="
|
|
209
|
+
<div id="method-M000180" class="method-detail">
|
|
210
|
+
<a name="M000180"></a>
|
|
242
211
|
|
|
243
212
|
<div class="method-heading">
|
|
244
|
-
<a href="
|
|
213
|
+
<a href="Cmd_muapi.src/M000180.html" target="Code" class="method-signature"
|
|
214
|
+
onclick="popupCode('Cmd_muapi.src/M000180.html');return false;">
|
|
245
215
|
<span class="method-name">cmd_capture</span><span class="method-args">(argv)</span>
|
|
246
216
|
</a>
|
|
247
217
|
</div>
|
|
@@ -258,30 +228,15 @@ captures, poll the status and return the resulting file ex:
|
|
|
258
228
|
* command=get (called when status returns "Finished"), requires the job_id (-u) argument
|
|
259
229
|
* port = the Mu interface on which to capture packets
|
|
260
230
|
</pre>
|
|
261
|
-
<p><a class="source-toggle" href="#"
|
|
262
|
-
onclick="toggleCode('M000224-source');return false;">[Source]</a></p>
|
|
263
|
-
<div class="method-source-code" id="M000224-source">
|
|
264
|
-
<pre>
|
|
265
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_muapi.rb, line 211</span>
|
|
266
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_capture</span> <span class="ruby-identifier">argv</span>
|
|
267
|
-
<span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
268
|
-
<span class="ruby-identifier">command</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'command'</span>]
|
|
269
|
-
<span class="ruby-identifier">port</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'port'</span>]
|
|
270
|
-
<span class="ruby-identifier">job_id</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'uuid'</span>]
|
|
271
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">capture</span>(<span class="ruby-identifier">command</span>, <span class="ruby-identifier">port</span>, <span class="ruby-identifier">job_id</span>)
|
|
272
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
273
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
274
|
-
<span class="ruby-keyword kw">end</span>
|
|
275
|
-
</pre>
|
|
276
|
-
</div>
|
|
277
231
|
</div>
|
|
278
232
|
</div>
|
|
279
233
|
|
|
280
|
-
<div id="method-
|
|
281
|
-
<a name="
|
|
234
|
+
<div id="method-M000171" class="method-detail">
|
|
235
|
+
<a name="M000171"></a>
|
|
282
236
|
|
|
283
237
|
<div class="method-heading">
|
|
284
|
-
<a href="
|
|
238
|
+
<a href="Cmd_muapi.src/M000171.html" target="Code" class="method-signature"
|
|
239
|
+
onclick="popupCode('Cmd_muapi.src/M000171.html');return false;">
|
|
285
240
|
<span class="method-name">cmd_delete</span><span class="method-args">(argv)</span>
|
|
286
241
|
</a>
|
|
287
242
|
</div>
|
|
@@ -293,28 +248,15 @@ delets an analysis or template of any type
|
|
|
293
248
|
<pre>
|
|
294
249
|
* argv = command-line arguments, requires a uuid (-u) argument specifying the test
|
|
295
250
|
</pre>
|
|
296
|
-
<p><a class="source-toggle" href="#"
|
|
297
|
-
onclick="toggleCode('M000215-source');return false;">[Source]</a></p>
|
|
298
|
-
<div class="method-source-code" id="M000215-source">
|
|
299
|
-
<pre>
|
|
300
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_muapi.rb, line 89</span>
|
|
301
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_delete</span> <span class="ruby-identifier">argv</span>
|
|
302
|
-
<span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
303
|
-
<span class="ruby-identifier">uuid</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'uuid'</span>]
|
|
304
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">uuid</span>)
|
|
305
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
306
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
307
|
-
<span class="ruby-keyword kw">end</span>
|
|
308
|
-
</pre>
|
|
309
|
-
</div>
|
|
310
251
|
</div>
|
|
311
252
|
</div>
|
|
312
253
|
|
|
313
|
-
<div id="method-
|
|
314
|
-
<a name="
|
|
254
|
+
<div id="method-M000176" class="method-detail">
|
|
255
|
+
<a name="M000176"></a>
|
|
315
256
|
|
|
316
257
|
<div class="method-heading">
|
|
317
|
-
<a href="
|
|
258
|
+
<a href="Cmd_muapi.src/M000176.html" target="Code" class="method-signature"
|
|
259
|
+
onclick="popupCode('Cmd_muapi.src/M000176.html');return false;">
|
|
318
260
|
<span class="method-name">cmd_export_by_type_and_name</span><span class="method-args">(argv)</span>
|
|
319
261
|
</a>
|
|
320
262
|
</div>
|
|
@@ -326,29 +268,15 @@ exports a template by type and name
|
|
|
326
268
|
<pre>
|
|
327
269
|
* argv = command-line arguments, requires a template type (-t) and template name (-n) argument
|
|
328
270
|
</pre>
|
|
329
|
-
<p><a class="source-toggle" href="#"
|
|
330
|
-
onclick="toggleCode('M000220-source');return false;">[Source]</a></p>
|
|
331
|
-
<div class="method-source-code" id="M000220-source">
|
|
332
|
-
<pre>
|
|
333
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_muapi.rb, line 150</span>
|
|
334
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_export_by_type_and_name</span> <span class="ruby-identifier">argv</span>
|
|
335
|
-
<span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
336
|
-
<span class="ruby-identifier">type</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'type'</span>]
|
|
337
|
-
<span class="ruby-identifier">name</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'name'</span>]
|
|
338
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">export_by_type_and_name</span>(<span class="ruby-identifier">type</span>, <span class="ruby-identifier">name</span>)
|
|
339
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
340
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
341
|
-
<span class="ruby-keyword kw">end</span>
|
|
342
|
-
</pre>
|
|
343
|
-
</div>
|
|
344
271
|
</div>
|
|
345
272
|
</div>
|
|
346
273
|
|
|
347
|
-
<div id="method-
|
|
348
|
-
<a name="
|
|
274
|
+
<div id="method-M000177" class="method-detail">
|
|
275
|
+
<a name="M000177"></a>
|
|
349
276
|
|
|
350
277
|
<div class="method-heading">
|
|
351
|
-
<a href="
|
|
278
|
+
<a href="Cmd_muapi.src/M000177.html" target="Code" class="method-signature"
|
|
279
|
+
onclick="popupCode('Cmd_muapi.src/M000177.html');return false;">
|
|
352
280
|
<span class="method-name">cmd_export_by_uuid</span><span class="method-args">(argv)</span>
|
|
353
281
|
</a>
|
|
354
282
|
</div>
|
|
@@ -360,28 +288,15 @@ exports a template by uuid
|
|
|
360
288
|
<pre>
|
|
361
289
|
* argv = command-line arguments, requires a template uuid (-u) argument
|
|
362
290
|
</pre>
|
|
363
|
-
<p><a class="source-toggle" href="#"
|
|
364
|
-
onclick="toggleCode('M000221-source');return false;">[Source]</a></p>
|
|
365
|
-
<div class="method-source-code" id="M000221-source">
|
|
366
|
-
<pre>
|
|
367
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_muapi.rb, line 161</span>
|
|
368
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_export_by_uuid</span> <span class="ruby-identifier">argv</span>
|
|
369
|
-
<span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
370
|
-
<span class="ruby-identifier">uuid</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'uuid'</span>]
|
|
371
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">export_by_uuid</span>(<span class="ruby-identifier">uuid</span>)
|
|
372
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
373
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
374
|
-
<span class="ruby-keyword kw">end</span>
|
|
375
|
-
</pre>
|
|
376
|
-
</div>
|
|
377
291
|
</div>
|
|
378
292
|
</div>
|
|
379
293
|
|
|
380
|
-
<div id="method-
|
|
381
|
-
<a name="
|
|
294
|
+
<div id="method-M000172" class="method-detail">
|
|
295
|
+
<a name="M000172"></a>
|
|
382
296
|
|
|
383
297
|
<div class="method-heading">
|
|
384
|
-
<a href="
|
|
298
|
+
<a href="Cmd_muapi.src/M000172.html" target="Code" class="method-signature"
|
|
299
|
+
onclick="popupCode('Cmd_muapi.src/M000172.html');return false;">
|
|
385
300
|
<span class="method-name">cmd_get_faults</span><span class="method-args">(argv)</span>
|
|
386
301
|
</a>
|
|
387
302
|
</div>
|
|
@@ -393,34 +308,15 @@ returns a list of faults (if any) for the analysis
|
|
|
393
308
|
<pre>
|
|
394
309
|
* argv = command-line arguments, requires a uuid (-u) argument specifying the test
|
|
395
310
|
</pre>
|
|
396
|
-
<p><a class="source-toggle" href="#"
|
|
397
|
-
onclick="toggleCode('M000216-source');return false;">[Source]</a></p>
|
|
398
|
-
<div class="method-source-code" id="M000216-source">
|
|
399
|
-
<pre>
|
|
400
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_muapi.rb, line 99</span>
|
|
401
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_get_faults</span> <span class="ruby-identifier">argv</span>
|
|
402
|
-
<span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
403
|
-
<span class="ruby-identifier">uuid</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'uuid'</span>]
|
|
404
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">get_faults</span>(<span class="ruby-identifier">uuid</span>)
|
|
405
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">response</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>)
|
|
406
|
-
<span class="ruby-identifier">response</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>
|
|
407
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">r</span>
|
|
408
|
-
<span class="ruby-keyword kw">end</span>
|
|
409
|
-
<span class="ruby-keyword kw">else</span>
|
|
410
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
411
|
-
<span class="ruby-keyword kw">end</span>
|
|
412
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
413
|
-
<span class="ruby-keyword kw">end</span>
|
|
414
|
-
</pre>
|
|
415
|
-
</div>
|
|
416
311
|
</div>
|
|
417
312
|
</div>
|
|
418
313
|
|
|
419
|
-
<div id="method-
|
|
420
|
-
<a name="
|
|
314
|
+
<div id="method-M000173" class="method-detail">
|
|
315
|
+
<a name="M000173"></a>
|
|
421
316
|
|
|
422
317
|
<div class="method-heading">
|
|
423
|
-
<a href="
|
|
318
|
+
<a href="Cmd_muapi.src/M000173.html" target="Code" class="method-signature"
|
|
319
|
+
onclick="popupCode('Cmd_muapi.src/M000173.html');return false;">
|
|
424
320
|
<span class="method-name">cmd_get_name</span><span class="method-args">(argv)</span>
|
|
425
321
|
</a>
|
|
426
322
|
</div>
|
|
@@ -432,57 +328,35 @@ returns the name of a test referenced by uuid
|
|
|
432
328
|
<pre>
|
|
433
329
|
* argv = command-line arguments, requires a uuid (-u) argument specifying the test
|
|
434
330
|
</pre>
|
|
435
|
-
<p><a class="source-toggle" href="#"
|
|
436
|
-
onclick="toggleCode('M000217-source');return false;">[Source]</a></p>
|
|
437
|
-
<div class="method-source-code" id="M000217-source">
|
|
438
|
-
<pre>
|
|
439
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_muapi.rb, line 115</span>
|
|
440
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_get_name</span> <span class="ruby-identifier">argv</span>
|
|
441
|
-
<span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
442
|
-
<span class="ruby-identifier">uuid</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'uuid'</span>]
|
|
443
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">get_name</span>(<span class="ruby-identifier">uuid</span>)
|
|
444
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
445
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
446
|
-
<span class="ruby-keyword kw">end</span>
|
|
447
|
-
</pre>
|
|
448
|
-
</div>
|
|
449
331
|
</div>
|
|
450
332
|
</div>
|
|
451
333
|
|
|
452
|
-
<div id="method-
|
|
453
|
-
<a name="
|
|
334
|
+
<div id="method-M000164" class="method-detail">
|
|
335
|
+
<a name="M000164"></a>
|
|
454
336
|
|
|
455
337
|
<div class="method-heading">
|
|
456
|
-
<a href="
|
|
338
|
+
<a href="Cmd_muapi.src/M000164.html" target="Code" class="method-signature"
|
|
339
|
+
onclick="popupCode('Cmd_muapi.src/M000164.html');return false;">
|
|
457
340
|
<span class="method-name">cmd_help</span><span class="method-args">(argv)</span>
|
|
458
341
|
</a>
|
|
459
342
|
</div>
|
|
460
343
|
|
|
461
344
|
<div class="method-description">
|
|
462
345
|
<p>
|
|
463
|
-
displays command-line
|
|
346
|
+
displays command-line help
|
|
464
347
|
</p>
|
|
465
348
|
<pre>
|
|
466
349
|
* argv = command-line arguments
|
|
467
350
|
</pre>
|
|
468
|
-
<p><a class="source-toggle" href="#"
|
|
469
|
-
onclick="toggleCode('M000208-source');return false;">[Source]</a></p>
|
|
470
|
-
<div class="method-source-code" id="M000208-source">
|
|
471
|
-
<pre>
|
|
472
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_muapi.rb, line 12</span>
|
|
473
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_help</span> <span class="ruby-identifier">argv</span>
|
|
474
|
-
<span class="ruby-identifier">help</span>
|
|
475
|
-
<span class="ruby-keyword kw">end</span>
|
|
476
|
-
</pre>
|
|
477
|
-
</div>
|
|
478
351
|
</div>
|
|
479
352
|
</div>
|
|
480
353
|
|
|
481
|
-
<div id="method-
|
|
482
|
-
<a name="
|
|
354
|
+
<div id="method-M000175" class="method-detail">
|
|
355
|
+
<a name="M000175"></a>
|
|
483
356
|
|
|
484
357
|
<div class="method-heading">
|
|
485
|
-
<a href="
|
|
358
|
+
<a href="Cmd_muapi.src/M000175.html" target="Code" class="method-signature"
|
|
359
|
+
onclick="popupCode('Cmd_muapi.src/M000175.html');return false;">
|
|
486
360
|
<span class="method-name">cmd_list</span><span class="method-args">(argv)</span>
|
|
487
361
|
</a>
|
|
488
362
|
</div>
|
|
@@ -494,34 +368,15 @@ lists all templates of the given type
|
|
|
494
368
|
<pre>
|
|
495
369
|
* argv = command-line arguments, requires a type (-t) argument, such as 'scenario'
|
|
496
370
|
</pre>
|
|
497
|
-
<p><a class="source-toggle" href="#"
|
|
498
|
-
onclick="toggleCode('M000219-source');return false;">[Source]</a></p>
|
|
499
|
-
<div class="method-source-code" id="M000219-source">
|
|
500
|
-
<pre>
|
|
501
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_muapi.rb, line 134</span>
|
|
502
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_list</span> <span class="ruby-identifier">argv</span>
|
|
503
|
-
<span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
504
|
-
<span class="ruby-identifier">type</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'type'</span>]
|
|
505
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">list</span>(<span class="ruby-identifier">type</span>)
|
|
506
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">response</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>)
|
|
507
|
-
<span class="ruby-identifier">response</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>
|
|
508
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">r</span>
|
|
509
|
-
<span class="ruby-keyword kw">end</span>
|
|
510
|
-
<span class="ruby-keyword kw">else</span>
|
|
511
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
512
|
-
<span class="ruby-keyword kw">end</span>
|
|
513
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
514
|
-
<span class="ruby-keyword kw">end</span>
|
|
515
|
-
</pre>
|
|
516
|
-
</div>
|
|
517
371
|
</div>
|
|
518
372
|
</div>
|
|
519
373
|
|
|
520
|
-
<div id="method-
|
|
521
|
-
<a name="
|
|
374
|
+
<div id="method-M000165" class="method-detail">
|
|
375
|
+
<a name="M000165"></a>
|
|
522
376
|
|
|
523
377
|
<div class="method-heading">
|
|
524
|
-
<a href="
|
|
378
|
+
<a href="Cmd_muapi.src/M000165.html" target="Code" class="method-signature"
|
|
379
|
+
onclick="popupCode('Cmd_muapi.src/M000165.html');return false;">
|
|
525
380
|
<span class="method-name">cmd_list_by_status</span><span class="method-args">(argv)</span>
|
|
526
381
|
</a>
|
|
527
382
|
</div>
|
|
@@ -533,33 +388,15 @@ for any of the possible status values, returns a list of analysis
|
|
|
533
388
|
<pre>
|
|
534
389
|
* argv = command-line arguments, requires the status (-s) argument, specifying the values to query, such as 'running' or 'failed'
|
|
535
390
|
</pre>
|
|
536
|
-
<p><a class="source-toggle" href="#"
|
|
537
|
-
onclick="toggleCode('M000209-source');return false;">[Source]</a></p>
|
|
538
|
-
<div class="method-source-code" id="M000209-source">
|
|
539
|
-
<pre>
|
|
540
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_muapi.rb, line 18</span>
|
|
541
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_list_by_status</span> <span class="ruby-identifier">argv</span>
|
|
542
|
-
<span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
543
|
-
<span class="ruby-identifier">status</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'status'</span>]
|
|
544
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">list_by_status</span>(<span class="ruby-identifier">status</span>)
|
|
545
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">response</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>)
|
|
546
|
-
<span class="ruby-identifier">response</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>
|
|
547
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">r</span>
|
|
548
|
-
<span class="ruby-keyword kw">end</span>
|
|
549
|
-
<span class="ruby-keyword kw">else</span>
|
|
550
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
551
|
-
<span class="ruby-keyword kw">end</span>
|
|
552
|
-
<span class="ruby-keyword kw">end</span>
|
|
553
|
-
</pre>
|
|
554
|
-
</div>
|
|
555
391
|
</div>
|
|
556
392
|
</div>
|
|
557
393
|
|
|
558
|
-
<div id="method-
|
|
559
|
-
<a name="
|
|
394
|
+
<div id="method-M000169" class="method-detail">
|
|
395
|
+
<a name="M000169"></a>
|
|
560
396
|
|
|
561
397
|
<div class="method-heading">
|
|
562
|
-
<a href="
|
|
398
|
+
<a href="Cmd_muapi.src/M000169.html" target="Code" class="method-signature"
|
|
399
|
+
onclick="popupCode('Cmd_muapi.src/M000169.html');return false;">
|
|
563
400
|
<span class="method-name">cmd_pause</span><span class="method-args">(argv)</span>
|
|
564
401
|
</a>
|
|
565
402
|
</div>
|
|
@@ -571,28 +408,15 @@ pauses a running analysis. Note that any queued analysis will NOT begin
|
|
|
571
408
|
<pre>
|
|
572
409
|
* argv = command-line arguments, requires a uuid (-u) argument specifying the test
|
|
573
410
|
</pre>
|
|
574
|
-
<p><a class="source-toggle" href="#"
|
|
575
|
-
onclick="toggleCode('M000213-source');return false;">[Source]</a></p>
|
|
576
|
-
<div class="method-source-code" id="M000213-source">
|
|
577
|
-
<pre>
|
|
578
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_muapi.rb, line 69</span>
|
|
579
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_pause</span> <span class="ruby-identifier">argv</span>
|
|
580
|
-
<span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
581
|
-
<span class="ruby-identifier">uuid</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'uuid'</span>]
|
|
582
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">pause</span>(<span class="ruby-identifier">uuid</span>)
|
|
583
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
584
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
585
|
-
<span class="ruby-keyword kw">end</span>
|
|
586
|
-
</pre>
|
|
587
|
-
</div>
|
|
588
411
|
</div>
|
|
589
412
|
</div>
|
|
590
413
|
|
|
591
|
-
<div id="method-
|
|
592
|
-
<a name="
|
|
414
|
+
<div id="method-M000170" class="method-detail">
|
|
415
|
+
<a name="M000170"></a>
|
|
593
416
|
|
|
594
417
|
<div class="method-heading">
|
|
595
|
-
<a href="
|
|
418
|
+
<a href="Cmd_muapi.src/M000170.html" target="Code" class="method-signature"
|
|
419
|
+
onclick="popupCode('Cmd_muapi.src/M000170.html');return false;">
|
|
596
420
|
<span class="method-name">cmd_resume</span><span class="method-args">(argv)</span>
|
|
597
421
|
</a>
|
|
598
422
|
</div>
|
|
@@ -604,28 +428,15 @@ resumes a paused analysis
|
|
|
604
428
|
<pre>
|
|
605
429
|
* argv = command-line arguments, requires a uuid (-u) argument specifying the test
|
|
606
430
|
</pre>
|
|
607
|
-
<p><a class="source-toggle" href="#"
|
|
608
|
-
onclick="toggleCode('M000214-source');return false;">[Source]</a></p>
|
|
609
|
-
<div class="method-source-code" id="M000214-source">
|
|
610
|
-
<pre>
|
|
611
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_muapi.rb, line 79</span>
|
|
612
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_resume</span> <span class="ruby-identifier">argv</span>
|
|
613
|
-
<span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
614
|
-
<span class="ruby-identifier">uuid</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'uuid'</span>]
|
|
615
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">resume</span>(<span class="ruby-identifier">uuid</span>)
|
|
616
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
617
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
618
|
-
<span class="ruby-keyword kw">end</span>
|
|
619
|
-
</pre>
|
|
620
|
-
</div>
|
|
621
431
|
</div>
|
|
622
432
|
</div>
|
|
623
433
|
|
|
624
|
-
<div id="method-
|
|
625
|
-
<a name="
|
|
434
|
+
<div id="method-M000167" class="method-detail">
|
|
435
|
+
<a name="M000167"></a>
|
|
626
436
|
|
|
627
437
|
<div class="method-heading">
|
|
628
|
-
<a href="
|
|
438
|
+
<a href="Cmd_muapi.src/M000167.html" target="Code" class="method-signature"
|
|
439
|
+
onclick="popupCode('Cmd_muapi.src/M000167.html');return false;">
|
|
629
440
|
<span class="method-name">cmd_run</span><span class="method-args">(argv)</span>
|
|
630
441
|
</a>
|
|
631
442
|
</div>
|
|
@@ -638,33 +449,15 @@ runs an analysis, reference is the posted uuid ex: run(1234-1234-1234-1234,
|
|
|
638
449
|
<pre>
|
|
639
450
|
* argv = command-line arguments, requires a uuid (-u) and an optional name such that each successive run of the same uuid yields a new name
|
|
640
451
|
</pre>
|
|
641
|
-
<p><a class="source-toggle" href="#"
|
|
642
|
-
onclick="toggleCode('M000211-source');return false;">[Source]</a></p>
|
|
643
|
-
<div class="method-source-code" id="M000211-source">
|
|
644
|
-
<pre>
|
|
645
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_muapi.rb, line 44</span>
|
|
646
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_run</span> <span class="ruby-identifier">argv</span>
|
|
647
|
-
<span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
648
|
-
<span class="ruby-identifier">uuid</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'uuid'</span>]
|
|
649
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'boolean'</span>].<span class="ruby-identifier">nil?</span>
|
|
650
|
-
<span class="ruby-identifier">rename</span> = <span class="ruby-value str">""</span>
|
|
651
|
-
<span class="ruby-keyword kw">else</span>
|
|
652
|
-
<span class="ruby-identifier">rename</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'boolean'</span>]
|
|
653
|
-
<span class="ruby-keyword kw">end</span>
|
|
654
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">run</span>(<span class="ruby-identifier">uuid</span>, <span class="ruby-identifier">rename</span>)
|
|
655
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
656
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
657
|
-
<span class="ruby-keyword kw">end</span>
|
|
658
|
-
</pre>
|
|
659
|
-
</div>
|
|
660
452
|
</div>
|
|
661
453
|
</div>
|
|
662
454
|
|
|
663
|
-
<div id="method-
|
|
664
|
-
<a name="
|
|
455
|
+
<div id="method-M000166" class="method-detail">
|
|
456
|
+
<a name="M000166"></a>
|
|
665
457
|
|
|
666
458
|
<div class="method-heading">
|
|
667
|
-
<a href="
|
|
459
|
+
<a href="Cmd_muapi.src/M000166.html" target="Code" class="method-signature"
|
|
460
|
+
onclick="popupCode('Cmd_muapi.src/M000166.html');return false;">
|
|
668
461
|
<span class="method-name">cmd_status</span><span class="method-args">(argv)</span>
|
|
669
462
|
</a>
|
|
670
463
|
</div>
|
|
@@ -676,28 +469,15 @@ returns the status of a particular analysis
|
|
|
676
469
|
<pre>
|
|
677
470
|
* argv = command-line argumentsm require a uuid (-u) argument, specifying a test on the Mu
|
|
678
471
|
</pre>
|
|
679
|
-
<p><a class="source-toggle" href="#"
|
|
680
|
-
onclick="toggleCode('M000210-source');return false;">[Source]</a></p>
|
|
681
|
-
<div class="method-source-code" id="M000210-source">
|
|
682
|
-
<pre>
|
|
683
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_muapi.rb, line 33</span>
|
|
684
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_status</span> <span class="ruby-identifier">argv</span>
|
|
685
|
-
<span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
686
|
-
<span class="ruby-identifier">uuid</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'uuid'</span>]
|
|
687
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">status</span>(<span class="ruby-identifier">uuid</span>)
|
|
688
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
689
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
690
|
-
<span class="ruby-keyword kw">end</span>
|
|
691
|
-
</pre>
|
|
692
|
-
</div>
|
|
693
472
|
</div>
|
|
694
473
|
</div>
|
|
695
474
|
|
|
696
|
-
<div id="method-
|
|
697
|
-
<a name="
|
|
475
|
+
<div id="method-M000168" class="method-detail">
|
|
476
|
+
<a name="M000168"></a>
|
|
698
477
|
|
|
699
478
|
<div class="method-heading">
|
|
700
|
-
<a href="
|
|
479
|
+
<a href="Cmd_muapi.src/M000168.html" target="Code" class="method-signature"
|
|
480
|
+
onclick="popupCode('Cmd_muapi.src/M000168.html');return false;">
|
|
701
481
|
<span class="method-name">cmd_stop</span><span class="method-args">(argv)</span>
|
|
702
482
|
</a>
|
|
703
483
|
</div>
|
|
@@ -709,28 +489,15 @@ aborts a running analysis. the next queued analysis will start
|
|
|
709
489
|
<pre>
|
|
710
490
|
* argv = command-line arguments, requires a uuid (-u) argument specifying the test
|
|
711
491
|
</pre>
|
|
712
|
-
<p><a class="source-toggle" href="#"
|
|
713
|
-
onclick="toggleCode('M000212-source');return false;">[Source]</a></p>
|
|
714
|
-
<div class="method-source-code" id="M000212-source">
|
|
715
|
-
<pre>
|
|
716
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_muapi.rb, line 59</span>
|
|
717
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_stop</span> <span class="ruby-identifier">argv</span>
|
|
718
|
-
<span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
719
|
-
<span class="ruby-identifier">uuid</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'uuid'</span>]
|
|
720
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">stop</span>(<span class="ruby-identifier">uuid</span>)
|
|
721
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
722
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
723
|
-
<span class="ruby-keyword kw">end</span>
|
|
724
|
-
</pre>
|
|
725
|
-
</div>
|
|
726
492
|
</div>
|
|
727
493
|
</div>
|
|
728
494
|
|
|
729
|
-
<div id="method-
|
|
730
|
-
<a name="
|
|
495
|
+
<div id="method-M000174" class="method-detail">
|
|
496
|
+
<a name="M000174"></a>
|
|
731
497
|
|
|
732
498
|
<div class="method-heading">
|
|
733
|
-
<a href="
|
|
499
|
+
<a href="Cmd_muapi.src/M000174.html" target="Code" class="method-signature"
|
|
500
|
+
onclick="popupCode('Cmd_muapi.src/M000174.html');return false;">
|
|
734
501
|
<span class="method-name">cmd_types</span><span class="method-args">(argv)</span>
|
|
735
502
|
</a>
|
|
736
503
|
</div>
|
|
@@ -742,214 +509,6 @@ returns the types of templates on the <a href="../../Mu.html">Mu</a>
|
|
|
742
509
|
<pre>
|
|
743
510
|
* argv = command-line arguments
|
|
744
511
|
</pre>
|
|
745
|
-
<p><a class="source-toggle" href="#"
|
|
746
|
-
onclick="toggleCode('M000218-source');return false;">[Source]</a></p>
|
|
747
|
-
<div class="method-source-code" id="M000218-source">
|
|
748
|
-
<pre>
|
|
749
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_muapi.rb, line 125</span>
|
|
750
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_types</span> <span class="ruby-identifier">argv</span>
|
|
751
|
-
<span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
752
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">types</span>
|
|
753
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
754
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
755
|
-
<span class="ruby-keyword kw">end</span>
|
|
756
|
-
</pre>
|
|
757
|
-
</div>
|
|
758
|
-
</div>
|
|
759
|
-
</div>
|
|
760
|
-
|
|
761
|
-
<h3 class="section-bar">Private Instance methods</h3>
|
|
762
|
-
|
|
763
|
-
<div id="method-M000227" class="method-detail">
|
|
764
|
-
<a name="M000227"></a>
|
|
765
|
-
|
|
766
|
-
<div class="method-heading">
|
|
767
|
-
<a href="#M000227" class="method-signature">
|
|
768
|
-
<span class="method-name">help</span><span class="method-args">()</span>
|
|
769
|
-
</a>
|
|
770
|
-
</div>
|
|
771
|
-
|
|
772
|
-
<div class="method-description">
|
|
773
|
-
<p><a class="source-toggle" href="#"
|
|
774
|
-
onclick="toggleCode('M000227-source');return false;">[Source]</a></p>
|
|
775
|
-
<div class="method-source-code" id="M000227-source">
|
|
776
|
-
<pre>
|
|
777
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_muapi.rb, line 307</span>
|
|
778
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">help</span>
|
|
779
|
-
<span class="ruby-identifier">helps</span> = [
|
|
780
|
-
{ <span class="ruby-identifier">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-b'</span>, <span class="ruby-identifier">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--boolean'</span>, <span class="ruby-identifier">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'<string>'</span>, <span class="ruby-identifier">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'boolean arg'</span> },
|
|
781
|
-
{ <span class="ruby-identifier">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-c'</span>, <span class="ruby-identifier">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--command'</span>, <span class="ruby-identifier">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'<string>'</span>, <span class="ruby-identifier">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'e.g. run|get|status'</span> },
|
|
782
|
-
{ <span class="ruby-identifier">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-h'</span>, <span class="ruby-identifier">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--help'</span>, <span class="ruby-identifier">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">''</span>, <span class="ruby-identifier">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'help on command line options'</span> },
|
|
783
|
-
{ <span class="ruby-identifier">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-m'</span>, <span class="ruby-identifier">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--mu_string'</span>, <span class="ruby-identifier">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'<string>'</span>, <span class="ruby-identifier">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'user, password, mu_ip in the form of admin:admin@10.9.8.7'</span> },
|
|
784
|
-
{ <span class="ruby-identifier">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-n'</span>, <span class="ruby-identifier">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--name'</span>, <span class="ruby-identifier">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'<string>'</span>, <span class="ruby-identifier">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'name for filtering'</span> },
|
|
785
|
-
{ <span class="ruby-identifier">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-o'</span>, <span class="ruby-identifier">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--output'</span>, <span class="ruby-identifier">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'<string>'</span>, <span class="ruby-identifier">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'output logging to this file'</span> },
|
|
786
|
-
{ <span class="ruby-identifier">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-p'</span>, <span class="ruby-identifier">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--port'</span>, <span class="ruby-identifier">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'<string>'</span>, <span class="ruby-identifier">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'port name'</span> },
|
|
787
|
-
{ <span class="ruby-identifier">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-s'</span>, <span class="ruby-identifier">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--status'</span>, <span class="ruby-identifier">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'<string>'</span>, <span class="ruby-identifier">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'status, running|finished|aborted|queued|failed'</span> },
|
|
788
|
-
{ <span class="ruby-identifier">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-t'</span>, <span class="ruby-identifier">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--type'</span>, <span class="ruby-identifier">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'<string>'</span>, <span class="ruby-identifier">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'template type'</span> },
|
|
789
|
-
{ <span class="ruby-identifier">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-u'</span>, <span class="ruby-identifier">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--uuid'</span>, <span class="ruby-identifier">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'<string>'</span>, <span class="ruby-identifier">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'template uuid'</span> },
|
|
790
|
-
{ <span class="ruby-identifier">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-v'</span>, <span class="ruby-identifier">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--verbose'</span>, <span class="ruby-identifier">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">''</span>, <span class="ruby-identifier">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'set Logger::DEBUG level'</span> }
|
|
791
|
-
]
|
|
792
|
-
|
|
793
|
-
<span class="ruby-identifier">cmds</span> = [
|
|
794
|
-
<span class="ruby-value str">"mu cmd_muapi:archive -c <command> -u <uuid>"</span>,
|
|
795
|
-
<span class="ruby-value str">"mu cmd_muapi:backup -c <command> [-n <name>]"</span>,
|
|
796
|
-
<span class="ruby-value str">"mu cmd_muapi:capture -c <command> -p <port> [-u <uuid>]"</span>,
|
|
797
|
-
<span class="ruby-value str">"mu cmd_muapi:delete -u <uuid>"</span>,
|
|
798
|
-
<span class="ruby-value str">"mu cmd_muapi:export_by_type_and_name -t <type> -n <name>"</span>,
|
|
799
|
-
<span class="ruby-value str">"mu cmd_muapi:export_by_uuid -u <uuid>"</span>,
|
|
800
|
-
<span class="ruby-value str">"mu cmd_muapi:get_faults -u <uuid>"</span>,
|
|
801
|
-
<span class="ruby-value str">"mu cmd_muapi:get_name -u <uuid>"</span>,
|
|
802
|
-
<span class="ruby-value str">"mu cmd_muapi:help"</span>,
|
|
803
|
-
<span class="ruby-value str">"mu cmd_muapi:list -t <type>"</span>,
|
|
804
|
-
<span class="ruby-value str">"mu cmd_muapi:list_by_status -s <status>"</span>,
|
|
805
|
-
<span class="ruby-value str">"mu cmd_muapi:pause -u <uuid>"</span>,
|
|
806
|
-
<span class="ruby-value str">"mu cmd_muapi:resume -u <uuid>"</span>,
|
|
807
|
-
<span class="ruby-value str">"mu cmd_muapi:run -u <uuid> [-b rename]"</span>,
|
|
808
|
-
<span class="ruby-value str">"mu cmd_muapi:status -u <uuid>"</span>,
|
|
809
|
-
<span class="ruby-value str">"mu cmd_muapi:stop -u <uuid>"</span>,
|
|
810
|
-
<span class="ruby-value str">"mu cmd_muapi:types"</span>,
|
|
811
|
-
]
|
|
812
|
-
|
|
813
|
-
<span class="ruby-identifier">max_long_size</span> = <span class="ruby-identifier">helps</span>.<span class="ruby-identifier">inject</span>(<span class="ruby-value">0</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">memo</span>, <span class="ruby-identifier">obj</span><span class="ruby-operator">|</span> [ <span class="ruby-identifier">obj</span>[<span class="ruby-identifier">:long</span>].<span class="ruby-identifier">size</span>, <span class="ruby-identifier">memo</span> ].<span class="ruby-identifier">max</span> }
|
|
814
|
-
<span class="ruby-identifier">max_value_size</span> = <span class="ruby-identifier">helps</span>.<span class="ruby-identifier">inject</span>(<span class="ruby-value">0</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">memo</span>, <span class="ruby-identifier">obj</span><span class="ruby-operator">|</span> [ <span class="ruby-identifier">obj</span>[<span class="ruby-identifier">:value</span>].<span class="ruby-identifier">size</span>, <span class="ruby-identifier">memo</span> ].<span class="ruby-identifier">max</span> }
|
|
815
|
-
<span class="ruby-identifier">puts</span>
|
|
816
|
-
<span class="ruby-identifier">puts</span> <span class="ruby-value str">"Usage: mu cmd_muapi <options>"</span>
|
|
817
|
-
<span class="ruby-identifier">puts</span>
|
|
818
|
-
<span class="ruby-identifier">helps</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">h</span><span class="ruby-operator">|</span>
|
|
819
|
-
<span class="ruby-identifier">puts</span> <span class="ruby-value str">"%-*s %*s %-*s %s"</span> <span class="ruby-operator">%</span> [<span class="ruby-identifier">max_long_size</span>, <span class="ruby-identifier">h</span>[<span class="ruby-identifier">:long</span>], <span class="ruby-value">2</span>, <span class="ruby-identifier">h</span>[<span class="ruby-identifier">:short</span>], <span class="ruby-identifier">max_value_size</span>, <span class="ruby-identifier">h</span>[<span class="ruby-identifier">:value</span>], <span class="ruby-identifier">h</span>[<span class="ruby-identifier">:help</span>]]
|
|
820
|
-
<span class="ruby-keyword kw">end</span>
|
|
821
|
-
<span class="ruby-identifier">puts</span>
|
|
822
|
-
<span class="ruby-identifier">puts</span> <span class="ruby-value str">"Available Commands"</span>
|
|
823
|
-
<span class="ruby-identifier">puts</span>
|
|
824
|
-
<span class="ruby-identifier">cmds</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span> <span class="ruby-identifier">c</span> <span class="ruby-operator">|</span>
|
|
825
|
-
<span class="ruby-identifier">puts</span> <span class="ruby-identifier">c</span>
|
|
826
|
-
<span class="ruby-keyword kw">end</span>
|
|
827
|
-
<span class="ruby-identifier">puts</span>
|
|
828
|
-
<span class="ruby-keyword kw">end</span>
|
|
829
|
-
</pre>
|
|
830
|
-
</div>
|
|
831
|
-
</div>
|
|
832
|
-
</div>
|
|
833
|
-
|
|
834
|
-
<div id="method-M000226" class="method-detail">
|
|
835
|
-
<a name="M000226"></a>
|
|
836
|
-
|
|
837
|
-
<div class="method-heading">
|
|
838
|
-
<a href="#M000226" class="method-signature">
|
|
839
|
-
<span class="method-name">parse_cli</span><span class="method-args">(argv)</span>
|
|
840
|
-
</a>
|
|
841
|
-
</div>
|
|
842
|
-
|
|
843
|
-
<div class="method-description">
|
|
844
|
-
<p><a class="source-toggle" href="#"
|
|
845
|
-
onclick="toggleCode('M000226-source');return false;">[Source]</a></p>
|
|
846
|
-
<div class="method-source-code" id="M000226-source">
|
|
847
|
-
<pre>
|
|
848
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_muapi.rb, line 235</span>
|
|
849
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parse_cli</span> <span class="ruby-identifier">argv</span>
|
|
850
|
-
<span class="ruby-identifier">args</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
|
|
851
|
-
<span class="ruby-ivar">@hash</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>
|
|
852
|
-
<span class="ruby-keyword kw">while</span> <span class="ruby-keyword kw">not</span> <span class="ruby-identifier">argv</span>.<span class="ruby-identifier">empty?</span>
|
|
853
|
-
<span class="ruby-identifier">args</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">argv</span>.<span class="ruby-identifier">shift</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">argv</span>.<span class="ruby-identifier">first</span>[<span class="ruby-value">0</span>,<span class="ruby-value">1</span>] <span class="ruby-operator">!=</span> <span class="ruby-value str">'-'</span>
|
|
854
|
-
|
|
855
|
-
<span class="ruby-identifier">k</span> = <span class="ruby-identifier">argv</span>.<span class="ruby-identifier">shift</span>
|
|
856
|
-
|
|
857
|
-
<span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-b'</span>, <span class="ruby-value str">'--boolean'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
858
|
-
<span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'boolean'</span>] = <span class="ruby-identifier">shift</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">argv</span>)
|
|
859
|
-
<span class="ruby-keyword kw">next</span>
|
|
860
|
-
<span class="ruby-keyword kw">end</span>
|
|
861
|
-
|
|
862
|
-
<span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-c'</span>, <span class="ruby-value str">'--command'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
863
|
-
<span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'command'</span>] = <span class="ruby-identifier">shift</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">argv</span>)
|
|
864
|
-
<span class="ruby-keyword kw">next</span>
|
|
865
|
-
<span class="ruby-keyword kw">end</span>
|
|
866
|
-
|
|
867
|
-
<span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-h'</span>, <span class="ruby-value str">'--help'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
868
|
-
<span class="ruby-identifier">help</span>
|
|
869
|
-
<span class="ruby-identifier">exit</span>
|
|
870
|
-
<span class="ruby-keyword kw">end</span>
|
|
871
|
-
|
|
872
|
-
<span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-m'</span>, <span class="ruby-value str">'--mu_string'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
873
|
-
<span class="ruby-identifier">mu_string</span> = <span class="ruby-identifier">shift</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">argv</span>)
|
|
874
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">mu_string</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/(.+?):(.+?)@(.*)/</span>
|
|
875
|
-
<span class="ruby-ivar">@@mu_admin_user</span> = <span class="ruby-identifier">$1</span>
|
|
876
|
-
<span class="ruby-ivar">@@mu_admin_pass</span> = <span class="ruby-identifier">$2</span>
|
|
877
|
-
<span class="ruby-ivar">@@mu_ip</span> = <span class="ruby-identifier">$3</span>
|
|
878
|
-
<span class="ruby-keyword kw">end</span>
|
|
879
|
-
<span class="ruby-keyword kw">next</span>
|
|
880
|
-
<span class="ruby-keyword kw">end</span>
|
|
881
|
-
|
|
882
|
-
<span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-n'</span>, <span class="ruby-value str">'--name'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
883
|
-
<span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'name'</span>] = <span class="ruby-identifier">shift</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">argv</span>)
|
|
884
|
-
<span class="ruby-keyword kw">next</span>
|
|
885
|
-
<span class="ruby-keyword kw">end</span>
|
|
886
|
-
|
|
887
|
-
<span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-o'</span>, <span class="ruby-value str">'--output'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
888
|
-
<span class="ruby-identifier">$stdout</span>.<span class="ruby-identifier">reopen</span>(<span class="ruby-identifier">shift</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">argv</span>), <span class="ruby-value str">"w"</span>)
|
|
889
|
-
<span class="ruby-keyword kw">next</span>
|
|
890
|
-
<span class="ruby-keyword kw">end</span>
|
|
891
|
-
|
|
892
|
-
<span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-p'</span>, <span class="ruby-value str">'--port'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
893
|
-
<span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'port'</span>] = <span class="ruby-identifier">shift</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">argv</span>)
|
|
894
|
-
<span class="ruby-keyword kw">next</span>
|
|
895
|
-
<span class="ruby-keyword kw">end</span>
|
|
896
|
-
|
|
897
|
-
<span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-s'</span>, <span class="ruby-value str">'--status'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
898
|
-
<span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'status'</span>] = <span class="ruby-identifier">shift</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">argv</span>)
|
|
899
|
-
<span class="ruby-keyword kw">next</span>
|
|
900
|
-
<span class="ruby-keyword kw">end</span>
|
|
901
|
-
|
|
902
|
-
<span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-t'</span>, <span class="ruby-value str">'--type'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
903
|
-
<span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'type'</span>] = <span class="ruby-identifier">shift</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">argv</span>)
|
|
904
|
-
<span class="ruby-keyword kw">next</span>
|
|
905
|
-
<span class="ruby-keyword kw">end</span>
|
|
906
|
-
|
|
907
|
-
<span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-u'</span>, <span class="ruby-value str">'--uuid'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
908
|
-
<span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'uuid'</span>] = <span class="ruby-identifier">shift</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">argv</span>)
|
|
909
|
-
<span class="ruby-keyword kw">next</span>
|
|
910
|
-
<span class="ruby-keyword kw">end</span>
|
|
911
|
-
|
|
912
|
-
<span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-v'</span>, <span class="ruby-value str">'--verbose'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
913
|
-
<span class="ruby-identifier">$log</span>.<span class="ruby-identifier">level</span> = <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
|
914
|
-
<span class="ruby-keyword kw">next</span>
|
|
915
|
-
<span class="ruby-keyword kw">end</span>
|
|
916
|
-
<span class="ruby-keyword kw">end</span>
|
|
917
|
-
|
|
918
|
-
<span class="ruby-identifier">args</span>
|
|
919
|
-
<span class="ruby-keyword kw">end</span>
|
|
920
|
-
</pre>
|
|
921
|
-
</div>
|
|
922
|
-
</div>
|
|
923
|
-
</div>
|
|
924
|
-
|
|
925
|
-
<div id="method-M000225" class="method-detail">
|
|
926
|
-
<a name="M000225"></a>
|
|
927
|
-
|
|
928
|
-
<div class="method-heading">
|
|
929
|
-
<a href="#M000225" class="method-signature">
|
|
930
|
-
<span class="method-name">setup</span><span class="method-args">(argv)</span>
|
|
931
|
-
</a>
|
|
932
|
-
</div>
|
|
933
|
-
|
|
934
|
-
<div class="method-description">
|
|
935
|
-
<p><a class="source-toggle" href="#"
|
|
936
|
-
onclick="toggleCode('M000225-source');return false;">[Source]</a></p>
|
|
937
|
-
<div class="method-source-code" id="M000225-source">
|
|
938
|
-
<pre>
|
|
939
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_muapi.rb, line 223</span>
|
|
940
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
941
|
-
<span class="ruby-identifier">parse_cli</span> <span class="ruby-identifier">argv</span>
|
|
942
|
-
<span class="ruby-ivar">@host</span> = (<span class="ruby-ivar">@@mu_ip</span>.<span class="ruby-identifier">nil?</span>) <span class="ruby-operator">?</span> <span class="ruby-value str">"127.0.0.1"</span> <span class="ruby-operator">:</span> <span class="ruby-ivar">@@mu_ip</span>
|
|
943
|
-
<span class="ruby-ivar">@username</span> = (<span class="ruby-ivar">@@mu_admin_user</span>.<span class="ruby-identifier">nil?</span>) <span class="ruby-operator">?</span> <span class="ruby-value str">"admin"</span> <span class="ruby-operator">:</span> <span class="ruby-ivar">@@mu_admin_user</span>
|
|
944
|
-
<span class="ruby-ivar">@password</span> = (<span class="ruby-ivar">@@mu_admin_pass</span>.<span class="ruby-identifier">nil?</span>) <span class="ruby-operator">?</span> <span class="ruby-value str">"admin"</span> <span class="ruby-operator">:</span> <span class="ruby-ivar">@@mu_admin_pass</span>
|
|
945
|
-
<span class="ruby-ivar">@docroot</span> = <span class="ruby-value str">"/api/v3"</span>
|
|
946
|
-
<span class="ruby-ivar">@params</span> = <span class="ruby-keyword kw">nil</span>
|
|
947
|
-
<span class="ruby-ivar">@expected_error</span> = <span class="ruby-keyword kw">nil</span>
|
|
948
|
-
<span class="ruby-ivar">@api</span> = <span class="ruby-constant">Muapi</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>)
|
|
949
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-node">"Created API object to :#{@host}"</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
|
950
|
-
<span class="ruby-keyword kw">end</span>
|
|
951
|
-
</pre>
|
|
952
|
-
</div>
|
|
953
512
|
</div>
|
|
954
513
|
</div>
|
|
955
514
|
|