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
data/lib/mu.rb
CHANGED
@@ -49,7 +49,7 @@ class Mu
|
|
49
49
|
version_string = resp.xpath("//versions/platform")[0].content
|
50
50
|
version = version_string[0...version_string.rindex(".")]
|
51
51
|
if @version > version
|
52
|
-
puts "
|
52
|
+
puts "Note. Version mismatch. Mu Gem version (#{@version}) is higher than Mu Platform version (#{version})."
|
53
53
|
end
|
54
54
|
rescue => e
|
55
55
|
puts "#{e}. Check Mu env settings: $MU_IP (#{ENV['MU_IP']}), $MU_ADMIN_USER (#{ENV['MU_ADMIN_USER']}), $MU_ADMIN_PASS (#{ENV['MU_ADMIN_PASS']}) "
|
data/lib/mu/api/netconfig.rb
CHANGED
@@ -109,7 +109,8 @@ class Netconfig
|
|
109
109
|
# use Dns to update host ip addresses.
|
110
110
|
# A new Host is added if not present when the name is provided as argument
|
111
111
|
# * name = the name of the host to resolve
|
112
|
-
def resolve_hosts(name=nil)
|
112
|
+
def resolve_hosts(name=nil)
|
113
|
+
response = ""
|
113
114
|
hosts = Array.new
|
114
115
|
if name.nil?
|
115
116
|
hst = get "hosts"
|
@@ -124,12 +125,13 @@ class Netconfig
|
|
124
125
|
json = get "hosts/#{h}"
|
125
126
|
if json["name"].nil?
|
126
127
|
json = {"name" => h, "v4_addr" => v4_addr}
|
127
|
-
create json, "hosts"
|
128
|
+
response = create json, "hosts"
|
128
129
|
else
|
129
130
|
json["v4_addr"] = v4_addr
|
130
|
-
modify json, "hosts/#{h}"
|
131
|
+
response = modify json, "hosts/#{h}"
|
131
132
|
end
|
132
133
|
end
|
134
|
+
return response
|
133
135
|
end
|
134
136
|
|
135
137
|
# clears a network interface
|
data/lib/mu/api/scale.rb
CHANGED
@@ -2,7 +2,7 @@ class Mu
|
|
2
2
|
class Scale
|
3
3
|
include Helper
|
4
4
|
|
5
|
-
attr_accessor :host, :username, :password, :docroot, :configuration, :config_file, :uuid
|
5
|
+
attr_accessor :host, :username, :password, :docroot, :configuration, :config_file, :uuid, :tracks
|
6
6
|
|
7
7
|
def initialize(host=ENV['MU_IP'], username=ENV['MU_ADMIN_USER'], password=ENV['MU_ADMIN_PASS'])
|
8
8
|
@host = host
|
@@ -10,6 +10,7 @@ class Scale
|
|
10
10
|
@password = password
|
11
11
|
@docroot = "/api/v5/scale/"
|
12
12
|
@uuid = nil
|
13
|
+
@tracks = Array.new # an array of @configuration objects for multi-track execution
|
13
14
|
@http = HttpHelper.new(@host, @username, @password, @docroot)
|
14
15
|
@config_file = (ENV['SCALE_CONFIG_FILE'].nil?) ? "scale.json" : ENV['SCALE_CONFIG_FILE']
|
15
16
|
if File.readable? @config_file
|
@@ -68,6 +69,13 @@ class Scale
|
|
68
69
|
return response
|
69
70
|
end
|
70
71
|
|
72
|
+
# starts a multi-track scale test with the class @tracks object
|
73
|
+
def start_n
|
74
|
+
response = post "start_n", {"request" => @tracks}
|
75
|
+
msg response, Logger::DEBUG
|
76
|
+
return response
|
77
|
+
end
|
78
|
+
|
71
79
|
# verifies the class @configuration object
|
72
80
|
def verify
|
73
81
|
response = post "verify", {"request" => @configuration}
|
@@ -75,6 +83,13 @@ class Scale
|
|
75
83
|
return response
|
76
84
|
end
|
77
85
|
|
86
|
+
# verifies the multi-track class @tracks object
|
87
|
+
def verify_n
|
88
|
+
response = post "verify_n", {"request" => @tracks}
|
89
|
+
msg response, Logger::DEBUG
|
90
|
+
return response
|
91
|
+
end
|
92
|
+
|
78
93
|
# updates a running scale test, as long as the test pattern is 'none'
|
79
94
|
# * params = a json object containing the information to update, such as { "volume" : 100 }
|
80
95
|
def update(params)
|
@@ -286,10 +286,10 @@ private
|
|
286
286
|
|
287
287
|
=begin
|
288
288
|
# add default host, set to host_1 if it exists, unless specified on the command-line
|
289
|
-
if @hash['default_host']
|
289
|
+
if not @hash['default_host']
|
290
290
|
new_host_params[:default_host] = new_host_params[:host_1] unless new_host_params[:host_1].nil?
|
291
291
|
else
|
292
|
-
new_host_params[:default_host] = @hash['default_host']
|
292
|
+
new_host_params[:default_host] = @hash['default_host']
|
293
293
|
end
|
294
294
|
=end
|
295
295
|
|
data/rdoc/classes/Mu.html
CHANGED
@@ -55,109 +55,13 @@
|
|
55
55
|
<tr class="top-aligned-row">
|
56
56
|
<td><strong>In:</strong></td>
|
57
57
|
<td>
|
58
|
-
<a href="../files/lib/mu/api/ddt_rb.html">
|
59
|
-
lib/mu/api/ddt.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
<a href="../files/lib/mu/api/homepage_rb.html">
|
63
|
-
lib/mu/api/homepage.rb
|
64
|
-
</a>
|
65
|
-
<br />
|
66
|
-
<a href="../files/lib/mu/api/muapi_rb.html">
|
67
|
-
lib/mu/api/muapi.rb
|
68
|
-
</a>
|
69
|
-
<br />
|
70
|
-
<a href="../files/lib/mu/api/netconfig_rb.html">
|
71
|
-
lib/mu/api/netconfig.rb
|
72
|
-
</a>
|
73
|
-
<br />
|
74
58
|
<a href="../files/lib/mu/api/scale_rb.html">
|
75
59
|
lib/mu/api/scale.rb
|
76
60
|
</a>
|
77
|
-
<br />
|
78
|
-
<a href="../files/lib/mu/api/system_rb.html">
|
79
|
-
lib/mu/api/system.rb
|
80
|
-
</a>
|
81
|
-
<br />
|
82
|
-
<a href="../files/lib/mu/client_rb.html">
|
83
|
-
lib/mu/client.rb
|
84
|
-
</a>
|
85
|
-
<br />
|
86
|
-
<a href="../files/lib/mu/command/api_rb.html">
|
87
|
-
lib/mu/command/api.rb
|
88
|
-
</a>
|
89
|
-
<br />
|
90
|
-
<a href="../files/lib/mu/command/cmd_appid_rb.html">
|
91
|
-
lib/mu/command/cmd_appid.rb
|
92
|
-
</a>
|
93
|
-
<br />
|
94
|
-
<a href="../files/lib/mu/command/cmd_cli_rb.html">
|
95
|
-
lib/mu/command/cmd_cli.rb
|
96
|
-
</a>
|
97
|
-
<br />
|
98
|
-
<a href="../files/lib/mu/command/cmd_ddt_rb.html">
|
99
|
-
lib/mu/command/cmd_ddt.rb
|
100
|
-
</a>
|
101
|
-
<br />
|
102
|
-
<a href="../files/lib/mu/command/cmd_homepage_rb.html">
|
103
|
-
lib/mu/command/cmd_homepage.rb
|
104
|
-
</a>
|
105
|
-
<br />
|
106
|
-
<a href="../files/lib/mu/command/cmd_muapi_rb.html">
|
107
|
-
lib/mu/command/cmd_muapi.rb
|
108
|
-
</a>
|
109
|
-
<br />
|
110
|
-
<a href="../files/lib/mu/command/cmd_netconfig_rb.html">
|
111
|
-
lib/mu/command/cmd_netconfig.rb
|
112
|
-
</a>
|
113
61
|
<br />
|
114
62
|
<a href="../files/lib/mu/command/cmd_runscale_rb.html">
|
115
63
|
lib/mu/command/cmd_runscale.rb
|
116
64
|
</a>
|
117
|
-
<br />
|
118
|
-
<a href="../files/lib/mu/command/cmd_runscenario_rb.html">
|
119
|
-
lib/mu/command/cmd_runscenario.rb
|
120
|
-
</a>
|
121
|
-
<br />
|
122
|
-
<a href="../files/lib/mu/command/cmd_runverify_rb.html">
|
123
|
-
lib/mu/command/cmd_runverify.rb
|
124
|
-
</a>
|
125
|
-
<br />
|
126
|
-
<a href="../files/lib/mu/command/cmd_scale_rb.html">
|
127
|
-
lib/mu/command/cmd_scale.rb
|
128
|
-
</a>
|
129
|
-
<br />
|
130
|
-
<a href="../files/lib/mu/command/cmd_system_rb.html">
|
131
|
-
lib/mu/command/cmd_system.rb
|
132
|
-
</a>
|
133
|
-
<br />
|
134
|
-
<a href="../files/lib/mu/command/curl_rb.html">
|
135
|
-
lib/mu/command/curl.rb
|
136
|
-
</a>
|
137
|
-
<br />
|
138
|
-
<a href="../files/lib/mu/command/help_rb.html">
|
139
|
-
lib/mu/command/help.rb
|
140
|
-
</a>
|
141
|
-
<br />
|
142
|
-
<a href="../files/lib/mu/command_rb.html">
|
143
|
-
lib/mu/command.rb
|
144
|
-
</a>
|
145
|
-
<br />
|
146
|
-
<a href="../files/lib/mu/curl/error_rb.html">
|
147
|
-
lib/mu/curl/error.rb
|
148
|
-
</a>
|
149
|
-
<br />
|
150
|
-
<a href="../files/lib/mu/curl/verify_rb.html">
|
151
|
-
lib/mu/curl/verify.rb
|
152
|
-
</a>
|
153
|
-
<br />
|
154
|
-
<a href="../files/lib/mu/helper_rb.html">
|
155
|
-
lib/mu/helper.rb
|
156
|
-
</a>
|
157
|
-
<br />
|
158
|
-
<a href="../files/lib/mu/http_helper_rb.html">
|
159
|
-
lib/mu/http_helper.rb
|
160
|
-
</a>
|
161
65
|
<br />
|
162
66
|
<a href="../files/lib/mu_rb.html">
|
163
67
|
lib/mu.rb
|
@@ -169,9 +73,7 @@
|
|
169
73
|
<tr class="top-aligned-row">
|
170
74
|
<td><strong>Parent:</strong></td>
|
171
75
|
<td>
|
172
|
-
<a href="Object.html">
|
173
76
|
Object
|
174
|
-
</a>
|
175
77
|
</td>
|
176
78
|
</tr>
|
177
79
|
</table>
|
@@ -186,7 +88,8 @@
|
|
186
88
|
|
187
89
|
<div id="description">
|
188
90
|
<p>
|
189
|
-
|
91
|
+
<a href="Mu/Command.html">Command</a>-line tools and applications for using
|
92
|
+
the <a href="Mu.html">Mu</a> Dynamics REST Api‘s
|
190
93
|
</p>
|
191
94
|
|
192
95
|
</div>
|
@@ -198,7 +101,8 @@ Api methods to access the <a href="Mu.html">Mu</a> CLI calls
|
|
198
101
|
<h3 class="section-bar">Methods</h3>
|
199
102
|
|
200
103
|
<div class="name-list">
|
201
|
-
<a href="#
|
104
|
+
<a href="#M000002">check_version</a>
|
105
|
+
<a href="#M000001">run</a>
|
202
106
|
</div>
|
203
107
|
</div>
|
204
108
|
|
@@ -212,17 +116,8 @@ Api methods to access the <a href="Mu.html">Mu</a> CLI calls
|
|
212
116
|
<div id="class-list">
|
213
117
|
<h3 class="section-bar">Classes and Modules</h3>
|
214
118
|
|
215
|
-
|
216
|
-
Module <a href="Mu/Helper.html" class="link">Mu::Helper</a><br />
|
217
|
-
Class <a href="Mu/Client.html" class="link">Mu::Client</a><br />
|
218
|
-
Class <a href="Mu/Command.html" class="link">Mu::Command</a><br />
|
219
|
-
Class <a href="Mu/Ddt.html" class="link">Mu::Ddt</a><br />
|
220
|
-
Class <a href="Mu/Homepage.html" class="link">Mu::Homepage</a><br />
|
221
|
-
Class <a href="Mu/HttpHelper.html" class="link">Mu::HttpHelper</a><br />
|
222
|
-
Class <a href="Mu/Muapi.html" class="link">Mu::Muapi</a><br />
|
223
|
-
Class <a href="Mu/Netconfig.html" class="link">Mu::Netconfig</a><br />
|
119
|
+
Class <a href="Mu/Command.html" class="link">Mu::Command</a><br />
|
224
120
|
Class <a href="Mu/Scale.html" class="link">Mu::Scale</a><br />
|
225
|
-
Class <a href="Mu/System.html" class="link">Mu::System</a><br />
|
226
121
|
|
227
122
|
</div>
|
228
123
|
|
@@ -234,7 +129,7 @@ Class <a href="Mu/System.html" class="link">Mu::System</a><br />
|
|
234
129
|
<tr class="top-aligned-row context-row">
|
235
130
|
<td class="context-item-name">Version</td>
|
236
131
|
<td>=</td>
|
237
|
-
<td class="context-item-value"
|
132
|
+
<td class="context-item-value">@version.freeze</td>
|
238
133
|
</tr>
|
239
134
|
</table>
|
240
135
|
</div>
|
@@ -249,44 +144,31 @@ Class <a href="Mu/System.html" class="link">Mu::System</a><br />
|
|
249
144
|
<div id="methods">
|
250
145
|
<h3 class="section-bar">Public Class methods</h3>
|
251
146
|
|
252
|
-
<div id="method-
|
253
|
-
<a name="
|
147
|
+
<div id="method-M000002" class="method-detail">
|
148
|
+
<a name="M000002"></a>
|
149
|
+
|
150
|
+
<div class="method-heading">
|
151
|
+
<a href="Mu.src/M000002.html" target="Code" class="method-signature"
|
152
|
+
onclick="popupCode('Mu.src/M000002.html');return false;">
|
153
|
+
<span class="method-name">check_version</span><span class="method-args">()</span>
|
154
|
+
</a>
|
155
|
+
</div>
|
156
|
+
|
157
|
+
<div class="method-description">
|
158
|
+
</div>
|
159
|
+
</div>
|
160
|
+
|
161
|
+
<div id="method-M000001" class="method-detail">
|
162
|
+
<a name="M000001"></a>
|
254
163
|
|
255
164
|
<div class="method-heading">
|
256
|
-
<a href="
|
165
|
+
<a href="Mu.src/M000001.html" target="Code" class="method-signature"
|
166
|
+
onclick="popupCode('Mu.src/M000001.html');return false;">
|
257
167
|
<span class="method-name">run</span><span class="method-args">(cmd, argv)</span>
|
258
168
|
</a>
|
259
169
|
</div>
|
260
170
|
|
261
171
|
<div class="method-description">
|
262
|
-
<p><a class="source-toggle" href="#"
|
263
|
-
onclick="toggleCode('M000051-source');return false;">[Source]</a></p>
|
264
|
-
<div class="method-source-code" id="M000051-source">
|
265
|
-
<pre>
|
266
|
-
<span class="ruby-comment cmt"># File lib/mu.rb, line 18</span>
|
267
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">run</span> <span class="ruby-identifier">cmd</span>, <span class="ruby-identifier">argv</span>
|
268
|
-
<span class="ruby-identifier">$log</span>.<span class="ruby-identifier">datetime_format</span> = <span class="ruby-value str">"%Y-%m-%d %H:%M:%S"</span>
|
269
|
-
<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">INFO</span>
|
270
|
-
<span class="ruby-identifier">$log</span>.<span class="ruby-identifier">formatter</span> = <span class="ruby-identifier">proc</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">severity</span>, <span class="ruby-identifier">datetime</span>, <span class="ruby-identifier">progname</span>, <span class="ruby-identifier">msg</span><span class="ruby-operator">|</span>
|
271
|
-
<span class="ruby-node">"[#{datetime} #{severity}]: #{msg}\n"</span>
|
272
|
-
}
|
273
|
-
<span class="ruby-identifier">kname</span>, <span class="ruby-identifier">mname</span> = <span class="ruby-identifier">cmd</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">':'</span>, <span class="ruby-value">2</span>)
|
274
|
-
<span class="ruby-identifier">klass</span> = <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">Command</span>.<span class="ruby-identifier">const_get</span> <span class="ruby-identifier">kname</span>.<span class="ruby-identifier">capitalize</span> <span class="ruby-keyword kw">rescue</span> <span class="ruby-keyword kw">nil</span>
|
275
|
-
<span class="ruby-identifier">mname</span> <span class="ruby-operator">||=</span> <span class="ruby-value str">'default'</span>
|
276
|
-
<span class="ruby-identifier">mname</span> = <span class="ruby-node">"cmd_#{mname}"</span>.<span class="ruby-identifier">to_sym</span>
|
277
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">klass</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">klass</span> <span class="ruby-operator"><</span> <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">Command</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">method_defined?</span> <span class="ruby-identifier">mname</span>
|
278
|
-
<span class="ruby-identifier">command</span> = <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">new</span>
|
279
|
-
<span class="ruby-keyword kw">begin</span>
|
280
|
-
<span class="ruby-identifier">command</span>.<span class="ruby-identifier">send</span> <span class="ruby-identifier">mname</span>, <span class="ruby-identifier">argv</span>
|
281
|
-
<span class="ruby-keyword kw">rescue</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">e</span>
|
282
|
-
<span class="ruby-identifier">error</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">message</span>.<span class="ruby-identifier">chomp</span>(<span class="ruby-value str">'.'</span>)
|
283
|
-
<span class="ruby-keyword kw">end</span>
|
284
|
-
<span class="ruby-keyword kw">else</span>
|
285
|
-
<span class="ruby-identifier">error</span> <span class="ruby-node">"Unknown command #{cmd}"</span>
|
286
|
-
<span class="ruby-keyword kw">end</span>
|
287
|
-
<span class="ruby-keyword kw">end</span>
|
288
|
-
</pre>
|
289
|
-
</div>
|
290
172
|
</div>
|
291
173
|
</div>
|
292
174
|
|
@@ -0,0 +1,39 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>run (Mu)</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.rb, line 20</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">run</span> <span class="ruby-identifier">cmd</span>, <span class="ruby-identifier">argv</span>
|
15
|
+
<span class="ruby-identifier">$log</span>.<span class="ruby-identifier">datetime_format</span> = <span class="ruby-value str">"%Y-%m-%d %H:%M:%S"</span>
|
16
|
+
<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">INFO</span>
|
17
|
+
<span class="ruby-identifier">$log</span>.<span class="ruby-identifier">formatter</span> = <span class="ruby-identifier">proc</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">severity</span>, <span class="ruby-identifier">datetime</span>, <span class="ruby-identifier">progname</span>, <span class="ruby-identifier">msg</span><span class="ruby-operator">|</span>
|
18
|
+
<span class="ruby-node">"[#{datetime} #{severity}]: #{msg}\n"</span>
|
19
|
+
}
|
20
|
+
|
21
|
+
<span class="ruby-identifier">check_version</span>
|
22
|
+
|
23
|
+
<span class="ruby-identifier">kname</span>, <span class="ruby-identifier">mname</span> = <span class="ruby-identifier">cmd</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">':'</span>, <span class="ruby-value">2</span>)
|
24
|
+
<span class="ruby-identifier">klass</span> = <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">Command</span>.<span class="ruby-identifier">const_get</span> <span class="ruby-identifier">kname</span>.<span class="ruby-identifier">capitalize</span> <span class="ruby-keyword kw">rescue</span> <span class="ruby-keyword kw">nil</span>
|
25
|
+
<span class="ruby-identifier">mname</span> <span class="ruby-operator">||=</span> <span class="ruby-value str">'default'</span>
|
26
|
+
<span class="ruby-identifier">mname</span> = <span class="ruby-node">"cmd_#{mname}"</span>.<span class="ruby-identifier">to_sym</span>
|
27
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">klass</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">klass</span> <span class="ruby-operator"><</span> <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">Command</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">method_defined?</span> <span class="ruby-identifier">mname</span>
|
28
|
+
<span class="ruby-identifier">command</span> = <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">new</span>
|
29
|
+
<span class="ruby-keyword kw">begin</span>
|
30
|
+
<span class="ruby-identifier">command</span>.<span class="ruby-identifier">send</span> <span class="ruby-identifier">mname</span>, <span class="ruby-identifier">argv</span>
|
31
|
+
<span class="ruby-keyword kw">rescue</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">e</span>
|
32
|
+
<span class="ruby-identifier">error</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">message</span>.<span class="ruby-identifier">chomp</span>(<span class="ruby-value str">'.'</span>)
|
33
|
+
<span class="ruby-keyword kw">end</span>
|
34
|
+
<span class="ruby-keyword kw">else</span>
|
35
|
+
<span class="ruby-identifier">error</span> <span class="ruby-node">"Unknown command #{cmd}"</span>
|
36
|
+
<span class="ruby-keyword kw">end</span>
|
37
|
+
<span class="ruby-keyword kw">end</span></pre>
|
38
|
+
</body>
|
39
|
+
</html>
|
@@ -0,0 +1,29 @@
|
|
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>check_version (Mu)</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.rb, line 45</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">check_version</span>
|
15
|
+
<span class="ruby-keyword kw">begin</span>
|
16
|
+
<span class="ruby-identifier">api</span> = <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">System</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">ENV</span>[<span class="ruby-value str">'MU_IP'</span>], <span class="ruby-constant">ENV</span>[<span class="ruby-value str">'MU_ADMIN_USER'</span>], <span class="ruby-constant">ENV</span>[<span class="ruby-value str">'MU_ADMIN_PASS'</span>])
|
17
|
+
<span class="ruby-identifier">resp</span> = <span class="ruby-constant">Nokogiri</span><span class="ruby-operator">::</span><span class="ruby-constant">XML</span>(<span class="ruby-identifier">api</span>.<span class="ruby-identifier">status</span>)
|
18
|
+
<span class="ruby-identifier">version_string</span> = <span class="ruby-identifier">resp</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">"//versions/platform"</span>)[<span class="ruby-value">0</span>].<span class="ruby-identifier">content</span>
|
19
|
+
<span class="ruby-identifier">version</span> = <span class="ruby-identifier">version_string</span>[<span class="ruby-value">0</span><span class="ruby-operator">...</span><span class="ruby-identifier">version_string</span>.<span class="ruby-identifier">rindex</span>(<span class="ruby-value str">"."</span>)]
|
20
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@version</span> <span class="ruby-operator">></span> <span class="ruby-identifier">version</span>
|
21
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-node">"Note. Version mismatch. Mu Gem version (#{@version}) is higher than Mu Platform version (#{version})."</span>
|
22
|
+
<span class="ruby-keyword kw">end</span>
|
23
|
+
<span class="ruby-keyword kw">rescue</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">e</span>
|
24
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-node">"#{e}. Check Mu env settings: $MU_IP (#{ENV['MU_IP']}), $MU_ADMIN_USER (#{ENV['MU_ADMIN_USER']}), $MU_ADMIN_PASS (#{ENV['MU_ADMIN_PASS']}) "</span>
|
25
|
+
<span class="ruby-keyword kw">end</span>
|
26
|
+
|
27
|
+
<span class="ruby-keyword kw">end</span></pre>
|
28
|
+
</body>
|
29
|
+
</html>
|
@@ -0,0 +1,39 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>run (Mu)</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.rb, line 20</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">run</span> <span class="ruby-identifier">cmd</span>, <span class="ruby-identifier">argv</span>
|
15
|
+
<span class="ruby-identifier">$log</span>.<span class="ruby-identifier">datetime_format</span> = <span class="ruby-value str">"%Y-%m-%d %H:%M:%S"</span>
|
16
|
+
<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">INFO</span>
|
17
|
+
<span class="ruby-identifier">$log</span>.<span class="ruby-identifier">formatter</span> = <span class="ruby-identifier">proc</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">severity</span>, <span class="ruby-identifier">datetime</span>, <span class="ruby-identifier">progname</span>, <span class="ruby-identifier">msg</span><span class="ruby-operator">|</span>
|
18
|
+
<span class="ruby-node">"[#{datetime} #{severity}]: #{msg}\n"</span>
|
19
|
+
}
|
20
|
+
|
21
|
+
<span class="ruby-identifier">check_version</span>
|
22
|
+
|
23
|
+
<span class="ruby-identifier">kname</span>, <span class="ruby-identifier">mname</span> = <span class="ruby-identifier">cmd</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">':'</span>, <span class="ruby-value">2</span>)
|
24
|
+
<span class="ruby-identifier">klass</span> = <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">Command</span>.<span class="ruby-identifier">const_get</span> <span class="ruby-identifier">kname</span>.<span class="ruby-identifier">capitalize</span> <span class="ruby-keyword kw">rescue</span> <span class="ruby-keyword kw">nil</span>
|
25
|
+
<span class="ruby-identifier">mname</span> <span class="ruby-operator">||=</span> <span class="ruby-value str">'default'</span>
|
26
|
+
<span class="ruby-identifier">mname</span> = <span class="ruby-node">"cmd_#{mname}"</span>.<span class="ruby-identifier">to_sym</span>
|
27
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">klass</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">klass</span> <span class="ruby-operator"><</span> <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">Command</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">method_defined?</span> <span class="ruby-identifier">mname</span>
|
28
|
+
<span class="ruby-identifier">command</span> = <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">new</span>
|
29
|
+
<span class="ruby-keyword kw">begin</span>
|
30
|
+
<span class="ruby-identifier">command</span>.<span class="ruby-identifier">send</span> <span class="ruby-identifier">mname</span>, <span class="ruby-identifier">argv</span>
|
31
|
+
<span class="ruby-keyword kw">rescue</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">e</span>
|
32
|
+
<span class="ruby-identifier">error</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">message</span>.<span class="ruby-identifier">chomp</span>(<span class="ruby-value str">'.'</span>)
|
33
|
+
<span class="ruby-keyword kw">end</span>
|
34
|
+
<span class="ruby-keyword kw">else</span>
|
35
|
+
<span class="ruby-identifier">error</span> <span class="ruby-node">"Unknown command #{cmd}"</span>
|
36
|
+
<span class="ruby-keyword kw">end</span>
|
37
|
+
<span class="ruby-keyword kw">end</span></pre>
|
38
|
+
</body>
|
39
|
+
</html>
|
@@ -0,0 +1,29 @@
|
|
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>check_version (Mu)</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.rb, line 45</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">check_version</span>
|
15
|
+
<span class="ruby-keyword kw">begin</span>
|
16
|
+
<span class="ruby-identifier">api</span> = <span class="ruby-constant">Mu</span><span class="ruby-operator">::</span><span class="ruby-constant">System</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">ENV</span>[<span class="ruby-value str">'MU_IP'</span>], <span class="ruby-constant">ENV</span>[<span class="ruby-value str">'MU_ADMIN_USER'</span>], <span class="ruby-constant">ENV</span>[<span class="ruby-value str">'MU_ADMIN_PASS'</span>])
|
17
|
+
<span class="ruby-identifier">resp</span> = <span class="ruby-constant">Nokogiri</span><span class="ruby-operator">::</span><span class="ruby-constant">XML</span>(<span class="ruby-identifier">api</span>.<span class="ruby-identifier">status</span>)
|
18
|
+
<span class="ruby-identifier">version_string</span> = <span class="ruby-identifier">resp</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">"//versions/platform"</span>)[<span class="ruby-value">0</span>].<span class="ruby-identifier">content</span>
|
19
|
+
<span class="ruby-identifier">version</span> = <span class="ruby-identifier">version_string</span>[<span class="ruby-value">0</span><span class="ruby-operator">...</span><span class="ruby-identifier">version_string</span>.<span class="ruby-identifier">rindex</span>(<span class="ruby-value str">"."</span>)]
|
20
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@version</span> <span class="ruby-operator">></span> <span class="ruby-identifier">version</span>
|
21
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-node">"Warning. Version mismatch. Mu Gem version (#{@version}) is higher than Mu Platform version (#{version})"</span>
|
22
|
+
<span class="ruby-keyword kw">end</span>
|
23
|
+
<span class="ruby-keyword kw">rescue</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">e</span>
|
24
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-node">"#{e}. Check Mu env settings: $MU_IP (#{ENV['MU_IP']}), $MU_ADMIN_USER (#{ENV['MU_ADMIN_USER']}), $MU_ADMIN_PASS (#{ENV['MU_ADMIN_PASS']}) "</span>
|
25
|
+
<span class="ruby-keyword kw">end</span>
|
26
|
+
|
27
|
+
<span class="ruby-keyword kw">end</span></pre>
|
28
|
+
</body>
|
29
|
+
</html>
|