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_muapi)</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_muapi.rb, line 12</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,27 @@
|
|
|
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_list_by_status (Mu::Command::Cmd_muapi)</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_muapi.rb, line 18</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_list_by_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">status</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'status'</span>]
|
|
17
|
+
<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>)
|
|
18
|
+
<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>)
|
|
19
|
+
<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>
|
|
20
|
+
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">r</span>
|
|
21
|
+
<span class="ruby-keyword kw">end</span>
|
|
22
|
+
<span class="ruby-keyword kw">else</span>
|
|
23
|
+
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
24
|
+
<span class="ruby-keyword kw">end</span>
|
|
25
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
26
|
+
</body>
|
|
27
|
+
</html>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
<head>
|
|
8
|
+
<title>cmd_status (Mu::Command::Cmd_muapi)</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_muapi.rb, line 33</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">uuid</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'uuid'</span>]
|
|
17
|
+
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">status</span>(<span class="ruby-identifier">uuid</span>)
|
|
18
|
+
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
19
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
20
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
21
|
+
</body>
|
|
22
|
+
</html>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
<head>
|
|
8
|
+
<title>cmd_run (Mu::Command::Cmd_muapi)</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_muapi.rb, line 44</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_run</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">uuid</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'uuid'</span>]
|
|
17
|
+
<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>
|
|
18
|
+
<span class="ruby-identifier">rename</span> = <span class="ruby-value str">""</span>
|
|
19
|
+
<span class="ruby-keyword kw">else</span>
|
|
20
|
+
<span class="ruby-identifier">rename</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'boolean'</span>]
|
|
21
|
+
<span class="ruby-keyword kw">end</span>
|
|
22
|
+
<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>)
|
|
23
|
+
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
24
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
25
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
26
|
+
</body>
|
|
27
|
+
</html>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
<head>
|
|
8
|
+
<title>cmd_stop (Mu::Command::Cmd_muapi)</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_muapi.rb, line 59</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_stop</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">uuid</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'uuid'</span>]
|
|
17
|
+
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">stop</span>(<span class="ruby-identifier">uuid</span>)
|
|
18
|
+
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
19
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
20
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
21
|
+
</body>
|
|
22
|
+
</html>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
<head>
|
|
8
|
+
<title>cmd_pause (Mu::Command::Cmd_muapi)</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_muapi.rb, line 69</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_pause</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">uuid</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'uuid'</span>]
|
|
17
|
+
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">pause</span>(<span class="ruby-identifier">uuid</span>)
|
|
18
|
+
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
19
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
20
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
21
|
+
</body>
|
|
22
|
+
</html>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
<head>
|
|
8
|
+
<title>cmd_resume (Mu::Command::Cmd_muapi)</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_muapi.rb, line 79</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_resume</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">uuid</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'uuid'</span>]
|
|
17
|
+
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">resume</span>(<span class="ruby-identifier">uuid</span>)
|
|
18
|
+
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
19
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
20
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
21
|
+
</body>
|
|
22
|
+
</html>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
<head>
|
|
8
|
+
<title>cmd_delete (Mu::Command::Cmd_muapi)</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_muapi.rb, line 89</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_delete</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">uuid</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'uuid'</span>]
|
|
17
|
+
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">uuid</span>)
|
|
18
|
+
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
19
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
20
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
21
|
+
</body>
|
|
22
|
+
</html>
|
|
@@ -0,0 +1,28 @@
|
|
|
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_get_faults (Mu::Command::Cmd_muapi)</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_muapi.rb, line 99</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_get_faults</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">uuid</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'uuid'</span>]
|
|
17
|
+
<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>)
|
|
18
|
+
<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>)
|
|
19
|
+
<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>
|
|
20
|
+
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">r</span>
|
|
21
|
+
<span class="ruby-keyword kw">end</span>
|
|
22
|
+
<span class="ruby-keyword kw">else</span>
|
|
23
|
+
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
24
|
+
<span class="ruby-keyword kw">end</span>
|
|
25
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
26
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
27
|
+
</body>
|
|
28
|
+
</html>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
<head>
|
|
8
|
+
<title>cmd_get_name (Mu::Command::Cmd_muapi)</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_muapi.rb, line 115</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_get_name</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">uuid</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'uuid'</span>]
|
|
17
|
+
<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>)
|
|
18
|
+
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
19
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
20
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
21
|
+
</body>
|
|
22
|
+
</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_types (Mu::Command::Cmd_muapi)</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_muapi.rb, line 125</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_types</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">types</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,28 @@
|
|
|
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_list (Mu::Command::Cmd_muapi)</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_muapi.rb, line 134</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_list</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">type</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'type'</span>]
|
|
17
|
+
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">list</span>(<span class="ruby-identifier">type</span>)
|
|
18
|
+
<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>)
|
|
19
|
+
<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>
|
|
20
|
+
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">r</span>
|
|
21
|
+
<span class="ruby-keyword kw">end</span>
|
|
22
|
+
<span class="ruby-keyword kw">else</span>
|
|
23
|
+
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
24
|
+
<span class="ruby-keyword kw">end</span>
|
|
25
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
26
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
27
|
+
</body>
|
|
28
|
+
</html>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
<head>
|
|
8
|
+
<title>cmd_export_by_type_and_name (Mu::Command::Cmd_muapi)</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_muapi.rb, line 150</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_export_by_type_and_name</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">type</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'type'</span>]
|
|
17
|
+
<span class="ruby-identifier">name</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'name'</span>]
|
|
18
|
+
<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>)
|
|
19
|
+
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
20
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
21
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
22
|
+
</body>
|
|
23
|
+
</html>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
<head>
|
|
8
|
+
<title>cmd_export_by_uuid (Mu::Command::Cmd_muapi)</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_muapi.rb, line 161</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_export_by_uuid</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">uuid</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'uuid'</span>]
|
|
17
|
+
<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>)
|
|
18
|
+
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
19
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
20
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
21
|
+
</body>
|
|
22
|
+
</html>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
<head>
|
|
8
|
+
<title>cmd_archive (Mu::Command::Cmd_muapi)</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_muapi.rb, line 177</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_archive</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">command</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'command'</span>]
|
|
17
|
+
<span class="ruby-identifier">job_id</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'uuid'</span>]
|
|
18
|
+
<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>)
|
|
19
|
+
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
20
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
21
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
22
|
+
</body>
|
|
23
|
+
</html>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
<head>
|
|
8
|
+
<title>cmd_backup (Mu::Command::Cmd_muapi)</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_muapi.rb, line 194</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_backup</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">command</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'command'</span>]
|
|
17
|
+
<span class="ruby-identifier">name</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'name'</span>]
|
|
18
|
+
<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>)
|
|
19
|
+
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
20
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
21
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
22
|
+
</body>
|
|
23
|
+
</html>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
<head>
|
|
8
|
+
<title>cmd_capture (Mu::Command::Cmd_muapi)</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_muapi.rb, line 211</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_capture</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">command</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'command'</span>]
|
|
17
|
+
<span class="ruby-identifier">port</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'port'</span>]
|
|
18
|
+
<span class="ruby-identifier">job_id</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'uuid'</span>]
|
|
19
|
+
<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>)
|
|
20
|
+
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
21
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
22
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
23
|
+
</body>
|
|
24
|
+
</html>
|
|
@@ -86,21 +86,18 @@
|
|
|
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="#M000207">help</a>
|
|
102
|
-
<a href="#M000206">parse_cli</a>
|
|
103
|
-
<a href="#M000205">setup</a>
|
|
89
|
+
<a href="#M000158">cmd_clear_hosts</a>
|
|
90
|
+
<a href="#M000160">cmd_clear_interface</a>
|
|
91
|
+
<a href="#M000162">cmd_clear_routes</a>
|
|
92
|
+
<a href="#M000161">cmd_clear_vlans</a>
|
|
93
|
+
<a href="#M000155">cmd_create</a>
|
|
94
|
+
<a href="#M000156">cmd_delete</a>
|
|
95
|
+
<a href="#M000153">cmd_get</a>
|
|
96
|
+
<a href="#M000152">cmd_help</a>
|
|
97
|
+
<a href="#M000154">cmd_modify</a>
|
|
98
|
+
<a href="#M000159">cmd_resolve_hosts</a>
|
|
99
|
+
<a href="#M000157">cmd_restore</a>
|
|
100
|
+
<a href="#M000163">cmd_save</a>
|
|
104
101
|
</div>
|
|
105
102
|
</div>
|
|
106
103
|
|
|
@@ -150,11 +147,12 @@
|
|
|
150
147
|
<div id="methods">
|
|
151
148
|
<h3 class="section-bar">Public Instance methods</h3>
|
|
152
149
|
|
|
153
|
-
<div id="method-
|
|
154
|
-
<a name="
|
|
150
|
+
<div id="method-M000158" class="method-detail">
|
|
151
|
+
<a name="M000158"></a>
|
|
155
152
|
|
|
156
153
|
<div class="method-heading">
|
|
157
|
-
<a href="
|
|
154
|
+
<a href="Cmd_netconfig.src/M000158.html" target="Code" class="method-signature"
|
|
155
|
+
onclick="popupCode('Cmd_netconfig.src/M000158.html');return false;">
|
|
158
156
|
<span class="method-name">cmd_clear_hosts</span><span class="method-args">(argv)</span>
|
|
159
157
|
</a>
|
|
160
158
|
</div>
|
|
@@ -166,27 +164,15 @@ clears existing network configuration hosts
|
|
|
166
164
|
<pre>
|
|
167
165
|
* argv = command-line arguments
|
|
168
166
|
</pre>
|
|
169
|
-
<p><a class="source-toggle" href="#"
|
|
170
|
-
onclick="toggleCode('M000199-source');return false;">[Source]</a></p>
|
|
171
|
-
<div class="method-source-code" id="M000199-source">
|
|
172
|
-
<pre>
|
|
173
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_netconfig.rb, line 70</span>
|
|
174
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_clear_hosts</span> <span class="ruby-identifier">argv</span>
|
|
175
|
-
<span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
176
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">clear_hosts</span>
|
|
177
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">pretty_generate</span>(<span class="ruby-identifier">response</span>)
|
|
178
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
179
|
-
<span class="ruby-keyword kw">end</span>
|
|
180
|
-
</pre>
|
|
181
|
-
</div>
|
|
182
167
|
</div>
|
|
183
168
|
</div>
|
|
184
169
|
|
|
185
|
-
<div id="method-
|
|
186
|
-
<a name="
|
|
170
|
+
<div id="method-M000160" class="method-detail">
|
|
171
|
+
<a name="M000160"></a>
|
|
187
172
|
|
|
188
173
|
<div class="method-heading">
|
|
189
|
-
<a href="
|
|
174
|
+
<a href="Cmd_netconfig.src/M000160.html" target="Code" class="method-signature"
|
|
175
|
+
onclick="popupCode('Cmd_netconfig.src/M000160.html');return false;">
|
|
190
176
|
<span class="method-name">cmd_clear_interface</span><span class="method-args">(argv)</span>
|
|
191
177
|
</a>
|
|
192
178
|
</div>
|
|
@@ -198,28 +184,15 @@ clears existing network interfaces
|
|
|
198
184
|
<pre>
|
|
199
185
|
* argv = command-line arguments, require the names of the interfaces to clear (-i name)
|
|
200
186
|
</pre>
|
|
201
|
-
<p><a class="source-toggle" href="#"
|
|
202
|
-
onclick="toggleCode('M000201-source');return false;">[Source]</a></p>
|
|
203
|
-
<div class="method-source-code" id="M000201-source">
|
|
204
|
-
<pre>
|
|
205
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_netconfig.rb, line 89</span>
|
|
206
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_clear_interface</span> <span class="ruby-identifier">argv</span>
|
|
207
|
-
<span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
208
|
-
<span class="ruby-identifier">interface</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'interfaces'</span>]
|
|
209
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">clear_interface</span>(<span class="ruby-identifier">interface</span>)
|
|
210
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
211
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
212
|
-
<span class="ruby-keyword kw">end</span>
|
|
213
|
-
</pre>
|
|
214
|
-
</div>
|
|
215
187
|
</div>
|
|
216
188
|
</div>
|
|
217
189
|
|
|
218
|
-
<div id="method-
|
|
219
|
-
<a name="
|
|
190
|
+
<div id="method-M000162" class="method-detail">
|
|
191
|
+
<a name="M000162"></a>
|
|
220
192
|
|
|
221
193
|
<div class="method-heading">
|
|
222
|
-
<a href="
|
|
194
|
+
<a href="Cmd_netconfig.src/M000162.html" target="Code" class="method-signature"
|
|
195
|
+
onclick="popupCode('Cmd_netconfig.src/M000162.html');return false;">
|
|
223
196
|
<span class="method-name">cmd_clear_routes</span><span class="method-args">(argv)</span>
|
|
224
197
|
</a>
|
|
225
198
|
</div>
|
|
@@ -231,27 +204,15 @@ clears existing network routes
|
|
|
231
204
|
<pre>
|
|
232
205
|
* argv = command-line arguments
|
|
233
206
|
</pre>
|
|
234
|
-
<p><a class="source-toggle" href="#"
|
|
235
|
-
onclick="toggleCode('M000203-source');return false;">[Source]</a></p>
|
|
236
|
-
<div class="method-source-code" id="M000203-source">
|
|
237
|
-
<pre>
|
|
238
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_netconfig.rb, line 108</span>
|
|
239
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_clear_routes</span> <span class="ruby-identifier">argv</span>
|
|
240
|
-
<span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
241
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">clear_routes</span>
|
|
242
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
243
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
244
|
-
<span class="ruby-keyword kw">end</span>
|
|
245
|
-
</pre>
|
|
246
|
-
</div>
|
|
247
207
|
</div>
|
|
248
208
|
</div>
|
|
249
209
|
|
|
250
|
-
<div id="method-
|
|
251
|
-
<a name="
|
|
210
|
+
<div id="method-M000161" class="method-detail">
|
|
211
|
+
<a name="M000161"></a>
|
|
252
212
|
|
|
253
213
|
<div class="method-heading">
|
|
254
|
-
<a href="
|
|
214
|
+
<a href="Cmd_netconfig.src/M000161.html" target="Code" class="method-signature"
|
|
215
|
+
onclick="popupCode('Cmd_netconfig.src/M000161.html');return false;">
|
|
255
216
|
<span class="method-name">cmd_clear_vlans</span><span class="method-args">(argv)</span>
|
|
256
217
|
</a>
|
|
257
218
|
</div>
|
|
@@ -263,27 +224,15 @@ clears existing vlan configurations
|
|
|
263
224
|
<pre>
|
|
264
225
|
* argv = command-line arguments
|
|
265
226
|
</pre>
|
|
266
|
-
<p><a class="source-toggle" href="#"
|
|
267
|
-
onclick="toggleCode('M000202-source');return false;">[Source]</a></p>
|
|
268
|
-
<div class="method-source-code" id="M000202-source">
|
|
269
|
-
<pre>
|
|
270
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_netconfig.rb, line 99</span>
|
|
271
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_clear_vlans</span> <span class="ruby-identifier">argv</span>
|
|
272
|
-
<span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
273
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">clear_vlans</span>
|
|
274
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
275
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
276
|
-
<span class="ruby-keyword kw">end</span>
|
|
277
|
-
</pre>
|
|
278
|
-
</div>
|
|
279
227
|
</div>
|
|
280
228
|
</div>
|
|
281
229
|
|
|
282
|
-
<div id="method-
|
|
283
|
-
<a name="
|
|
230
|
+
<div id="method-M000155" class="method-detail">
|
|
231
|
+
<a name="M000155"></a>
|
|
284
232
|
|
|
285
233
|
<div class="method-heading">
|
|
286
|
-
<a href="
|
|
234
|
+
<a href="Cmd_netconfig.src/M000155.html" target="Code" class="method-signature"
|
|
235
|
+
onclick="popupCode('Cmd_netconfig.src/M000155.html');return false;">
|
|
287
236
|
<span class="method-name">cmd_create</span><span class="method-args">(argv)</span>
|
|
288
237
|
</a>
|
|
289
238
|
</div>
|
|
@@ -295,29 +244,15 @@ creates a new network element
|
|
|
295
244
|
<pre>
|
|
296
245
|
* argv = command-line arguments, requires a json configuration (-j) and the element (-e) to modify, such as 'interfaces', 'hosts' or 'routes'
|
|
297
246
|
</pre>
|
|
298
|
-
<p><a class="source-toggle" href="#"
|
|
299
|
-
onclick="toggleCode('M000196-source');return false;">[Source]</a></p>
|
|
300
|
-
<div class="method-source-code" id="M000196-source">
|
|
301
|
-
<pre>
|
|
302
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_netconfig.rb, line 38</span>
|
|
303
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_create</span> <span class="ruby-identifier">argv</span>
|
|
304
|
-
<span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
305
|
-
<span class="ruby-identifier">json</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'json'</span>]
|
|
306
|
-
<span class="ruby-identifier">e</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'element'</span>]
|
|
307
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">create</span>(<span class="ruby-identifier">json</span>, <span class="ruby-identifier">e</span>)
|
|
308
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
309
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
310
|
-
<span class="ruby-keyword kw">end</span>
|
|
311
|
-
</pre>
|
|
312
|
-
</div>
|
|
313
247
|
</div>
|
|
314
248
|
</div>
|
|
315
249
|
|
|
316
|
-
<div id="method-
|
|
317
|
-
<a name="
|
|
250
|
+
<div id="method-M000156" class="method-detail">
|
|
251
|
+
<a name="M000156"></a>
|
|
318
252
|
|
|
319
253
|
<div class="method-heading">
|
|
320
|
-
<a href="
|
|
254
|
+
<a href="Cmd_netconfig.src/M000156.html" target="Code" class="method-signature"
|
|
255
|
+
onclick="popupCode('Cmd_netconfig.src/M000156.html');return false;">
|
|
321
256
|
<span class="method-name">cmd_delete</span><span class="method-args">(argv)</span>
|
|
322
257
|
</a>
|
|
323
258
|
</div>
|
|
@@ -329,28 +264,15 @@ deletes an existing network element
|
|
|
329
264
|
<pre>
|
|
330
265
|
* argv = command-line arguments, requires a json configuration (-j) and the element (-e) to modify, such as 'interfaces', 'hosts' or 'routes' or 'interfaces/a1' or 'hosts/dell-9'
|
|
331
266
|
</pre>
|
|
332
|
-
<p><a class="source-toggle" href="#"
|
|
333
|
-
onclick="toggleCode('M000197-source');return false;">[Source]</a></p>
|
|
334
|
-
<div class="method-source-code" id="M000197-source">
|
|
335
|
-
<pre>
|
|
336
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_netconfig.rb, line 49</span>
|
|
337
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_delete</span> <span class="ruby-identifier">argv</span>
|
|
338
|
-
<span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
339
|
-
<span class="ruby-identifier">e</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'element'</span>]
|
|
340
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">e</span>)
|
|
341
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
342
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
343
|
-
<span class="ruby-keyword kw">end</span>
|
|
344
|
-
</pre>
|
|
345
|
-
</div>
|
|
346
267
|
</div>
|
|
347
268
|
</div>
|
|
348
269
|
|
|
349
|
-
<div id="method-
|
|
350
|
-
<a name="
|
|
270
|
+
<div id="method-M000153" class="method-detail">
|
|
271
|
+
<a name="M000153"></a>
|
|
351
272
|
|
|
352
273
|
<div class="method-heading">
|
|
353
|
-
<a href="
|
|
274
|
+
<a href="Cmd_netconfig.src/M000153.html" target="Code" class="method-signature"
|
|
275
|
+
onclick="popupCode('Cmd_netconfig.src/M000153.html');return false;">
|
|
354
276
|
<span class="method-name">cmd_get</span><span class="method-args">(argv)</span>
|
|
355
277
|
</a>
|
|
356
278
|
</div>
|
|
@@ -362,54 +284,32 @@ returns a json representation of the specified element
|
|
|
362
284
|
<pre>
|
|
363
285
|
* argv = command-line arguments, requires an element (-e) argument, such as 'interfaces', 'hosts' or 'routes' or 'interfaces/a1' or 'hosts/dell-9'
|
|
364
286
|
</pre>
|
|
365
|
-
<p><a class="source-toggle" href="#"
|
|
366
|
-
onclick="toggleCode('M000194-source');return false;">[Source]</a></p>
|
|
367
|
-
<div class="method-source-code" id="M000194-source">
|
|
368
|
-
<pre>
|
|
369
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_netconfig.rb, line 16</span>
|
|
370
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_get</span> <span class="ruby-identifier">argv</span>
|
|
371
|
-
<span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
372
|
-
<span class="ruby-identifier">e</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'element'</span>]
|
|
373
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">e</span>)
|
|
374
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">pretty_generate</span>(<span class="ruby-identifier">response</span>)
|
|
375
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
376
|
-
<span class="ruby-keyword kw">end</span>
|
|
377
|
-
</pre>
|
|
378
|
-
</div>
|
|
379
287
|
</div>
|
|
380
288
|
</div>
|
|
381
289
|
|
|
382
|
-
<div id="method-
|
|
383
|
-
<a name="
|
|
290
|
+
<div id="method-M000152" class="method-detail">
|
|
291
|
+
<a name="M000152"></a>
|
|
384
292
|
|
|
385
293
|
<div class="method-heading">
|
|
386
|
-
<a href="
|
|
294
|
+
<a href="Cmd_netconfig.src/M000152.html" target="Code" class="method-signature"
|
|
295
|
+
onclick="popupCode('Cmd_netconfig.src/M000152.html');return false;">
|
|
387
296
|
<span class="method-name">cmd_help</span><span class="method-args">(argv)</span>
|
|
388
297
|
</a>
|
|
389
298
|
</div>
|
|
390
299
|
|
|
391
300
|
<div class="method-description">
|
|
392
301
|
<p>
|
|
393
|
-
displays command-line
|
|
302
|
+
displays command-line help
|
|
394
303
|
</p>
|
|
395
|
-
<p><a class="source-toggle" href="#"
|
|
396
|
-
onclick="toggleCode('M000193-source');return false;">[Source]</a></p>
|
|
397
|
-
<div class="method-source-code" id="M000193-source">
|
|
398
|
-
<pre>
|
|
399
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_netconfig.rb, line 10</span>
|
|
400
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_help</span> <span class="ruby-identifier">argv</span>
|
|
401
|
-
<span class="ruby-identifier">help</span>
|
|
402
|
-
<span class="ruby-keyword kw">end</span>
|
|
403
|
-
</pre>
|
|
404
|
-
</div>
|
|
405
304
|
</div>
|
|
406
305
|
</div>
|
|
407
306
|
|
|
408
|
-
<div id="method-
|
|
409
|
-
<a name="
|
|
307
|
+
<div id="method-M000154" class="method-detail">
|
|
308
|
+
<a name="M000154"></a>
|
|
410
309
|
|
|
411
310
|
<div class="method-heading">
|
|
412
|
-
<a href="
|
|
311
|
+
<a href="Cmd_netconfig.src/M000154.html" target="Code" class="method-signature"
|
|
312
|
+
onclick="popupCode('Cmd_netconfig.src/M000154.html');return false;">
|
|
413
313
|
<span class="method-name">cmd_modify</span><span class="method-args">(argv)</span>
|
|
414
314
|
</a>
|
|
415
315
|
</div>
|
|
@@ -421,29 +321,15 @@ modifies a network element
|
|
|
421
321
|
<pre>
|
|
422
322
|
* argv = command-line arguments, requires a json configuration (-j) and the element (-e) to modify, such as 'interfaces', 'hosts' or 'routes' or 'interfaces/a1' or 'hosts/dell-9'
|
|
423
323
|
</pre>
|
|
424
|
-
<p><a class="source-toggle" href="#"
|
|
425
|
-
onclick="toggleCode('M000195-source');return false;">[Source]</a></p>
|
|
426
|
-
<div class="method-source-code" id="M000195-source">
|
|
427
|
-
<pre>
|
|
428
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_netconfig.rb, line 26</span>
|
|
429
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_modify</span> <span class="ruby-identifier">argv</span>
|
|
430
|
-
<span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
431
|
-
<span class="ruby-identifier">json</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'json'</span>]
|
|
432
|
-
<span class="ruby-identifier">e</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'element'</span>]
|
|
433
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">modify</span>(<span class="ruby-identifier">json</span>, <span class="ruby-identifier">e</span>)
|
|
434
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
435
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
436
|
-
<span class="ruby-keyword kw">end</span>
|
|
437
|
-
</pre>
|
|
438
|
-
</div>
|
|
439
324
|
</div>
|
|
440
325
|
</div>
|
|
441
326
|
|
|
442
|
-
<div id="method-
|
|
443
|
-
<a name="
|
|
327
|
+
<div id="method-M000159" class="method-detail">
|
|
328
|
+
<a name="M000159"></a>
|
|
444
329
|
|
|
445
330
|
<div class="method-heading">
|
|
446
|
-
<a href="
|
|
331
|
+
<a href="Cmd_netconfig.src/M000159.html" target="Code" class="method-signature"
|
|
332
|
+
onclick="popupCode('Cmd_netconfig.src/M000159.html');return false;">
|
|
447
333
|
<span class="method-name">cmd_resolve_hosts</span><span class="method-args">(argv)</span>
|
|
448
334
|
</a>
|
|
449
335
|
</div>
|
|
@@ -455,28 +341,15 @@ resolves network configuration hosts
|
|
|
455
341
|
<pre>
|
|
456
342
|
* argv = command-line arguments, requires the name (-n) of the host to resolve (determines its ip address and adds it to the network configuration)
|
|
457
343
|
</pre>
|
|
458
|
-
<p><a class="source-toggle" href="#"
|
|
459
|
-
onclick="toggleCode('M000200-source');return false;">[Source]</a></p>
|
|
460
|
-
<div class="method-source-code" id="M000200-source">
|
|
461
|
-
<pre>
|
|
462
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_netconfig.rb, line 79</span>
|
|
463
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_resolve_hosts</span> <span class="ruby-identifier">argv</span>
|
|
464
|
-
<span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
465
|
-
<span class="ruby-identifier">name</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'name'</span>]
|
|
466
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">resolve_hosts</span>(<span class="ruby-identifier">name</span>)
|
|
467
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
468
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
469
|
-
<span class="ruby-keyword kw">end</span>
|
|
470
|
-
</pre>
|
|
471
|
-
</div>
|
|
472
344
|
</div>
|
|
473
345
|
</div>
|
|
474
346
|
|
|
475
|
-
<div id="method-
|
|
476
|
-
<a name="
|
|
347
|
+
<div id="method-M000157" class="method-detail">
|
|
348
|
+
<a name="M000157"></a>
|
|
477
349
|
|
|
478
350
|
<div class="method-heading">
|
|
479
|
-
<a href="
|
|
351
|
+
<a href="Cmd_netconfig.src/M000157.html" target="Code" class="method-signature"
|
|
352
|
+
onclick="popupCode('Cmd_netconfig.src/M000157.html');return false;">
|
|
480
353
|
<span class="method-name">cmd_restore</span><span class="method-args">(argv)</span>
|
|
481
354
|
</a>
|
|
482
355
|
</div>
|
|
@@ -488,29 +361,15 @@ restores the network configuration from a file
|
|
|
488
361
|
<pre>
|
|
489
362
|
* argv = command-line arguments, requires a path to a json configuration file (-f) , and a boolean (-b true|false) argument indicating whether or not existing elements should be cleared
|
|
490
363
|
</pre>
|
|
491
|
-
<p><a class="source-toggle" href="#"
|
|
492
|
-
onclick="toggleCode('M000198-source');return false;">[Source]</a></p>
|
|
493
|
-
<div class="method-source-code" id="M000198-source">
|
|
494
|
-
<pre>
|
|
495
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_netconfig.rb, line 59</span>
|
|
496
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_restore</span> <span class="ruby-identifier">argv</span>
|
|
497
|
-
<span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
498
|
-
<span class="ruby-identifier">filepath</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'filepath'</span>]
|
|
499
|
-
<span class="ruby-identifier">clear_existing</span> = <span class="ruby-identifier">to_boolean</span>(<span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'boolean'</span>])
|
|
500
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">restore</span>(<span class="ruby-identifier">filepath</span>, <span class="ruby-identifier">clear_existing</span>)
|
|
501
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
502
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
503
|
-
<span class="ruby-keyword kw">end</span>
|
|
504
|
-
</pre>
|
|
505
|
-
</div>
|
|
506
364
|
</div>
|
|
507
365
|
</div>
|
|
508
366
|
|
|
509
|
-
<div id="method-
|
|
510
|
-
<a name="
|
|
367
|
+
<div id="method-M000163" class="method-detail">
|
|
368
|
+
<a name="M000163"></a>
|
|
511
369
|
|
|
512
370
|
<div class="method-heading">
|
|
513
|
-
<a href="
|
|
371
|
+
<a href="Cmd_netconfig.src/M000163.html" target="Code" class="method-signature"
|
|
372
|
+
onclick="popupCode('Cmd_netconfig.src/M000163.html');return false;">
|
|
514
373
|
<span class="method-name">cmd_save</span><span class="method-args">(argv)</span>
|
|
515
374
|
</a>
|
|
516
375
|
</div>
|
|
@@ -522,209 +381,6 @@ saves the network configuration to a file
|
|
|
522
381
|
<pre>
|
|
523
382
|
* argv = command-line arguments, requires the element (-e element, such as 'interfaces', or -e all) to save, and a file name (-f) to save the settings to
|
|
524
383
|
</pre>
|
|
525
|
-
<p><a class="source-toggle" href="#"
|
|
526
|
-
onclick="toggleCode('M000204-source');return false;">[Source]</a></p>
|
|
527
|
-
<div class="method-source-code" id="M000204-source">
|
|
528
|
-
<pre>
|
|
529
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_netconfig.rb, line 118</span>
|
|
530
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_save</span> <span class="ruby-identifier">argv</span>
|
|
531
|
-
<span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
532
|
-
<span class="ruby-identifier">e</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'elements'</span>]
|
|
533
|
-
<span class="ruby-identifier">filepath</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'filepath'</span>] <span class="ruby-operator">||</span> <span class="ruby-value str">"config.json"</span>
|
|
534
|
-
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">save</span>(<span class="ruby-identifier">e</span>, <span class="ruby-identifier">filepath</span>)
|
|
535
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
536
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
537
|
-
<span class="ruby-keyword kw">end</span>
|
|
538
|
-
</pre>
|
|
539
|
-
</div>
|
|
540
|
-
</div>
|
|
541
|
-
</div>
|
|
542
|
-
|
|
543
|
-
<h3 class="section-bar">Private Instance methods</h3>
|
|
544
|
-
|
|
545
|
-
<div id="method-M000207" class="method-detail">
|
|
546
|
-
<a name="M000207"></a>
|
|
547
|
-
|
|
548
|
-
<div class="method-heading">
|
|
549
|
-
<a href="#M000207" class="method-signature">
|
|
550
|
-
<span class="method-name">help</span><span class="method-args">()</span>
|
|
551
|
-
</a>
|
|
552
|
-
</div>
|
|
553
|
-
|
|
554
|
-
<div class="method-description">
|
|
555
|
-
<p><a class="source-toggle" href="#"
|
|
556
|
-
onclick="toggleCode('M000207-source');return false;">[Source]</a></p>
|
|
557
|
-
<div class="method-source-code" id="M000207-source">
|
|
558
|
-
<pre>
|
|
559
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_netconfig.rb, line 212</span>
|
|
560
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">help</span>
|
|
561
|
-
<span class="ruby-identifier">helps</span> = [
|
|
562
|
-
{ <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> },
|
|
563
|
-
{ <span class="ruby-identifier">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-e'</span>, <span class="ruby-identifier">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--element'</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">'http string'</span> },
|
|
564
|
-
{ <span class="ruby-identifier">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-f'</span>, <span class="ruby-identifier">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--filepath'</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">'filepath'</span> },
|
|
565
|
-
{ <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> },
|
|
566
|
-
{ <span class="ruby-identifier">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-i'</span>, <span class="ruby-identifier">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--interfaces'</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">'interfaces/hosts'</span> },
|
|
567
|
-
{ <span class="ruby-identifier">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-j'</span>, <span class="ruby-identifier">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--json'</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">'json object'</span> },
|
|
568
|
-
{ <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> },
|
|
569
|
-
{ <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">'host name'</span> },
|
|
570
|
-
{ <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> },
|
|
571
|
-
{ <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> }
|
|
572
|
-
]
|
|
573
|
-
|
|
574
|
-
<span class="ruby-identifier">cmds</span> = [
|
|
575
|
-
<span class="ruby-value str">"mu cmd_netconfig:clear_hosts"</span>,
|
|
576
|
-
<span class="ruby-value str">"mu cmd_netconfig:clear_interfaces -i <interfaces>"</span>,
|
|
577
|
-
<span class="ruby-value str">"mu cmd_netconfig:clear_routes"</span>,
|
|
578
|
-
<span class="ruby-value str">"mu cmd_netconfig:clear_vlans"</span>,
|
|
579
|
-
<span class="ruby-value str">"mu cmd_netconfig:create -j <json> -e <element>"</span>,
|
|
580
|
-
<span class="ruby-value str">"mu cmd_netconfig:delete -e <element>"</span>,
|
|
581
|
-
<span class="ruby-value str">"mu cmd_netconfig:get -e <element>"</span>,
|
|
582
|
-
<span class="ruby-value str">"mu cmd_netconfig:help"</span>,
|
|
583
|
-
<span class="ruby-value str">"mu cmd_netconfig:modify -j <json> -e <element>"</span>,
|
|
584
|
-
<span class="ruby-value str">"mu cmd_netconfig:resolve_hosts -n <name>"</span>,
|
|
585
|
-
<span class="ruby-value str">"mu cmd_netconfig:restore -f <filepath> [-b <clear_existing>]"</span>,
|
|
586
|
-
<span class="ruby-value str">"mu cmd_netconfig:save -e <element> -f <filepath>"</span>,
|
|
587
|
-
]
|
|
588
|
-
|
|
589
|
-
<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> }
|
|
590
|
-
<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> }
|
|
591
|
-
<span class="ruby-identifier">puts</span>
|
|
592
|
-
<span class="ruby-identifier">puts</span> <span class="ruby-value str">"Usage: mu cmd_netconfig <options>"</span>
|
|
593
|
-
<span class="ruby-identifier">puts</span>
|
|
594
|
-
<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>
|
|
595
|
-
<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>]]
|
|
596
|
-
<span class="ruby-keyword kw">end</span>
|
|
597
|
-
<span class="ruby-identifier">puts</span>
|
|
598
|
-
<span class="ruby-identifier">puts</span> <span class="ruby-value str">"Available Commands"</span>
|
|
599
|
-
<span class="ruby-identifier">puts</span>
|
|
600
|
-
<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>
|
|
601
|
-
<span class="ruby-identifier">puts</span> <span class="ruby-identifier">c</span>
|
|
602
|
-
<span class="ruby-keyword kw">end</span>
|
|
603
|
-
<span class="ruby-identifier">puts</span>
|
|
604
|
-
<span class="ruby-keyword kw">end</span>
|
|
605
|
-
</pre>
|
|
606
|
-
</div>
|
|
607
|
-
</div>
|
|
608
|
-
</div>
|
|
609
|
-
|
|
610
|
-
<div id="method-M000206" class="method-detail">
|
|
611
|
-
<a name="M000206"></a>
|
|
612
|
-
|
|
613
|
-
<div class="method-heading">
|
|
614
|
-
<a href="#M000206" class="method-signature">
|
|
615
|
-
<span class="method-name">parse_cli</span><span class="method-args">(argv)</span>
|
|
616
|
-
</a>
|
|
617
|
-
</div>
|
|
618
|
-
|
|
619
|
-
<div class="method-description">
|
|
620
|
-
<p><a class="source-toggle" href="#"
|
|
621
|
-
onclick="toggleCode('M000206-source');return false;">[Source]</a></p>
|
|
622
|
-
<div class="method-source-code" id="M000206-source">
|
|
623
|
-
<pre>
|
|
624
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_netconfig.rb, line 140</span>
|
|
625
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parse_cli</span> <span class="ruby-identifier">argv</span>
|
|
626
|
-
<span class="ruby-identifier">args</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
|
|
627
|
-
<span class="ruby-ivar">@hash</span> = {}
|
|
628
|
-
<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>
|
|
629
|
-
<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>
|
|
630
|
-
|
|
631
|
-
<span class="ruby-identifier">k</span> = <span class="ruby-identifier">argv</span>.<span class="ruby-identifier">shift</span>
|
|
632
|
-
|
|
633
|
-
<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>
|
|
634
|
-
<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>)
|
|
635
|
-
<span class="ruby-keyword kw">next</span>
|
|
636
|
-
<span class="ruby-keyword kw">end</span>
|
|
637
|
-
|
|
638
|
-
<span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-e'</span>, <span class="ruby-value str">'--element'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
639
|
-
<span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'element'</span>] = <span class="ruby-identifier">shift</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">argv</span>)
|
|
640
|
-
<span class="ruby-keyword kw">next</span>
|
|
641
|
-
<span class="ruby-keyword kw">end</span>
|
|
642
|
-
|
|
643
|
-
<span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-f'</span>, <span class="ruby-value str">'--filepath'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
644
|
-
<span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'filepath'</span>] = <span class="ruby-identifier">shift</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">argv</span>)
|
|
645
|
-
<span class="ruby-keyword kw">next</span>
|
|
646
|
-
<span class="ruby-keyword kw">end</span>
|
|
647
|
-
|
|
648
|
-
<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>
|
|
649
|
-
<span class="ruby-identifier">help</span>
|
|
650
|
-
<span class="ruby-identifier">exit</span>
|
|
651
|
-
<span class="ruby-keyword kw">end</span>
|
|
652
|
-
|
|
653
|
-
<span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-i'</span>, <span class="ruby-value str">'--interfaces'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
654
|
-
<span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'interfaces'</span>] = <span class="ruby-identifier">shift</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">argv</span>)
|
|
655
|
-
<span class="ruby-keyword kw">next</span>
|
|
656
|
-
<span class="ruby-keyword kw">end</span>
|
|
657
|
-
|
|
658
|
-
<span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-j'</span>, <span class="ruby-value str">'--json'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
659
|
-
<span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'json'</span>] = <span class="ruby-identifier">shift</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">argv</span>)
|
|
660
|
-
<span class="ruby-keyword kw">next</span>
|
|
661
|
-
<span class="ruby-keyword kw">end</span>
|
|
662
|
-
|
|
663
|
-
<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>
|
|
664
|
-
<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>)
|
|
665
|
-
<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>
|
|
666
|
-
<span class="ruby-ivar">@@mu_admin_user</span> = <span class="ruby-identifier">$1</span>
|
|
667
|
-
<span class="ruby-ivar">@@mu_admin_pass</span> = <span class="ruby-identifier">$2</span>
|
|
668
|
-
<span class="ruby-ivar">@@mu_ip</span> = <span class="ruby-identifier">$3</span>
|
|
669
|
-
<span class="ruby-keyword kw">end</span>
|
|
670
|
-
<span class="ruby-keyword kw">next</span>
|
|
671
|
-
<span class="ruby-keyword kw">end</span>
|
|
672
|
-
|
|
673
|
-
<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>
|
|
674
|
-
<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>)
|
|
675
|
-
<span class="ruby-keyword kw">next</span>
|
|
676
|
-
<span class="ruby-keyword kw">end</span>
|
|
677
|
-
|
|
678
|
-
<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>
|
|
679
|
-
<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>)
|
|
680
|
-
<span class="ruby-keyword kw">next</span>
|
|
681
|
-
<span class="ruby-keyword kw">end</span>
|
|
682
|
-
|
|
683
|
-
<span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-r'</span>, <span class="ruby-value str">'--routes'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
684
|
-
<span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'routes'</span>] = <span class="ruby-identifier">shift</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">argv</span>)
|
|
685
|
-
<span class="ruby-keyword kw">next</span>
|
|
686
|
-
<span class="ruby-keyword kw">end</span>
|
|
687
|
-
|
|
688
|
-
<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>
|
|
689
|
-
<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>
|
|
690
|
-
<span class="ruby-keyword kw">next</span>
|
|
691
|
-
<span class="ruby-keyword kw">end</span>
|
|
692
|
-
<span class="ruby-keyword kw">end</span>
|
|
693
|
-
|
|
694
|
-
<span class="ruby-identifier">args</span>
|
|
695
|
-
<span class="ruby-keyword kw">end</span>
|
|
696
|
-
</pre>
|
|
697
|
-
</div>
|
|
698
|
-
</div>
|
|
699
|
-
</div>
|
|
700
|
-
|
|
701
|
-
<div id="method-M000205" class="method-detail">
|
|
702
|
-
<a name="M000205"></a>
|
|
703
|
-
|
|
704
|
-
<div class="method-heading">
|
|
705
|
-
<a href="#M000205" class="method-signature">
|
|
706
|
-
<span class="method-name">setup</span><span class="method-args">(argv)</span>
|
|
707
|
-
</a>
|
|
708
|
-
</div>
|
|
709
|
-
|
|
710
|
-
<div class="method-description">
|
|
711
|
-
<p><a class="source-toggle" href="#"
|
|
712
|
-
onclick="toggleCode('M000205-source');return false;">[Source]</a></p>
|
|
713
|
-
<div class="method-source-code" id="M000205-source">
|
|
714
|
-
<pre>
|
|
715
|
-
<span class="ruby-comment cmt"># File lib/mu/command/cmd_netconfig.rb, line 129</span>
|
|
716
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
717
|
-
<span class="ruby-identifier">parse_cli</span> <span class="ruby-identifier">argv</span>
|
|
718
|
-
<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>
|
|
719
|
-
<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>
|
|
720
|
-
<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>
|
|
721
|
-
<span class="ruby-ivar">@response</span> = <span class="ruby-keyword kw">nil</span>
|
|
722
|
-
<span class="ruby-ivar">@element</span> = <span class="ruby-value str">""</span> <span class="ruby-comment cmt"># sticky variable will hold a default element, the last element specified</span>
|
|
723
|
-
<span class="ruby-ivar">@api</span> = <span class="ruby-constant">Netconfig</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>)
|
|
724
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-node">"Created Netconfig API object to :#{@host}"</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
|
725
|
-
<span class="ruby-keyword kw">end</span>
|
|
726
|
-
</pre>
|
|
727
|
-
</div>
|
|
728
384
|
</div>
|
|
729
385
|
</div>
|
|
730
386
|
|