mu 5.7.2.6 → 5.7.2.7
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 +0 -1
- data/lib/mu/api/scale.rb +1 -1
- data/rdoc/Gemfile.html +194 -0
- data/rdoc/LICENSE_txt.html +201 -0
- data/rdoc/Mu.html +478 -0
- data/rdoc/Mu/Client.html +461 -0
- data/rdoc/Mu/Command.html +338 -0
- data/rdoc/Mu/Command/API.html +844 -0
- data/rdoc/Mu/Command/Cmd_appid.html +1342 -0
- data/rdoc/Mu/Command/Cmd_cli.html +800 -0
- data/rdoc/Mu/Command/Cmd_ddt.html +1612 -0
- data/rdoc/Mu/Command/Cmd_homepage.html +762 -0
- data/rdoc/Mu/Command/Cmd_muapi.html +1363 -0
- data/rdoc/Mu/Command/Cmd_netconfig.html +1077 -0
- data/rdoc/Mu/Command/Cmd_runscale.html +1441 -0
- data/rdoc/Mu/Command/Cmd_runscenario.html +787 -0
- data/rdoc/Mu/Command/Cmd_runverify.html +893 -0
- data/rdoc/Mu/Command/Cmd_scale.html +1323 -0
- data/rdoc/Mu/Command/Cmd_system.html +677 -0
- data/rdoc/Mu/Command/Curl.html +751 -0
- data/rdoc/Mu/Command/Help.html +305 -0
- data/rdoc/Mu/Curl.html +243 -0
- data/rdoc/Mu/Curl/Error.html +304 -0
- data/rdoc/Mu/Curl/Error/Authorize.html +355 -0
- data/rdoc/Mu/Curl/Error/Connect.html +286 -0
- data/rdoc/Mu/Curl/Error/DNS.html +236 -0
- data/rdoc/Mu/Curl/Error/Region.html +307 -0
- data/rdoc/Mu/Curl/Error/Status.html +286 -0
- data/rdoc/Mu/Curl/Error/Timeout.html +286 -0
- data/rdoc/Mu/Curl/Verify.html +472 -0
- data/rdoc/Mu/Curl/Verify/Request.html +424 -0
- data/rdoc/Mu/Curl/Verify/Response.html +372 -0
- data/rdoc/Mu/Curl/Verify/Result.html +373 -0
- data/rdoc/Mu/Ddt.html +1347 -0
- data/rdoc/Mu/Helper.html +517 -0
- data/rdoc/Mu/Homepage.html +719 -0
- data/rdoc/Mu/HttpHelper.html +890 -0
- data/rdoc/Mu/Muapi.html +1226 -0
- data/rdoc/Mu/Netconfig.html +1178 -0
- data/rdoc/Mu/Scale.html +1359 -0
- data/rdoc/Mu/System.html +504 -0
- data/rdoc/Object.html +285 -0
- data/rdoc/README_rdoc.html +892 -0
- data/rdoc/Rakefile.html +257 -0
- data/rdoc/TCTestMu.html +2583 -0
- data/rdoc/Test.html +235 -0
- data/rdoc/Test/Unit.html +235 -0
- data/rdoc/Test/Unit/TestCase.html +236 -0
- data/rdoc/Test/helper_rb.html +62 -0
- data/rdoc/Test/tc_test_mu_rb.html +60 -0
- data/rdoc/VERSION.html +179 -0
- data/rdoc/bin/mu.html +54 -0
- data/rdoc/created.rid +36 -1
- data/rdoc/images/brick.png +0 -0
- data/rdoc/images/brick_link.png +0 -0
- data/rdoc/images/bug.png +0 -0
- data/rdoc/images/bullet_black.png +0 -0
- data/rdoc/images/bullet_toggle_minus.png +0 -0
- data/rdoc/images/bullet_toggle_plus.png +0 -0
- data/rdoc/images/date.png +0 -0
- data/rdoc/images/find.png +0 -0
- data/rdoc/images/loadingAnimation.gif +0 -0
- data/rdoc/images/macFFBgHack.png +0 -0
- data/rdoc/images/package.png +0 -0
- data/rdoc/images/page_green.png +0 -0
- data/rdoc/images/page_white_text.png +0 -0
- data/rdoc/images/page_white_width.png +0 -0
- data/rdoc/images/plugin.png +0 -0
- data/rdoc/images/ruby.png +0 -0
- data/rdoc/images/tag_green.png +0 -0
- data/rdoc/images/wrench.png +0 -0
- data/rdoc/images/wrench_orange.png +0 -0
- data/rdoc/images/zoom.png +0 -0
- data/rdoc/index.html +880 -20
- data/rdoc/js/darkfish.js +116 -0
- data/rdoc/js/jquery.js +32 -0
- data/rdoc/js/quicksearch.js +114 -0
- data/rdoc/js/thickbox-compressed.js +10 -0
- data/rdoc/lib/mu/api/ddt_rb.html +52 -0
- data/rdoc/lib/mu/api/homepage_rb.html +52 -0
- data/rdoc/lib/mu/api/muapi_rb.html +52 -0
- data/rdoc/lib/mu/api/netconfig_rb.html +52 -0
- data/rdoc/lib/mu/api/scale_rb.html +52 -0
- data/rdoc/lib/mu/api/system_rb.html +52 -0
- data/rdoc/lib/mu/client_rb.html +52 -0
- data/rdoc/lib/mu/command/api_rb.html +52 -0
- data/rdoc/lib/mu/command/cmd_appid_rb.html +62 -0
- data/rdoc/lib/mu/command/cmd_cli_rb.html +55 -0
- data/rdoc/lib/mu/command/cmd_ddt_rb.html +60 -0
- data/rdoc/lib/mu/command/cmd_homepage_rb.html +57 -0
- data/rdoc/lib/mu/command/cmd_muapi_rb.html +59 -0
- data/rdoc/lib/mu/command/cmd_netconfig_rb.html +58 -0
- data/rdoc/lib/mu/command/cmd_runscale_rb.html +62 -0
- data/rdoc/lib/mu/command/cmd_runscenario_rb.html +57 -0
- data/rdoc/lib/mu/command/cmd_runverify_rb.html +61 -0
- data/rdoc/lib/mu/command/cmd_scale_rb.html +58 -0
- data/rdoc/lib/mu/command/cmd_system_rb.html +59 -0
- data/rdoc/lib/mu/command/curl_rb.html +52 -0
- data/rdoc/lib/mu/command/help_rb.html +52 -0
- data/rdoc/lib/mu/command_rb.html +55 -0
- data/rdoc/lib/mu/curl/error_rb.html +52 -0
- data/rdoc/lib/mu/curl/verify_rb.html +52 -0
- data/rdoc/lib/mu/helper_rb.html +52 -0
- data/rdoc/lib/mu/http_helper_rb.html +52 -0
- data/rdoc/lib/mu_rb.html +80 -0
- data/rdoc/rdoc.css +706 -0
- data/test/data/app_id_stats.csv +1 -1
- data/test/data/app_id_status.json +117 -117
- data/test/data/{scale_configuration.json → scale.json} +11 -11
- metadata +142 -407
- data/rdoc/classes/Mu.src/M000001.html +0 -39
- data/rdoc/classes/Mu.src/M000002.html +0 -29
- data/rdoc/classes/Mu.src/M000053.html +0 -39
- data/rdoc/classes/Mu.src/M000054.html +0 -29
- data/rdoc/classes/Mu/Client.src/M000212.html +0 -24
- data/rdoc/classes/Mu/Client.src/M000213.html +0 -18
- data/rdoc/classes/Mu/Client.src/M000214.html +0 -18
- data/rdoc/classes/Mu/Client.src/M000215.html +0 -18
- data/rdoc/classes/Mu/Client.src/M000216.html +0 -18
- data/rdoc/classes/Mu/Command/API.src/M000130.html +0 -22
- data/rdoc/classes/Mu/Command/API.src/M000131.html +0 -19
- data/rdoc/classes/Mu/Command/API.src/M000132.html +0 -19
- data/rdoc/classes/Mu/Command/API.src/M000133.html +0 -19
- data/rdoc/classes/Mu/Command/API.src/M000134.html +0 -18
- data/rdoc/classes/Mu/Command/API.src/M000135.html +0 -17
- data/rdoc/classes/Mu/Command/API.src/M000136.html +0 -23
- data/rdoc/classes/Mu/Command/API.src/M000137.html +0 -18
- data/rdoc/classes/Mu/Command/API.src/M000138.html +0 -29
- data/rdoc/classes/Mu/Command/API.src/M000139.html +0 -18
- data/rdoc/classes/Mu/Command/API.src/M000140.html +0 -22
- data/rdoc/classes/Mu/Command/API.src/M000141.html +0 -19
- data/rdoc/classes/Mu/Command/API.src/M000142.html +0 -18
- data/rdoc/classes/Mu/Command/API.src/M000143.html +0 -18
- data/rdoc/classes/Mu/Command/API.src/M000144.html +0 -17
- data/rdoc/classes/Mu/Command/Cmd_appid.src/M000053.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_appid.src/M000054.html +0 -30
- data/rdoc/classes/Mu/Command/Cmd_appid.src/M000055.html +0 -39
- data/rdoc/classes/Mu/Command/Cmd_appid.src/M000056.html +0 -50
- data/rdoc/classes/Mu/Command/Cmd_appid.src/M000145.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_appid.src/M000146.html +0 -30
- data/rdoc/classes/Mu/Command/Cmd_appid.src/M000147.html +0 -39
- data/rdoc/classes/Mu/Command/Cmd_appid.src/M000148.html +0 -50
- data/rdoc/classes/Mu/Command/Cmd_cli.src/M000200.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_cli.src/M000201.html +0 -19
- data/rdoc/classes/Mu/Command/Cmd_cli.src/M000202.html +0 -19
- data/rdoc/classes/Mu/Command/Cmd_cli.src/M000203.html +0 -19
- data/rdoc/classes/Mu/Command/Cmd_cli.src/M000204.html +0 -20
- data/rdoc/classes/Mu/Command/Cmd_cli.src/M000205.html +0 -20
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000101.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000102.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000103.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000104.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000105.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000106.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000107.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000108.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000109.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000110.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000111.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000112.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000113.html +0 -43
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000114.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000115.html +0 -38
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000116.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000117.html +0 -38
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000118.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000119.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000120.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000121.html +0 -24
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000122.html +0 -24
- data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000206.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000207.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000208.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000209.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000210.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000211.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000164.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000165.html +0 -27
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000166.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000167.html +0 -27
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000168.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000169.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000170.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000171.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000172.html +0 -28
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000173.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000174.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000175.html +0 -28
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000176.html +0 -23
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000177.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000178.html +0 -23
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000179.html +0 -23
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000180.html +0 -24
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000060.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000061.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000062.html +0 -23
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000063.html +0 -23
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000064.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000065.html +0 -23
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000066.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000067.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000068.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000069.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000070.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000071.html +0 -23
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000152.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000153.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000154.html +0 -23
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000155.html +0 -23
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000156.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000157.html +0 -23
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000158.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000159.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000160.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000161.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000162.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000163.html +0 -23
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000003.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000004.html +0 -51
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000005.html +0 -50
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000057.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000058.html +0 -51
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000059.html +0 -50
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000149.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000150.html +0 -51
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000151.html +0 -50
- data/rdoc/classes/Mu/Command/Cmd_runscenario.src/M000128.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_runscenario.src/M000129.html +0 -144
- data/rdoc/classes/Mu/Command/Cmd_runverify.src/M000198.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_runverify.src/M000199.html +0 -200
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000181.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000182.html +0 -23
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000183.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000184.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000185.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000186.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000187.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000188.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000189.html +0 -23
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000190.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000191.html +0 -29
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000192.html +0 -27
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000193.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000194.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000195.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000196.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000197.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_system.src/M000097.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_system.src/M000098.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_system.src/M000099.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_system.src/M000100.html +0 -21
- data/rdoc/classes/Mu/Command/Curl.src/M000124.html +0 -18
- data/rdoc/classes/Mu/Command/Curl.src/M000125.html +0 -21
- data/rdoc/classes/Mu/Command/Curl.src/M000126.html +0 -26
- data/rdoc/classes/Mu/Command/Help.src/M000123.html +0 -38
- data/rdoc/classes/Mu/Curl/Error.src/M000063.html +0 -18
- data/rdoc/classes/Mu/Curl/Error/Authorize.src/M000065.html +0 -22
- data/rdoc/classes/Mu/Curl/Error/Connect.src/M000068.html +0 -19
- data/rdoc/classes/Mu/Curl/Error/Region.src/M000066.html +0 -19
- data/rdoc/classes/Mu/Curl/Error/Status.src/M000064.html +0 -19
- data/rdoc/classes/Mu/Curl/Error/Timeout.src/M000067.html +0 -19
- data/rdoc/classes/Mu/Curl/Verify.src/M000055.html +0 -29
- data/rdoc/classes/Mu/Curl/Verify.src/M000056.html +0 -18
- data/rdoc/classes/Mu/Curl/Verify.src/M000057.html +0 -46
- data/rdoc/classes/Mu/Curl/Verify.src/M000058.html +0 -18
- data/rdoc/classes/Mu/Curl/Verify/Request.src/M000061.html +0 -35
- data/rdoc/classes/Mu/Curl/Verify/Request.src/M000062.html +0 -23
- data/rdoc/classes/Mu/Curl/Verify/Response.src/M000059.html +0 -24
- data/rdoc/classes/Mu/Curl/Verify/Result.src/M000060.html +0 -25
- data/rdoc/classes/Mu/Ddt.src/M000242.html +0 -24
- data/rdoc/classes/Mu/Ddt.src/M000243.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000244.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000245.html +0 -23
- data/rdoc/classes/Mu/Ddt.src/M000246.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000247.html +0 -32
- data/rdoc/classes/Mu/Ddt.src/M000248.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000249.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000250.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000251.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000252.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000253.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000254.html +0 -25
- data/rdoc/classes/Mu/Ddt.src/M000255.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000256.html +0 -24
- data/rdoc/classes/Mu/Ddt.src/M000257.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000258.html +0 -24
- data/rdoc/classes/Mu/Ddt.src/M000259.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000260.html +0 -35
- data/rdoc/classes/Mu/Ddt.src/M000261.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000262.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000263.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000264.html +0 -22
- data/rdoc/classes/Mu/Homepage.src/M000236.html +0 -25
- data/rdoc/classes/Mu/Homepage.src/M000237.html +0 -20
- data/rdoc/classes/Mu/Homepage.src/M000238.html +0 -20
- data/rdoc/classes/Mu/Homepage.src/M000239.html +0 -20
- data/rdoc/classes/Mu/Homepage.src/M000240.html +0 -20
- data/rdoc/classes/Mu/Homepage.src/M000241.html +0 -20
- data/rdoc/classes/Mu/HttpHelper.src/M000069.html +0 -22
- data/rdoc/classes/Mu/HttpHelper.src/M000070.html +0 -25
- data/rdoc/classes/Mu/HttpHelper.src/M000071.html +0 -34
- data/rdoc/classes/Mu/HttpHelper.src/M000072.html +0 -39
- data/rdoc/classes/Mu/HttpHelper.src/M000073.html +0 -36
- data/rdoc/classes/Mu/HttpHelper.src/M000074.html +0 -34
- data/rdoc/classes/Mu/HttpHelper.src/M000075.html +0 -46
- data/rdoc/classes/Mu/HttpHelper.src/M000076.html +0 -24
- data/rdoc/classes/Mu/HttpHelper.src/M000077.html +0 -19
- data/rdoc/classes/Mu/HttpHelper.src/M000078.html +0 -33
- data/rdoc/classes/Mu/HttpHelper.src/M000079.html +0 -29
- data/rdoc/classes/Mu/Muapi.src/M000080.html +0 -25
- data/rdoc/classes/Mu/Muapi.src/M000081.html +0 -27
- data/rdoc/classes/Mu/Muapi.src/M000082.html +0 -24
- data/rdoc/classes/Mu/Muapi.src/M000083.html +0 -27
- data/rdoc/classes/Mu/Muapi.src/M000084.html +0 -23
- data/rdoc/classes/Mu/Muapi.src/M000085.html +0 -23
- data/rdoc/classes/Mu/Muapi.src/M000086.html +0 -23
- data/rdoc/classes/Mu/Muapi.src/M000087.html +0 -23
- data/rdoc/classes/Mu/Muapi.src/M000088.html +0 -23
- data/rdoc/classes/Mu/Muapi.src/M000089.html +0 -22
- data/rdoc/classes/Mu/Muapi.src/M000090.html +0 -21
- data/rdoc/classes/Mu/Muapi.src/M000091.html +0 -19
- data/rdoc/classes/Mu/Muapi.src/M000092.html +0 -18
- data/rdoc/classes/Mu/Muapi.src/M000093.html +0 -18
- data/rdoc/classes/Mu/Muapi.src/M000094.html +0 -36
- data/rdoc/classes/Mu/Muapi.src/M000095.html +0 -34
- data/rdoc/classes/Mu/Muapi.src/M000096.html +0 -34
- data/rdoc/classes/Mu/Netconfig.src/M000072.html +0 -25
- data/rdoc/classes/Mu/Netconfig.src/M000073.html +0 -20
- data/rdoc/classes/Mu/Netconfig.src/M000074.html +0 -21
- data/rdoc/classes/Mu/Netconfig.src/M000075.html +0 -24
- data/rdoc/classes/Mu/Netconfig.src/M000076.html +0 -20
- data/rdoc/classes/Mu/Netconfig.src/M000077.html +0 -36
- data/rdoc/classes/Mu/Netconfig.src/M000078.html +0 -22
- data/rdoc/classes/Mu/Netconfig.src/M000079.html +0 -22
- data/rdoc/classes/Mu/Netconfig.src/M000080.html +0 -39
- data/rdoc/classes/Mu/Netconfig.src/M000081.html +0 -21
- data/rdoc/classes/Mu/Netconfig.src/M000082.html +0 -23
- data/rdoc/classes/Mu/Netconfig.src/M000083.html +0 -26
- data/rdoc/classes/Mu/Netconfig.src/M000084.html +0 -23
- data/rdoc/classes/Mu/Netconfig.src/M000085.html +0 -22
- data/rdoc/classes/Mu/Netconfig.src/M000086.html +0 -19
- data/rdoc/classes/Mu/Netconfig.src/M000217.html +0 -25
- data/rdoc/classes/Mu/Netconfig.src/M000218.html +0 -20
- data/rdoc/classes/Mu/Netconfig.src/M000219.html +0 -21
- data/rdoc/classes/Mu/Netconfig.src/M000220.html +0 -24
- data/rdoc/classes/Mu/Netconfig.src/M000221.html +0 -20
- data/rdoc/classes/Mu/Netconfig.src/M000222.html +0 -36
- data/rdoc/classes/Mu/Netconfig.src/M000223.html +0 -22
- data/rdoc/classes/Mu/Netconfig.src/M000224.html +0 -22
- data/rdoc/classes/Mu/Netconfig.src/M000225.html +0 -37
- data/rdoc/classes/Mu/Netconfig.src/M000226.html +0 -21
- data/rdoc/classes/Mu/Netconfig.src/M000227.html +0 -23
- data/rdoc/classes/Mu/Netconfig.src/M000228.html +0 -26
- data/rdoc/classes/Mu/Netconfig.src/M000229.html +0 -23
- data/rdoc/classes/Mu/Netconfig.src/M000230.html +0 -22
- data/rdoc/classes/Mu/Netconfig.src/M000231.html +0 -19
- data/rdoc/classes/Mu/Scale.src/M000006.html +0 -47
- data/rdoc/classes/Mu/Scale.src/M000007.html +0 -27
- data/rdoc/classes/Mu/Scale.src/M000008.html +0 -22
- data/rdoc/classes/Mu/Scale.src/M000009.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000010.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000011.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000012.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000013.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000014.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000015.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000016.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000017.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000018.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000019.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000020.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000021.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000022.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000023.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000024.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000025.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000265.html +0 -46
- data/rdoc/classes/Mu/Scale.src/M000266.html +0 -27
- data/rdoc/classes/Mu/Scale.src/M000267.html +0 -22
- data/rdoc/classes/Mu/Scale.src/M000268.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000269.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000270.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000271.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000272.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000273.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000274.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000275.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000276.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000277.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000278.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000279.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000280.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000281.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000282.html +0 -20
- data/rdoc/classes/Mu/System.src/M000232.html +0 -25
- data/rdoc/classes/Mu/System.src/M000233.html +0 -20
- data/rdoc/classes/Mu/System.src/M000234.html +0 -20
- data/rdoc/classes/Mu/System.src/M000235.html +0 -20
- data/rdoc/classes/Object.src/M000052.html +0 -18
- data/rdoc/classes/TCTestMu.src/M000001.html +0 -24
- data/rdoc/classes/TCTestMu.src/M000002.html +0 -18
- data/rdoc/classes/TCTestMu.src/M000003.html +0 -32
- data/rdoc/classes/TCTestMu.src/M000004.html +0 -33
- data/rdoc/classes/TCTestMu.src/M000005.html +0 -21
- data/rdoc/classes/TCTestMu.src/M000006.html +0 -21
- data/rdoc/classes/TCTestMu.src/M000007.html +0 -26
- data/rdoc/classes/TCTestMu.src/M000008.html +0 -29
- data/rdoc/classes/TCTestMu.src/M000009.html +0 -39
- data/rdoc/classes/TCTestMu.src/M000010.html +0 -38
- data/rdoc/classes/TCTestMu.src/M000011.html +0 -38
- data/rdoc/classes/TCTestMu.src/M000012.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000013.html +0 -25
- data/rdoc/classes/TCTestMu.src/M000014.html +0 -25
- data/rdoc/classes/TCTestMu.src/M000015.html +0 -33
- data/rdoc/classes/TCTestMu.src/M000016.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000017.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000018.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000019.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000020.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000021.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000022.html +0 -23
- data/rdoc/classes/TCTestMu.src/M000023.html +0 -23
- data/rdoc/classes/TCTestMu.src/M000024.html +0 -44
- data/rdoc/classes/TCTestMu.src/M000025.html +0 -53
- data/rdoc/classes/TCTestMu.src/M000026.html +0 -22
- data/rdoc/classes/TCTestMu.src/M000027.html +0 -49
- data/rdoc/classes/TCTestMu.src/M000028.html +0 -40
- data/rdoc/classes/TCTestMu.src/M000029.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000030.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000031.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000032.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000033.html +0 -27
- data/rdoc/classes/TCTestMu.src/M000034.html +0 -32
- data/rdoc/classes/TCTestMu.src/M000035.html +0 -23
- data/rdoc/classes/TCTestMu.src/M000036.html +0 -41
- data/rdoc/classes/TCTestMu.src/M000037.html +0 -23
- data/rdoc/classes/TCTestMu.src/M000038.html +0 -24
- data/rdoc/classes/TCTestMu.src/M000039.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000040.html +0 -32
- data/rdoc/classes/TCTestMu.src/M000041.html +0 -32
- data/rdoc/classes/TCTestMu.src/M000042.html +0 -26
- data/rdoc/classes/TCTestMu.src/M000043.html +0 -28
- data/rdoc/classes/TCTestMu.src/M000044.html +0 -21
- data/rdoc/classes/TCTestMu.src/M000045.html +0 -23
- data/rdoc/classes/TCTestMu.src/M000046.html +0 -21
- data/rdoc/classes/TCTestMu.src/M000047.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000048.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000049.html +0 -22
- data/rdoc/classes/TCTestMu.src/M000050.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000051.html +0 -35
- data/test/helper.rb +0 -18
- data/test/tc_test_mu.rb +0 -720
|
@@ -0,0 +1,1342 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
5
|
+
<head>
|
|
6
|
+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
|
7
|
+
|
|
8
|
+
<title>Class: Mu::Command::Cmd_appid</title>
|
|
9
|
+
|
|
10
|
+
<link rel="stylesheet" href="../../rdoc.css" type="text/css" media="screen" />
|
|
11
|
+
|
|
12
|
+
<script src="../../js/jquery.js" type="text/javascript"
|
|
13
|
+
charset="utf-8"></script>
|
|
14
|
+
<script src="../../js/thickbox-compressed.js" type="text/javascript"
|
|
15
|
+
charset="utf-8"></script>
|
|
16
|
+
<script src="../../js/quicksearch.js" type="text/javascript"
|
|
17
|
+
charset="utf-8"></script>
|
|
18
|
+
<script src="../../js/darkfish.js" type="text/javascript"
|
|
19
|
+
charset="utf-8"></script>
|
|
20
|
+
|
|
21
|
+
</head>
|
|
22
|
+
<body class="class">
|
|
23
|
+
|
|
24
|
+
<div id="metadata">
|
|
25
|
+
<div id="home-metadata">
|
|
26
|
+
<div id="home-section" class="section">
|
|
27
|
+
<h3 class="section-header">
|
|
28
|
+
<a href="../../index.html">Home</a>
|
|
29
|
+
<a href="../../index.html#classes">Classes</a>
|
|
30
|
+
<a href="../../index.html#methods">Methods</a>
|
|
31
|
+
</h3>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
|
|
35
|
+
<div id="file-metadata">
|
|
36
|
+
<div id="file-list-section" class="section">
|
|
37
|
+
<h3 class="section-header">In Files</h3>
|
|
38
|
+
<div class="section-body">
|
|
39
|
+
<ul>
|
|
40
|
+
|
|
41
|
+
<li><a href="../../lib/mu/command/cmd_appid_rb.html?TB_iframe=true&height=550&width=785"
|
|
42
|
+
class="thickbox" title="lib/mu/command/cmd_appid.rb">lib/mu/command/cmd_appid.rb</a></li>
|
|
43
|
+
|
|
44
|
+
</ul>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
</div>
|
|
50
|
+
|
|
51
|
+
<div id="class-metadata">
|
|
52
|
+
|
|
53
|
+
<!-- Parent Class -->
|
|
54
|
+
|
|
55
|
+
<div id="parent-class-section" class="section">
|
|
56
|
+
<h3 class="section-header">Parent</h3>
|
|
57
|
+
|
|
58
|
+
<p class="link"><a href="../Command.html">Mu::Command</a></p>
|
|
59
|
+
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
<!-- Namespace Contents -->
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
<!-- Method Quickref -->
|
|
67
|
+
|
|
68
|
+
<div id="method-list-section" class="section">
|
|
69
|
+
<h3 class="section-header">Methods</h3>
|
|
70
|
+
<ul class="link-list">
|
|
71
|
+
|
|
72
|
+
<li><a href="#method-i-cmd_help">#cmd_help</a></li>
|
|
73
|
+
|
|
74
|
+
<li><a href="#method-i-cmd_run_dir">#cmd_run_dir</a></li>
|
|
75
|
+
|
|
76
|
+
<li><a href="#method-i-cmd_run_file">#cmd_run_file</a></li>
|
|
77
|
+
|
|
78
|
+
<li><a href="#method-i-cmd_running%3F">#cmd_running?</a></li>
|
|
79
|
+
|
|
80
|
+
<li><a href="#method-i-dump_status">#dump_status</a></li>
|
|
81
|
+
|
|
82
|
+
<li><a href="#method-i-get_all_hosts_from_musl">#get_all_hosts_from_musl</a></li>
|
|
83
|
+
|
|
84
|
+
<li><a href="#method-i-help">#help</a></li>
|
|
85
|
+
|
|
86
|
+
<li><a href="#method-i-map_all_hosts_to_json">#map_all_hosts_to_json</a></li>
|
|
87
|
+
|
|
88
|
+
<li><a href="#method-i-output_csv">#output_csv</a></li>
|
|
89
|
+
|
|
90
|
+
<li><a href="#method-i-parse_cli">#parse_cli</a></li>
|
|
91
|
+
|
|
92
|
+
<li><a href="#method-i-parse_status">#parse_status</a></li>
|
|
93
|
+
|
|
94
|
+
<li><a href="#method-i-parse_verify_response">#parse_verify_response</a></li>
|
|
95
|
+
|
|
96
|
+
<li><a href="#method-i-run">#run</a></li>
|
|
97
|
+
|
|
98
|
+
<li><a href="#method-i-set_global_hosts">#set_global_hosts</a></li>
|
|
99
|
+
|
|
100
|
+
<li><a href="#method-i-setup">#setup</a></li>
|
|
101
|
+
|
|
102
|
+
</ul>
|
|
103
|
+
</div>
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
<!-- Included Modules -->
|
|
107
|
+
|
|
108
|
+
</div>
|
|
109
|
+
|
|
110
|
+
<div id="project-metadata">
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
<div id="fileindex-section" class="section project-section">
|
|
114
|
+
<h3 class="section-header">Files</h3>
|
|
115
|
+
<ul>
|
|
116
|
+
|
|
117
|
+
<li class="file"><a href="../../Gemfile.html">Gemfile</a></li>
|
|
118
|
+
|
|
119
|
+
<li class="file"><a href="../../LICENSE_txt.html">LICENSE.txt</a></li>
|
|
120
|
+
|
|
121
|
+
<li class="file"><a href="../../README_rdoc.html">README.rdoc</a></li>
|
|
122
|
+
|
|
123
|
+
<li class="file"><a href="../../Rakefile.html">Rakefile</a></li>
|
|
124
|
+
|
|
125
|
+
<li class="file"><a href="../../VERSION.html">VERSION</a></li>
|
|
126
|
+
|
|
127
|
+
</ul>
|
|
128
|
+
</div>
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
<div id="classindex-section" class="section project-section">
|
|
132
|
+
<h3 class="section-header">Class Index
|
|
133
|
+
<span class="search-toggle"><img src="../../images/find.png"
|
|
134
|
+
height="16" width="16" alt="[+]"
|
|
135
|
+
title="show/hide quicksearch" /></span></h3>
|
|
136
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
|
137
|
+
<fieldset>
|
|
138
|
+
<legend>Quicksearch</legend>
|
|
139
|
+
<input type="text" name="quicksearch" value=""
|
|
140
|
+
class="quicksearch-field" />
|
|
141
|
+
</fieldset>
|
|
142
|
+
</form>
|
|
143
|
+
|
|
144
|
+
<ul class="link-list">
|
|
145
|
+
|
|
146
|
+
<li><a href="../../Mu.html">Mu</a></li>
|
|
147
|
+
|
|
148
|
+
<li><a href="../../Mu/Client.html">Mu::Client</a></li>
|
|
149
|
+
|
|
150
|
+
<li><a href="../../Mu/Command.html">Mu::Command</a></li>
|
|
151
|
+
|
|
152
|
+
<li><a href="../../Mu/Command/API.html">Mu::Command::API</a></li>
|
|
153
|
+
|
|
154
|
+
<li><a href="../../Mu/Command/API.html">Mu::Command::API</a></li>
|
|
155
|
+
|
|
156
|
+
<li><a href="../../Mu/Command/Cmd_appid.html">Mu::Command::Cmd_appid</a></li>
|
|
157
|
+
|
|
158
|
+
<li><a href="../../Mu/Command/Cmd_cli.html">Mu::Command::Cmd_cli</a></li>
|
|
159
|
+
|
|
160
|
+
<li><a href="../../Mu/Command/Cmd_ddt.html">Mu::Command::Cmd_ddt</a></li>
|
|
161
|
+
|
|
162
|
+
<li><a href="../../Mu/Command/Cmd_homepage.html">Mu::Command::Cmd_homepage</a></li>
|
|
163
|
+
|
|
164
|
+
<li><a href="../../Mu/Command/Cmd_muapi.html">Mu::Command::Cmd_muapi</a></li>
|
|
165
|
+
|
|
166
|
+
<li><a href="../../Mu/Command/Cmd_netconfig.html">Mu::Command::Cmd_netconfig</a></li>
|
|
167
|
+
|
|
168
|
+
<li><a href="../../Mu/Command/Cmd_runscale.html">Mu::Command::Cmd_runscale</a></li>
|
|
169
|
+
|
|
170
|
+
<li><a href="../../Mu/Command/Cmd_runscenario.html">Mu::Command::Cmd_runscenario</a></li>
|
|
171
|
+
|
|
172
|
+
<li><a href="../../Mu/Command/Cmd_runverify.html">Mu::Command::Cmd_runverify</a></li>
|
|
173
|
+
|
|
174
|
+
<li><a href="../../Mu/Command/Cmd_scale.html">Mu::Command::Cmd_scale</a></li>
|
|
175
|
+
|
|
176
|
+
<li><a href="../../Mu/Command/Cmd_system.html">Mu::Command::Cmd_system</a></li>
|
|
177
|
+
|
|
178
|
+
<li><a href="../../Mu/Command/Curl.html">Mu::Command::Curl</a></li>
|
|
179
|
+
|
|
180
|
+
<li><a href="../../Mu/Command/Help.html">Mu::Command::Help</a></li>
|
|
181
|
+
|
|
182
|
+
<li><a href="../../Mu/Curl.html">Mu::Curl</a></li>
|
|
183
|
+
|
|
184
|
+
<li><a href="../../Mu/Curl/Error.html">Mu::Curl::Error</a></li>
|
|
185
|
+
|
|
186
|
+
<li><a href="../../Mu/Curl/Error/Authorize.html">Mu::Curl::Error::Authorize</a></li>
|
|
187
|
+
|
|
188
|
+
<li><a href="../../Mu/Curl/Error/Connect.html">Mu::Curl::Error::Connect</a></li>
|
|
189
|
+
|
|
190
|
+
<li><a href="../../Mu/Curl/Error/DNS.html">Mu::Curl::Error::DNS</a></li>
|
|
191
|
+
|
|
192
|
+
<li><a href="../../Mu/Curl/Error/Region.html">Mu::Curl::Error::Region</a></li>
|
|
193
|
+
|
|
194
|
+
<li><a href="../../Mu/Curl/Error/Status.html">Mu::Curl::Error::Status</a></li>
|
|
195
|
+
|
|
196
|
+
<li><a href="../../Mu/Curl/Error/Timeout.html">Mu::Curl::Error::Timeout</a></li>
|
|
197
|
+
|
|
198
|
+
<li><a href="../../Mu/Curl/Verify.html">Mu::Curl::Verify</a></li>
|
|
199
|
+
|
|
200
|
+
<li><a href="../../Mu/Curl/Verify/Request.html">Mu::Curl::Verify::Request</a></li>
|
|
201
|
+
|
|
202
|
+
<li><a href="../../Mu/Curl/Verify/Response.html">Mu::Curl::Verify::Response</a></li>
|
|
203
|
+
|
|
204
|
+
<li><a href="../../Mu/Curl/Verify/Result.html">Mu::Curl::Verify::Result</a></li>
|
|
205
|
+
|
|
206
|
+
<li><a href="../../Mu/Ddt.html">Mu::Ddt</a></li>
|
|
207
|
+
|
|
208
|
+
<li><a href="../../Mu/Helper.html">Mu::Helper</a></li>
|
|
209
|
+
|
|
210
|
+
<li><a href="../../Mu/Homepage.html">Mu::Homepage</a></li>
|
|
211
|
+
|
|
212
|
+
<li><a href="../../Mu/HttpHelper.html">Mu::HttpHelper</a></li>
|
|
213
|
+
|
|
214
|
+
<li><a href="../../Mu/Muapi.html">Mu::Muapi</a></li>
|
|
215
|
+
|
|
216
|
+
<li><a href="../../Mu/Netconfig.html">Mu::Netconfig</a></li>
|
|
217
|
+
|
|
218
|
+
<li><a href="../../Mu/Scale.html">Mu::Scale</a></li>
|
|
219
|
+
|
|
220
|
+
<li><a href="../../Mu/System.html">Mu::System</a></li>
|
|
221
|
+
|
|
222
|
+
<li><a href="../../Test.html">Test</a></li>
|
|
223
|
+
|
|
224
|
+
<li><a href="../../Test/Unit.html">Test::Unit</a></li>
|
|
225
|
+
|
|
226
|
+
<li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a></li>
|
|
227
|
+
|
|
228
|
+
<li><a href="../../Object.html">Object</a></li>
|
|
229
|
+
|
|
230
|
+
<li><a href="../../TCTestMu.html">TCTestMu</a></li>
|
|
231
|
+
|
|
232
|
+
</ul>
|
|
233
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
|
234
|
+
</div>
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
</div>
|
|
238
|
+
</div>
|
|
239
|
+
|
|
240
|
+
<div id="documentation">
|
|
241
|
+
<h1 class="class">Mu::Command::Cmd_appid</h1>
|
|
242
|
+
|
|
243
|
+
<div id="description">
|
|
244
|
+
|
|
245
|
+
</div>
|
|
246
|
+
|
|
247
|
+
<!-- Constants -->
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
<!-- Attributes -->
|
|
251
|
+
|
|
252
|
+
<div id="attribute-method-details" class="method-section section">
|
|
253
|
+
<h3 class="section-header">Attributes</h3>
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
<div id="api-attribute-method" class="method-detail">
|
|
257
|
+
<a name="api"></a>
|
|
258
|
+
|
|
259
|
+
<a name="api="></a>
|
|
260
|
+
|
|
261
|
+
<div class="method-heading attribute-method-heading">
|
|
262
|
+
<span class="method-name">api</span><span
|
|
263
|
+
class="attribute-access-type">[RW]</span>
|
|
264
|
+
</div>
|
|
265
|
+
|
|
266
|
+
<div class="method-description">
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
</div>
|
|
271
|
+
</div>
|
|
272
|
+
|
|
273
|
+
<div id="params-attribute-method" class="method-detail">
|
|
274
|
+
<a name="params"></a>
|
|
275
|
+
|
|
276
|
+
<a name="params="></a>
|
|
277
|
+
|
|
278
|
+
<div class="method-heading attribute-method-heading">
|
|
279
|
+
<span class="method-name">params</span><span
|
|
280
|
+
class="attribute-access-type">[RW]</span>
|
|
281
|
+
</div>
|
|
282
|
+
|
|
283
|
+
<div class="method-description">
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
</div>
|
|
288
|
+
</div>
|
|
289
|
+
|
|
290
|
+
<div id="hosts-attribute-method" class="method-detail">
|
|
291
|
+
<a name="hosts"></a>
|
|
292
|
+
|
|
293
|
+
<a name="hosts="></a>
|
|
294
|
+
|
|
295
|
+
<div class="method-heading attribute-method-heading">
|
|
296
|
+
<span class="method-name">hosts</span><span
|
|
297
|
+
class="attribute-access-type">[RW]</span>
|
|
298
|
+
</div>
|
|
299
|
+
|
|
300
|
+
<div class="method-description">
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
</div>
|
|
305
|
+
</div>
|
|
306
|
+
|
|
307
|
+
<div id="addr-indexes-attribute-method" class="method-detail">
|
|
308
|
+
<a name="addr_indexes"></a>
|
|
309
|
+
|
|
310
|
+
<a name="addr_indexes="></a>
|
|
311
|
+
|
|
312
|
+
<div class="method-heading attribute-method-heading">
|
|
313
|
+
<span class="method-name">addr_indexes</span><span
|
|
314
|
+
class="attribute-access-type">[RW]</span>
|
|
315
|
+
</div>
|
|
316
|
+
|
|
317
|
+
<div class="method-description">
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
</div>
|
|
322
|
+
</div>
|
|
323
|
+
|
|
324
|
+
<div id="hash-attribute-method" class="method-detail">
|
|
325
|
+
<a name="hash"></a>
|
|
326
|
+
|
|
327
|
+
<a name="hash="></a>
|
|
328
|
+
|
|
329
|
+
<div class="method-heading attribute-method-heading">
|
|
330
|
+
<span class="method-name">hash</span><span
|
|
331
|
+
class="attribute-access-type">[RW]</span>
|
|
332
|
+
</div>
|
|
333
|
+
|
|
334
|
+
<div class="method-description">
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
</div>
|
|
339
|
+
</div>
|
|
340
|
+
|
|
341
|
+
</div>
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
<!-- Methods -->
|
|
345
|
+
|
|
346
|
+
<div id="public-instance-method-details" class="method-section section">
|
|
347
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
<div id="cmd-help-method" class="method-detail ">
|
|
351
|
+
<a name="method-i-cmd_help"></a>
|
|
352
|
+
|
|
353
|
+
<div class="method-heading">
|
|
354
|
+
|
|
355
|
+
<span class="method-name">cmd_help</span><span
|
|
356
|
+
class="method-args">(argv)</span>
|
|
357
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
358
|
+
|
|
359
|
+
</div>
|
|
360
|
+
|
|
361
|
+
<div class="method-description">
|
|
362
|
+
|
|
363
|
+
<p>
|
|
364
|
+
displays command-line help
|
|
365
|
+
</p>
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
<div class="method-source-code"
|
|
370
|
+
id="cmd-help-source">
|
|
371
|
+
<pre>
|
|
372
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_appid.rb, line 13</span>
|
|
373
|
+
13: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_help</span> <span class="ruby-identifier">argv</span>
|
|
374
|
+
14: <span class="ruby-identifier">help</span>
|
|
375
|
+
15: <span class="ruby-keyword kw">end</span></pre>
|
|
376
|
+
</div>
|
|
377
|
+
|
|
378
|
+
</div>
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
</div>
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
<div id="cmd-run-dir-method" class="method-detail ">
|
|
387
|
+
<a name="method-i-cmd_run_dir"></a>
|
|
388
|
+
|
|
389
|
+
<div class="method-heading">
|
|
390
|
+
|
|
391
|
+
<span class="method-name">cmd_run_dir</span><span
|
|
392
|
+
class="method-args">(argv)</span>
|
|
393
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
394
|
+
|
|
395
|
+
</div>
|
|
396
|
+
|
|
397
|
+
<div class="method-description">
|
|
398
|
+
|
|
399
|
+
<p>
|
|
400
|
+
runs through a directory of msl files and executes a Studio <a
|
|
401
|
+
href="../Scale.html">Scale</a> test for each one
|
|
402
|
+
</p>
|
|
403
|
+
<pre>
|
|
404
|
+
* argv = command-line arguments, require a directory (-d) argument
|
|
405
|
+
* optional -r argument for recursive directory search (default is a flat directory)</pre>
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
<div class="method-source-code"
|
|
410
|
+
id="cmd-run-dir-source">
|
|
411
|
+
<pre>
|
|
412
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_appid.rb, line 65</span>
|
|
413
|
+
65: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_run_dir</span> <span class="ruby-identifier">argv</span>
|
|
414
|
+
66: <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
415
|
+
67:
|
|
416
|
+
68: <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">not</span> <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'dir'</span>]
|
|
417
|
+
69: <span class="ruby-identifier">raise</span> <span class="ruby-value str">"*** Error: directory required, using -d option"</span>
|
|
418
|
+
70: <span class="ruby-keyword kw">else</span>
|
|
419
|
+
71: <span class="ruby-identifier">dir</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'dir'</span>]
|
|
420
|
+
72: <span class="ruby-keyword kw">end</span>
|
|
421
|
+
73:
|
|
422
|
+
74: <span class="ruby-constant">File</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">"app_id_status.json"</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-value str">"app_id_status.json"</span>)
|
|
423
|
+
75: <span class="ruby-constant">File</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">"app_id_stats.csv"</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-value str">"app_id_stats.csv"</span>)
|
|
424
|
+
76:
|
|
425
|
+
77: <span class="ruby-ivar">@api</span> = <span class="ruby-constant">Scale</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">@@mu_ip</span>, <span class="ruby-identifier">@@mu_admin_user</span>, <span class="ruby-identifier">@@mu_admin_pass</span>)
|
|
426
|
+
78: <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">configure</span>(<span class="ruby-value str">"pattern"</span>, <span class="ruby-ivar">@cmd_line_pattern</span>)
|
|
427
|
+
79: <span class="ruby-ivar">@params</span> = {}
|
|
428
|
+
80: <span class="ruby-ivar">@params</span>[<span class="ruby-value str">"dir"</span>] = <span class="ruby-identifier">dir</span>
|
|
429
|
+
81: <span class="ruby-ivar">@params</span>[<span class="ruby-value str">"hosts"</span>] = <span class="ruby-ivar">@cmd_line_hosts</span>
|
|
430
|
+
82: <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">chdir</span>(<span class="ruby-ivar">@params</span>[<span class="ruby-value str">"dir"</span>])
|
|
431
|
+
83: <span class="ruby-constant">File</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">"app_id_status.json"</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-value str">"app_id_status.json"</span>)
|
|
432
|
+
84: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'recursive'</span>].<span class="ruby-identifier">nil?</span>
|
|
433
|
+
85: <span class="ruby-identifier">files</span> = <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">glob</span>(<span class="ruby-value str">"*.msl"</span>)
|
|
434
|
+
86: <span class="ruby-keyword kw">else</span>
|
|
435
|
+
87: <span class="ruby-identifier">files</span> = <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">glob</span>(<span class="ruby-value str">"**/*.msl"</span>)
|
|
436
|
+
88: <span class="ruby-keyword kw">end</span>
|
|
437
|
+
89: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">files</span>.<span class="ruby-identifier">empty?</span>
|
|
438
|
+
90: <span class="ruby-identifier">files</span>.<span class="ruby-identifier">sort</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span> <span class="ruby-identifier">f</span> <span class="ruby-operator">|</span>
|
|
439
|
+
91: <span class="ruby-identifier">run</span>(<span class="ruby-identifier">f</span>)
|
|
440
|
+
92: <span class="ruby-identifier">output_csv</span>(<span class="ruby-identifier">f</span>)
|
|
441
|
+
93: <span class="ruby-identifier">sleep</span> <span class="ruby-value">2</span>
|
|
442
|
+
94: <span class="ruby-keyword kw">end</span>
|
|
443
|
+
95: <span class="ruby-keyword kw">else</span>
|
|
444
|
+
96: <span class="ruby-identifier">msg</span> <span class="ruby-node">"no msl files found in #{dir}"</span>
|
|
445
|
+
97: <span class="ruby-keyword kw">end</span>
|
|
446
|
+
98: <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">release</span>
|
|
447
|
+
99: <span class="ruby-keyword kw">end</span></pre>
|
|
448
|
+
</div>
|
|
449
|
+
|
|
450
|
+
</div>
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
</div>
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
<div id="cmd-run-file-method" class="method-detail ">
|
|
459
|
+
<a name="method-i-cmd_run_file"></a>
|
|
460
|
+
|
|
461
|
+
<div class="method-heading">
|
|
462
|
+
|
|
463
|
+
<span class="method-name">cmd_run_file</span><span
|
|
464
|
+
class="method-args">(argv)</span>
|
|
465
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
466
|
+
|
|
467
|
+
</div>
|
|
468
|
+
|
|
469
|
+
<div class="method-description">
|
|
470
|
+
|
|
471
|
+
<p>
|
|
472
|
+
runs a single Studio <a href="../Scale.html">Scale</a> test
|
|
473
|
+
</p>
|
|
474
|
+
<pre>
|
|
475
|
+
* argv = command-line arguments, requires a scenario (-s) argument</pre>
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
<div class="method-source-code"
|
|
480
|
+
id="cmd-run-file-source">
|
|
481
|
+
<pre>
|
|
482
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_appid.rb, line 37</span>
|
|
483
|
+
37: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_run_file</span> <span class="ruby-identifier">argv</span>
|
|
484
|
+
38: <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
485
|
+
39:
|
|
486
|
+
40: <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">not</span> <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'scenario'</span>]
|
|
487
|
+
41: <span class="ruby-identifier">raise</span> <span class="ruby-value str">"*** Error: scenario required, using -s option"</span>
|
|
488
|
+
42: <span class="ruby-keyword kw">else</span>
|
|
489
|
+
43: <span class="ruby-identifier">scenario</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'scenario'</span>]
|
|
490
|
+
44: <span class="ruby-keyword kw">end</span>
|
|
491
|
+
45:
|
|
492
|
+
46: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-identifier">scenario</span>)
|
|
493
|
+
47: <span class="ruby-identifier">raise</span> <span class="ruby-node">"*** Error: Scenario file #{scenario} was not found"</span>
|
|
494
|
+
48: <span class="ruby-keyword kw">end</span>
|
|
495
|
+
49:
|
|
496
|
+
50: <span class="ruby-constant">File</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">"app_id_status.json"</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-value str">"app_id_status.json"</span>)
|
|
497
|
+
51: <span class="ruby-constant">File</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">"app_id_stats.csv"</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-value str">"app_id_stats.csv"</span>)
|
|
498
|
+
52:
|
|
499
|
+
53: <span class="ruby-ivar">@api</span> = <span class="ruby-constant">Scale</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">@@mu_ip</span>, <span class="ruby-identifier">@@mu_admin_user</span>, <span class="ruby-identifier">@@mu_admin_pass</span>)
|
|
500
|
+
54: <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">configure</span>(<span class="ruby-value str">"pattern"</span>, <span class="ruby-ivar">@cmd_line_pattern</span>)
|
|
501
|
+
55: <span class="ruby-ivar">@params</span> = {}
|
|
502
|
+
56: <span class="ruby-ivar">@params</span>[<span class="ruby-value str">"msl"</span>] = <span class="ruby-identifier">scenario</span>
|
|
503
|
+
57: <span class="ruby-ivar">@params</span>[<span class="ruby-value str">"hosts"</span>] = <span class="ruby-ivar">@cmd_line_hosts</span>
|
|
504
|
+
58: <span class="ruby-identifier">run</span>(<span class="ruby-identifier">scenario</span>)
|
|
505
|
+
59: <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">release</span>
|
|
506
|
+
60: <span class="ruby-keyword kw">end</span></pre>
|
|
507
|
+
</div>
|
|
508
|
+
|
|
509
|
+
</div>
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
</div>
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
<div id="cmd-running--method" class="method-detail ">
|
|
518
|
+
<a name="method-i-cmd_running%3F"></a>
|
|
519
|
+
|
|
520
|
+
<div class="method-heading">
|
|
521
|
+
|
|
522
|
+
<span class="method-name">cmd_running?</span><span
|
|
523
|
+
class="method-args">(argv)</span>
|
|
524
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
525
|
+
|
|
526
|
+
</div>
|
|
527
|
+
|
|
528
|
+
<div class="method-description">
|
|
529
|
+
|
|
530
|
+
<p>
|
|
531
|
+
returns a boolean indicating whether the scale test is running or not
|
|
532
|
+
</p>
|
|
533
|
+
<pre>
|
|
534
|
+
* argv = command-line arguments</pre>
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
|
|
538
|
+
<div class="method-source-code"
|
|
539
|
+
id="cmd-running--source">
|
|
540
|
+
<pre>
|
|
541
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_appid.rb, line 19</span>
|
|
542
|
+
19: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_running?</span> <span class="ruby-identifier">argv</span>
|
|
543
|
+
20: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">nil?</span>
|
|
544
|
+
21: <span class="ruby-identifier">msg</span> <span class="ruby-value str">"false"</span>
|
|
545
|
+
22: <span class="ruby-keyword kw">return</span>
|
|
546
|
+
23: <span class="ruby-keyword kw">end</span>
|
|
547
|
+
24:
|
|
548
|
+
25: <span class="ruby-identifier">status</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">status</span>
|
|
549
|
+
26: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">status</span>.<span class="ruby-identifier">nil?</span>
|
|
550
|
+
27: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">status</span>[<span class="ruby-value str">"status"</span>].<span class="ruby-identifier">nil?</span>
|
|
551
|
+
28: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">status</span>[<span class="ruby-value str">"status"</span>][<span class="ruby-value str">"running"</span>]
|
|
552
|
+
29: <span class="ruby-keyword kw">end</span>
|
|
553
|
+
30: <span class="ruby-keyword kw">else</span>
|
|
554
|
+
31: <span class="ruby-identifier">msg</span> <span class="ruby-value str">"false"</span>
|
|
555
|
+
32: <span class="ruby-keyword kw">end</span>
|
|
556
|
+
33: <span class="ruby-keyword kw">end</span></pre>
|
|
557
|
+
</div>
|
|
558
|
+
|
|
559
|
+
</div>
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
</div>
|
|
565
|
+
|
|
566
|
+
|
|
567
|
+
</div>
|
|
568
|
+
|
|
569
|
+
<div id="private-instance-method-details" class="method-section section">
|
|
570
|
+
<h3 class="section-header">Private Instance Methods</h3>
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
<div id="dump-status-method" class="method-detail ">
|
|
574
|
+
<a name="method-i-dump_status"></a>
|
|
575
|
+
|
|
576
|
+
<div class="method-heading">
|
|
577
|
+
|
|
578
|
+
<span class="method-name">dump_status</span><span
|
|
579
|
+
class="method-args">(status, msl)</span>
|
|
580
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
581
|
+
|
|
582
|
+
</div>
|
|
583
|
+
|
|
584
|
+
<div class="method-description">
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
|
|
590
|
+
<div class="method-source-code"
|
|
591
|
+
id="dump-status-source">
|
|
592
|
+
<pre>
|
|
593
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_appid.rb, line 232</span>
|
|
594
|
+
232: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dump_status</span>(<span class="ruby-identifier">status</span>, <span class="ruby-identifier">msl</span>)
|
|
595
|
+
233: <span class="ruby-identifier">filename</span> = <span class="ruby-value str">"app_id_status.json"</span>
|
|
596
|
+
234: <span class="ruby-identifier">f</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">filename</span>, <span class="ruby-value str">"a"</span>)
|
|
597
|
+
235: <span class="ruby-identifier">status</span>[<span class="ruby-value str">"filename"</span>] = <span class="ruby-identifier">msl</span>
|
|
598
|
+
236: <span class="ruby-identifier">str</span> = <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">pretty_generate</span>(<span class="ruby-identifier">status</span>)
|
|
599
|
+
237: <span class="ruby-identifier">f</span>.<span class="ruby-identifier">write</span>(<span class="ruby-value str">","</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">zero?</span>(<span class="ruby-identifier">f</span>) <span class="ruby-comment cmt"># if appending, we need to insert a comma</span>
|
|
600
|
+
238: <span class="ruby-identifier">f</span>.<span class="ruby-identifier">write</span>(<span class="ruby-identifier">str</span>)
|
|
601
|
+
239: <span class="ruby-identifier">f</span>.<span class="ruby-identifier">close</span>
|
|
602
|
+
240: <span class="ruby-keyword kw">end</span></pre>
|
|
603
|
+
</div>
|
|
604
|
+
|
|
605
|
+
</div>
|
|
606
|
+
|
|
607
|
+
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
</div>
|
|
611
|
+
|
|
612
|
+
|
|
613
|
+
<div id="get-all-hosts-from-musl-method" class="method-detail ">
|
|
614
|
+
<a name="method-i-get_all_hosts_from_musl"></a>
|
|
615
|
+
|
|
616
|
+
<div class="method-heading">
|
|
617
|
+
|
|
618
|
+
<span class="method-name">get_all_hosts_from_musl</span><span
|
|
619
|
+
class="method-args">(msl)</span>
|
|
620
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
621
|
+
|
|
622
|
+
</div>
|
|
623
|
+
|
|
624
|
+
<div class="method-description">
|
|
625
|
+
|
|
626
|
+
<p>
|
|
627
|
+
finds all the hosts in the musl file
|
|
628
|
+
</p>
|
|
629
|
+
|
|
630
|
+
|
|
631
|
+
|
|
632
|
+
<div class="method-source-code"
|
|
633
|
+
id="get-all-hosts-from-musl-source">
|
|
634
|
+
<pre>
|
|
635
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_appid.rb, line 250</span>
|
|
636
|
+
250: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_all_hosts_from_musl</span>(<span class="ruby-identifier">msl</span>)
|
|
637
|
+
251: <span class="ruby-identifier">f</span> = <span class="ruby-constant">IO</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">msl</span>)
|
|
638
|
+
252: <span class="ruby-identifier">hosts</span> = <span class="ruby-identifier">f</span>.<span class="ruby-identifier">scan</span>(<span class="ruby-regexp re">/host_\d+/</span>)
|
|
639
|
+
253: <span class="ruby-identifier">hosts</span>.<span class="ruby-identifier">uniq!</span>
|
|
640
|
+
254: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">hosts</span>
|
|
641
|
+
255: <span class="ruby-keyword kw">end</span></pre>
|
|
642
|
+
</div>
|
|
643
|
+
|
|
644
|
+
</div>
|
|
645
|
+
|
|
646
|
+
|
|
647
|
+
|
|
648
|
+
|
|
649
|
+
</div>
|
|
650
|
+
|
|
651
|
+
|
|
652
|
+
<div id="help-method" class="method-detail ">
|
|
653
|
+
<a name="method-i-help"></a>
|
|
654
|
+
|
|
655
|
+
<div class="method-heading">
|
|
656
|
+
|
|
657
|
+
<span class="method-name">help</span><span
|
|
658
|
+
class="method-args">()</span>
|
|
659
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
660
|
+
|
|
661
|
+
</div>
|
|
662
|
+
|
|
663
|
+
<div class="method-description">
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
|
|
667
|
+
|
|
668
|
+
|
|
669
|
+
<div class="method-source-code"
|
|
670
|
+
id="help-source">
|
|
671
|
+
<pre>
|
|
672
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_appid.rb, line 470</span>
|
|
673
|
+
470: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">help</span>
|
|
674
|
+
471: <span class="ruby-identifier">helps</span> = [
|
|
675
|
+
472: { <span class="ruby-value">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-c'</span>, <span class="ruby-value">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--csv'</span>, <span class="ruby-value">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'<string>'</span>, <span class="ruby-value">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'name of the csv testset to run'</span> },
|
|
676
|
+
473: { <span class="ruby-value">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-d'</span>, <span class="ruby-value">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--dir'</span>, <span class="ruby-value">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'<string>'</span>, <span class="ruby-value">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'directory containing msl files, required for run_dir'</span> },
|
|
677
|
+
474: { <span class="ruby-value">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-h'</span>, <span class="ruby-value">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--help'</span>, <span class="ruby-value">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">''</span>, <span class="ruby-value">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'help on command line options'</span> },
|
|
678
|
+
475: { <span class="ruby-value">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-i'</span>, <span class="ruby-value">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--interfaces'</span>, <span class="ruby-value">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'<string>'</span>, <span class="ruby-value">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'comma-separated list of interfaces, e.g. b1,b2 or b1-1000:0,b2 for ip range and offset'</span> },
|
|
679
|
+
476: { <span class="ruby-value">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-l'</span>, <span class="ruby-value">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--delay'</span>, <span class="ruby-value">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'<string>'</span>, <span class="ruby-value">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'intra-scenario delay value'</span> },
|
|
680
|
+
477: { <span class="ruby-value">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-m'</span>, <span class="ruby-value">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--mu_string'</span>, <span class="ruby-value">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'<string>'</span>, <span class="ruby-value">: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> },
|
|
681
|
+
478: { <span class="ruby-value">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-n'</span>, <span class="ruby-value">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--no_verify'</span>, <span class="ruby-value">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">''</span>, <span class="ruby-value">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'do not do verify before start'</span> },
|
|
682
|
+
479: { <span class="ruby-value">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-o'</span>, <span class="ruby-value">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--output'</span>, <span class="ruby-value">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'<string>'</span>, <span class="ruby-value">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'output logging to this file'</span> },
|
|
683
|
+
480: { <span class="ruby-value">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-p'</span>, <span class="ruby-value">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--pattern'</span>, <span class="ruby-value">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'<string>'</span>, <span class="ruby-value">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'pattern in the form of comma-separated concurrency_start-end:duration strings, e.g. 1-10000:60,10000-1:30. Duration is in seconds'</span> },
|
|
684
|
+
481: { <span class="ruby-value">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-r'</span>, <span class="ruby-value">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--recursive'</span>, <span class="ruby-value">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">''</span>, <span class="ruby-value">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'for run_dir, recurse through sub-directories'</span> },
|
|
685
|
+
482: { <span class="ruby-value">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-s'</span>, <span class="ruby-value">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--scenario'</span>, <span class="ruby-value">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'<string>'</span>, <span class="ruby-value">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'msl file, required for run_msl'</span> },
|
|
686
|
+
483: { <span class="ruby-value">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-t'</span>, <span class="ruby-value">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--test'</span>, <span class="ruby-value">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">''</span>, <span class="ruby-value">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'do verify only'</span> },
|
|
687
|
+
484: { <span class="ruby-value">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-v'</span>, <span class="ruby-value">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--verbose'</span>, <span class="ruby-value">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">''</span>, <span class="ruby-value">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'set Logger::DEBUG level'</span> }
|
|
688
|
+
485: ]
|
|
689
|
+
486:
|
|
690
|
+
487: <span class="ruby-identifier">cmds</span> = [
|
|
691
|
+
488: <span class="ruby-value str">"mu cmd_appid:help"</span>,
|
|
692
|
+
489: <span class="ruby-value str">"mu cmd_appid:run_file -s <file>"</span>,
|
|
693
|
+
490: <span class="ruby-value str">"mu cmd_appid:run_dir -d <dir> [-r]"</span>,
|
|
694
|
+
491: <span class="ruby-value str">"mu cmd_appid:running?"</span>
|
|
695
|
+
492: ]
|
|
696
|
+
493:
|
|
697
|
+
494: <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-value">:long</span>].<span class="ruby-identifier">size</span>, <span class="ruby-identifier">memo</span> ].<span class="ruby-identifier">max</span> }
|
|
698
|
+
495: <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-value">:value</span>].<span class="ruby-identifier">size</span>, <span class="ruby-identifier">memo</span> ].<span class="ruby-identifier">max</span> }
|
|
699
|
+
496: <span class="ruby-identifier">puts</span>
|
|
700
|
+
497: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"Usage: mu cmd_appid:<command> <options>"</span>
|
|
701
|
+
498: <span class="ruby-identifier">puts</span>
|
|
702
|
+
499: <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>
|
|
703
|
+
500: <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-value">:long</span>], <span class="ruby-value">2</span>, <span class="ruby-identifier">h</span>[<span class="ruby-value">:short</span>], <span class="ruby-identifier">max_value_size</span>, <span class="ruby-identifier">h</span>[<span class="ruby-value">:value</span>], <span class="ruby-identifier">h</span>[<span class="ruby-value">:help</span>]]
|
|
704
|
+
501: <span class="ruby-keyword kw">end</span>
|
|
705
|
+
502: <span class="ruby-identifier">puts</span>
|
|
706
|
+
503: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"Available Commands"</span>
|
|
707
|
+
504: <span class="ruby-identifier">puts</span>
|
|
708
|
+
505: <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>
|
|
709
|
+
506: <span class="ruby-identifier">puts</span> <span class="ruby-identifier">c</span>
|
|
710
|
+
507: <span class="ruby-keyword kw">end</span>
|
|
711
|
+
508: <span class="ruby-identifier">puts</span>
|
|
712
|
+
509: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"Outputs"</span>
|
|
713
|
+
510: <span class="ruby-identifier">puts</span>
|
|
714
|
+
511: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"app_id_stats.csv"</span>
|
|
715
|
+
512: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"scenario_name , passed , errors , timeouts,"</span>
|
|
716
|
+
513: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"client tx bytes/sec , client tx msgs/sec , client rx bytes/sec , client rx msgs/src,"</span>
|
|
717
|
+
514: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"server tx bytes/sec , server tx msgs/sec , server rx bytes/sec , server rx msgs/src"</span>
|
|
718
|
+
515: <span class="ruby-identifier">puts</span>
|
|
719
|
+
516: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"app_id_status.json"</span>
|
|
720
|
+
517: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"contains the last status json object returned from polling, per scenario"</span>
|
|
721
|
+
518: <span class="ruby-keyword kw">end</span></pre>
|
|
722
|
+
</div>
|
|
723
|
+
|
|
724
|
+
</div>
|
|
725
|
+
|
|
726
|
+
|
|
727
|
+
|
|
728
|
+
|
|
729
|
+
</div>
|
|
730
|
+
|
|
731
|
+
|
|
732
|
+
<div id="map-all-hosts-to-json-method" class="method-detail ">
|
|
733
|
+
<a name="method-i-map_all_hosts_to_json"></a>
|
|
734
|
+
|
|
735
|
+
<div class="method-heading">
|
|
736
|
+
|
|
737
|
+
<span class="method-name">map_all_hosts_to_json</span><span
|
|
738
|
+
class="method-args">(hosts=[])</span>
|
|
739
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
740
|
+
|
|
741
|
+
</div>
|
|
742
|
+
|
|
743
|
+
<div class="method-description">
|
|
744
|
+
|
|
745
|
+
<p>
|
|
746
|
+
maps host_0 to the client interface maps all other hosts to the server
|
|
747
|
+
interface
|
|
748
|
+
</p>
|
|
749
|
+
|
|
750
|
+
|
|
751
|
+
|
|
752
|
+
<div class="method-source-code"
|
|
753
|
+
id="map-all-hosts-to-json-source">
|
|
754
|
+
<pre>
|
|
755
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_appid.rb, line 259</span>
|
|
756
|
+
259: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">map_all_hosts_to_json</span>(<span class="ruby-identifier">hosts</span>=[])
|
|
757
|
+
260: <span class="ruby-identifier">new_hosts</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
|
|
758
|
+
261: <span class="ruby-identifier">hosts</span>.<span class="ruby-identifier">each_with_index</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span> <span class="ruby-identifier">h</span>, <span class="ruby-identifier">i</span> <span class="ruby-operator">|</span>
|
|
759
|
+
262: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">i</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
|
|
760
|
+
263: <span class="ruby-identifier">new_hosts</span> <span class="ruby-operator"><<</span> <span class="ruby-ivar">@hosts</span>[<span class="ruby-value">0</span>] <span class="ruby-operator">+</span> <span class="ruby-node">"/*,#{@addr_indexes[0]}"</span>
|
|
761
|
+
264: <span class="ruby-keyword kw">else</span>
|
|
762
|
+
265: <span class="ruby-identifier">new_hosts</span> <span class="ruby-operator"><<</span> <span class="ruby-ivar">@hosts</span>[<span class="ruby-value">1</span>] <span class="ruby-operator">+</span> <span class="ruby-node">"/*,#{@addr_indexes[1]}"</span>
|
|
763
|
+
266: <span class="ruby-keyword kw">end</span>
|
|
764
|
+
267: <span class="ruby-keyword kw">end</span>
|
|
765
|
+
268:
|
|
766
|
+
269: <span class="ruby-identifier">hosts_config</span> = {}
|
|
767
|
+
270:
|
|
768
|
+
271: <span class="ruby-comment cmt"># assign hosts to consecutive string keys, host_0, host_1, etc ...</span>
|
|
769
|
+
272: <span class="ruby-identifier">new_hosts</span>.<span class="ruby-identifier">each_with_index</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span> <span class="ruby-identifier">h</span>, <span class="ruby-identifier">i</span> <span class="ruby-operator">|</span>
|
|
770
|
+
273: <span class="ruby-identifier">hosts_config</span>[<span class="ruby-node">"host_#{i}"</span>] = <span class="ruby-identifier">h</span> <span class="ruby-comment cmt"># new_hosts[i]</span>
|
|
771
|
+
274: <span class="ruby-keyword kw">end</span>
|
|
772
|
+
275:
|
|
773
|
+
276: <span class="ruby-comment cmt"># convert keys to symbols</span>
|
|
774
|
+
277: <span class="ruby-identifier">new_hosts_config</span> = {}
|
|
775
|
+
278: <span class="ruby-identifier">hosts_config</span>.<span class="ruby-identifier">each_key</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">new_hosts_config</span>[<span class="ruby-identifier">k</span>.<span class="ruby-identifier">to_sym</span>] = <span class="ruby-identifier">hosts_config</span>[<span class="ruby-identifier">k</span>] }
|
|
776
|
+
279:
|
|
777
|
+
280: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">new_hosts_config</span>
|
|
778
|
+
281: <span class="ruby-keyword kw">end</span></pre>
|
|
779
|
+
</div>
|
|
780
|
+
|
|
781
|
+
</div>
|
|
782
|
+
|
|
783
|
+
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
</div>
|
|
787
|
+
|
|
788
|
+
|
|
789
|
+
<div id="output-csv-method" class="method-detail ">
|
|
790
|
+
<a name="method-i-output_csv"></a>
|
|
791
|
+
|
|
792
|
+
<div class="method-heading">
|
|
793
|
+
|
|
794
|
+
<span class="method-name">output_csv</span><span
|
|
795
|
+
class="method-args">(msl_file)</span>
|
|
796
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
797
|
+
|
|
798
|
+
</div>
|
|
799
|
+
|
|
800
|
+
<div class="method-description">
|
|
801
|
+
|
|
802
|
+
|
|
803
|
+
|
|
804
|
+
|
|
805
|
+
|
|
806
|
+
<div class="method-source-code"
|
|
807
|
+
id="output-csv-source">
|
|
808
|
+
<pre>
|
|
809
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_appid.rb, line 242</span>
|
|
810
|
+
242: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">output_csv</span>(<span class="ruby-identifier">msl_file</span>)
|
|
811
|
+
243: <span class="ruby-identifier">filename</span> = <span class="ruby-value str">"app_id_stats.csv"</span>
|
|
812
|
+
244: <span class="ruby-identifier">f</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">filename</span>, <span class="ruby-value str">"a"</span>)
|
|
813
|
+
245: <span class="ruby-identifier">doc</span> = <span class="ruby-node">"#{msl_file},#{@executed},#{@errors.to_i},#{@timeouts.to_i},#{@client_tx_bytes},#{@client_tx_msgs},#{@client_rx_bytes},#{@client_rx_msgs},#{@server_tx_bytes},#{@server_tx_msgs},#{@server_rx_bytes},#{@server_rx_msgs}\n"</span>
|
|
814
|
+
246: <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">filename</span>, <span class="ruby-value str">'a'</span>) {<span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">write</span>(<span class="ruby-identifier">doc</span>) }
|
|
815
|
+
247: <span class="ruby-keyword kw">end</span></pre>
|
|
816
|
+
</div>
|
|
817
|
+
|
|
818
|
+
</div>
|
|
819
|
+
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
|
|
823
|
+
</div>
|
|
824
|
+
|
|
825
|
+
|
|
826
|
+
<div id="parse-cli-method" class="method-detail ">
|
|
827
|
+
<a name="method-i-parse_cli"></a>
|
|
828
|
+
|
|
829
|
+
<div class="method-heading">
|
|
830
|
+
|
|
831
|
+
<span class="method-name">parse_cli</span><span
|
|
832
|
+
class="method-args">(argv)</span>
|
|
833
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
834
|
+
|
|
835
|
+
</div>
|
|
836
|
+
|
|
837
|
+
<div class="method-description">
|
|
838
|
+
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
|
|
842
|
+
|
|
843
|
+
<div class="method-source-code"
|
|
844
|
+
id="parse-cli-source">
|
|
845
|
+
<pre>
|
|
846
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_appid.rb, line 370</span>
|
|
847
|
+
370: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parse_cli</span> <span class="ruby-identifier">argv</span>
|
|
848
|
+
371: <span class="ruby-ivar">@hash</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>
|
|
849
|
+
372: <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>
|
|
850
|
+
373: <span class="ruby-keyword kw">break</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>
|
|
851
|
+
374:
|
|
852
|
+
375: <span class="ruby-identifier">k</span> = <span class="ruby-identifier">argv</span>.<span class="ruby-identifier">shift</span>
|
|
853
|
+
376:
|
|
854
|
+
377: <span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-c'</span>, <span class="ruby-value str">'--csv'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
855
|
+
378: <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'testset'</span>] = <span class="ruby-identifier">shift</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">argv</span>)
|
|
856
|
+
379: <span class="ruby-keyword kw">next</span>
|
|
857
|
+
380: <span class="ruby-keyword kw">end</span>
|
|
858
|
+
381:
|
|
859
|
+
382: <span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-d'</span>, <span class="ruby-value str">'--dir'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
860
|
+
383: <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'dir'</span>] = <span class="ruby-identifier">shift</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">argv</span>)
|
|
861
|
+
384: <span class="ruby-keyword kw">next</span>
|
|
862
|
+
385: <span class="ruby-keyword kw">end</span>
|
|
863
|
+
386:
|
|
864
|
+
387: <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>
|
|
865
|
+
388: <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>)
|
|
866
|
+
389: <span class="ruby-keyword kw">next</span>
|
|
867
|
+
390: <span class="ruby-keyword kw">end</span>
|
|
868
|
+
391:
|
|
869
|
+
392: <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>
|
|
870
|
+
393: <span class="ruby-identifier">help</span>
|
|
871
|
+
394: <span class="ruby-identifier">exit</span>
|
|
872
|
+
395: <span class="ruby-keyword kw">end</span>
|
|
873
|
+
396:
|
|
874
|
+
397: <span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-l'</span>, <span class="ruby-value str">'--delay'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
875
|
+
398: <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'delay'</span>] = <span class="ruby-identifier">shift</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">argv</span>)
|
|
876
|
+
399: <span class="ruby-keyword kw">next</span>
|
|
877
|
+
400: <span class="ruby-keyword kw">end</span>
|
|
878
|
+
401:
|
|
879
|
+
402: <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>
|
|
880
|
+
403: <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>)
|
|
881
|
+
404: <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>
|
|
882
|
+
405: <span class="ruby-identifier">@@mu_admin_user</span> = <span class="ruby-node">$1</span>
|
|
883
|
+
406: <span class="ruby-identifier">@@mu_admin_pass</span> = <span class="ruby-node">$2</span>
|
|
884
|
+
407: <span class="ruby-identifier">@@mu_ip</span> = <span class="ruby-node">$3</span>
|
|
885
|
+
408: <span class="ruby-keyword kw">end</span>
|
|
886
|
+
409: <span class="ruby-keyword kw">next</span>
|
|
887
|
+
410: <span class="ruby-keyword kw">end</span>
|
|
888
|
+
411:
|
|
889
|
+
412: <span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-n'</span>, <span class="ruby-value str">'--no_verify'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
890
|
+
413: <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'no_verify'</span>] = <span class="ruby-keyword kw">true</span>
|
|
891
|
+
414: <span class="ruby-keyword kw">next</span>
|
|
892
|
+
415: <span class="ruby-keyword kw">end</span>
|
|
893
|
+
416:
|
|
894
|
+
417: <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>
|
|
895
|
+
418: <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>)
|
|
896
|
+
419: <span class="ruby-keyword kw">next</span>
|
|
897
|
+
420: <span class="ruby-keyword kw">end</span>
|
|
898
|
+
421:
|
|
899
|
+
422: <span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-p'</span>, <span class="ruby-value str">'--pattern'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
900
|
+
423: <span class="ruby-identifier">patterns</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
|
|
901
|
+
424: <span class="ruby-identifier">pattern_string</span> = <span class="ruby-identifier">shift</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">argv</span>)
|
|
902
|
+
425: <span class="ruby-identifier">pstrings</span> = <span class="ruby-identifier">pattern_string</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">","</span>)
|
|
903
|
+
426: <span class="ruby-identifier">pstrings</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span> <span class="ruby-identifier">p</span> <span class="ruby-operator">|</span>
|
|
904
|
+
427: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">p</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/(.+?)-(.+?):(.*)/</span> <span class="ruby-comment cmt"># e.g. 1-10000:60</span>
|
|
905
|
+
428: <span class="ruby-identifier">start_vol</span> = <span class="ruby-node">$1</span>
|
|
906
|
+
429: <span class="ruby-identifier">end_vol</span> = <span class="ruby-node">$2</span>
|
|
907
|
+
430: <span class="ruby-identifier">duration</span> = <span class="ruby-node">$3</span>
|
|
908
|
+
431: <span class="ruby-identifier">patterns</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"{\"iterations\":1, \"end\":#{end_vol}, \"start\":#{start_vol}, \"duration\":#{duration} }"</span>
|
|
909
|
+
432: <span class="ruby-keyword kw">end</span>
|
|
910
|
+
433: <span class="ruby-keyword kw">end</span>
|
|
911
|
+
434: <span class="ruby-identifier">ps</span> = <span class="ruby-value str">"{ \"iterations\": 1, \"intervals\": ["</span>
|
|
912
|
+
435: <span class="ruby-identifier">patterns</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span> <span class="ruby-identifier">p</span> <span class="ruby-operator">|</span>
|
|
913
|
+
436: <span class="ruby-identifier">ps</span> = <span class="ruby-identifier">ps</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">p</span> <span class="ruby-operator">+</span> <span class="ruby-value str">","</span>
|
|
914
|
+
437: <span class="ruby-keyword kw">end</span>
|
|
915
|
+
438: <span class="ruby-identifier">ps</span> = <span class="ruby-identifier">ps</span>[<span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-identifier">ps</span>.<span class="ruby-identifier">length</span><span class="ruby-operator">-</span><span class="ruby-value">2</span>] <span class="ruby-comment cmt"># remove final comma</span>
|
|
916
|
+
439: <span class="ruby-identifier">ps</span> = <span class="ruby-identifier">ps</span> <span class="ruby-operator">+</span> <span class="ruby-value str">"] }"</span>
|
|
917
|
+
440: <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'pattern'</span>] = <span class="ruby-identifier">ps</span>
|
|
918
|
+
441: <span class="ruby-keyword kw">next</span>
|
|
919
|
+
442: <span class="ruby-keyword kw">end</span>
|
|
920
|
+
443:
|
|
921
|
+
444: <span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-r'</span>, <span class="ruby-value str">'--recursive'</span>].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
922
|
+
445: <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'recursive'</span>] = <span class="ruby-keyword kw">true</span>
|
|
923
|
+
446: <span class="ruby-keyword kw">next</span>
|
|
924
|
+
447: <span class="ruby-keyword kw">end</span>
|
|
925
|
+
448:
|
|
926
|
+
449: <span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-s'</span>, <span class="ruby-value str">'--scenario'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
927
|
+
450: <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'scenario'</span>] = <span class="ruby-identifier">shift</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">argv</span>)
|
|
928
|
+
451: <span class="ruby-keyword kw">next</span>
|
|
929
|
+
452: <span class="ruby-keyword kw">end</span>
|
|
930
|
+
453:
|
|
931
|
+
454: <span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-t'</span>, <span class="ruby-value str">'--test'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
932
|
+
455: <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'test'</span>] = <span class="ruby-keyword kw">true</span>
|
|
933
|
+
456: <span class="ruby-keyword kw">next</span>
|
|
934
|
+
457: <span class="ruby-keyword kw">end</span>
|
|
935
|
+
458:
|
|
936
|
+
459: <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>
|
|
937
|
+
460: <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>
|
|
938
|
+
461: <span class="ruby-keyword kw">next</span>
|
|
939
|
+
462: <span class="ruby-keyword kw">end</span>
|
|
940
|
+
463:
|
|
941
|
+
464: <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-node">"Unknown option #{k}"</span>
|
|
942
|
+
465: <span class="ruby-keyword kw">end</span>
|
|
943
|
+
466:
|
|
944
|
+
467: <span class="ruby-identifier">hash</span>
|
|
945
|
+
468: <span class="ruby-keyword kw">end</span></pre>
|
|
946
|
+
</div>
|
|
947
|
+
|
|
948
|
+
</div>
|
|
949
|
+
|
|
950
|
+
|
|
951
|
+
|
|
952
|
+
|
|
953
|
+
</div>
|
|
954
|
+
|
|
955
|
+
|
|
956
|
+
<div id="parse-status-method" class="method-detail ">
|
|
957
|
+
<a name="method-i-parse_status"></a>
|
|
958
|
+
|
|
959
|
+
<div class="method-heading">
|
|
960
|
+
|
|
961
|
+
<span class="method-name">parse_status</span><span
|
|
962
|
+
class="method-args">(status)</span>
|
|
963
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
964
|
+
|
|
965
|
+
</div>
|
|
966
|
+
|
|
967
|
+
<div class="method-description">
|
|
968
|
+
|
|
969
|
+
|
|
970
|
+
|
|
971
|
+
|
|
972
|
+
|
|
973
|
+
<div class="method-source-code"
|
|
974
|
+
id="parse-status-source">
|
|
975
|
+
<pre>
|
|
976
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_appid.rb, line 307</span>
|
|
977
|
+
307: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parse_status</span>(<span class="ruby-identifier">status</span>)
|
|
978
|
+
308: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">status</span>.<span class="ruby-identifier">nil?</span>
|
|
979
|
+
309: <span class="ruby-identifier">msg</span> <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">pretty_generate</span>(<span class="ruby-identifier">status</span>), <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
|
980
|
+
310: <span class="ruby-ivar">@reported_volume</span> = <span class="ruby-value">0</span>
|
|
981
|
+
311: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">status</span>[<span class="ruby-value str">"status"</span>][<span class="ruby-value str">"error"</span>].<span class="ruby-identifier">nil?</span>
|
|
982
|
+
312: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">status</span>[<span class="ruby-value str">"status"</span>][<span class="ruby-value str">"error"</span>] <span class="ruby-operator">==</span> <span class="ruby-keyword kw">true</span>
|
|
983
|
+
313: <span class="ruby-ivar">@error</span> = <span class="ruby-identifier">status</span>[<span class="ruby-value str">"status"</span>][<span class="ruby-value str">"error"</span>]
|
|
984
|
+
314: <span class="ruby-ivar">@reason</span> = <span class="ruby-identifier">status</span>[<span class="ruby-value str">"status"</span>][<span class="ruby-value str">"reason"</span>]
|
|
985
|
+
315: <span class="ruby-comment cmt"># puts "*** Error = #{@error}, reason = #{@reason} ***\n\n"</span>
|
|
986
|
+
316: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
|
987
|
+
317: <span class="ruby-keyword kw">end</span>
|
|
988
|
+
318: <span class="ruby-keyword kw">end</span>
|
|
989
|
+
319:
|
|
990
|
+
320: <span class="ruby-ivar">@stats_summary</span> = <span class="ruby-identifier">status</span>[<span class="ruby-value str">"status"</span>][<span class="ruby-value str">"statistics"</span>][<span class="ruby-value str">"summary"</span>]
|
|
991
|
+
321: <span class="ruby-ivar">@duration</span> = <span class="ruby-ivar">@stats_summary</span>[<span class="ruby-value str">"duration"</span>]
|
|
992
|
+
322: <span class="ruby-ivar">@instances</span> = <span class="ruby-ivar">@stats_summary</span>[<span class="ruby-value str">"instances"</span>]
|
|
993
|
+
323: <span class="ruby-ivar">@total_instances</span> = <span class="ruby-ivar">@instances</span>[<span class="ruby-value str">"total"</span>]
|
|
994
|
+
324: <span class="ruby-ivar">@executed</span> = <span class="ruby-ivar">@instances</span>[<span class="ruby-value str">"executed"</span>]
|
|
995
|
+
325: <span class="ruby-ivar">@timeouts</span> = <span class="ruby-ivar">@instances</span>[<span class="ruby-value str">"timeouts"</span>]
|
|
996
|
+
326: <span class="ruby-ivar">@errors</span> = <span class="ruby-ivar">@instances</span>[<span class="ruby-value str">"errors"</span>]
|
|
997
|
+
327: <span class="ruby-ivar">@asserts_failed</span> = <span class="ruby-ivar">@stats_summary</span>[<span class="ruby-value str">"asserts"</span>][<span class="ruby-value str">"failed"</span>]
|
|
998
|
+
328: <span class="ruby-ivar">@server</span> = <span class="ruby-ivar">@stats_summary</span>[<span class="ruby-value str">"server"</span>]
|
|
999
|
+
329: <span class="ruby-ivar">@server_tx_bytes</span> = <span class="ruby-ivar">@server</span>[<span class="ruby-value str">"tx"</span>][<span class="ruby-value str">"bytes"</span>]
|
|
1000
|
+
330: <span class="ruby-ivar">@server_tx_msgs</span> = <span class="ruby-ivar">@server</span>[<span class="ruby-value str">"tx"</span>][<span class="ruby-value str">"msgs"</span>]
|
|
1001
|
+
331: <span class="ruby-ivar">@server_rx_bytes</span> = <span class="ruby-ivar">@server</span>[<span class="ruby-value str">"rx"</span>][<span class="ruby-value str">"bytes"</span>]
|
|
1002
|
+
332: <span class="ruby-ivar">@server_rx_msgs</span> = <span class="ruby-ivar">@server</span>[<span class="ruby-value str">"rx"</span>][<span class="ruby-value str">"msgs"</span>]
|
|
1003
|
+
333: <span class="ruby-ivar">@client</span> = <span class="ruby-ivar">@stats_summary</span>[<span class="ruby-value str">"client"</span>]
|
|
1004
|
+
334: <span class="ruby-ivar">@client_tx_bytes</span> = <span class="ruby-ivar">@client</span>[<span class="ruby-value str">"tx"</span>][<span class="ruby-value str">"bytes"</span>]
|
|
1005
|
+
335: <span class="ruby-ivar">@client_tx_msgs</span> = <span class="ruby-ivar">@client</span>[<span class="ruby-value str">"tx"</span>][<span class="ruby-value str">"msgs"</span>]
|
|
1006
|
+
336: <span class="ruby-ivar">@client_rx_bytes</span> = <span class="ruby-ivar">@client</span>[<span class="ruby-value str">"rx"</span>][<span class="ruby-value str">"bytes"</span>]
|
|
1007
|
+
337: <span class="ruby-ivar">@client_rx_msgs</span> = <span class="ruby-ivar">@client</span>[<span class="ruby-value str">"rx"</span>][<span class="ruby-value str">"msgs"</span>]
|
|
1008
|
+
338: <span class="ruby-ivar">@scenarios</span> = <span class="ruby-identifier">status</span>[<span class="ruby-value str">"status"</span>][<span class="ruby-value str">"statistics"</span>][<span class="ruby-value str">"scenarios"</span>]
|
|
1009
|
+
339: <span class="ruby-ivar">@scenarios</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span> <span class="ruby-identifier">scenario</span> <span class="ruby-operator">|</span>
|
|
1010
|
+
340: <span class="ruby-ivar">@reported_volume</span> = <span class="ruby-ivar">@reported_volume</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">scenario</span>[<span class="ruby-value str">"volume"</span>]
|
|
1011
|
+
341: <span class="ruby-keyword kw">end</span>
|
|
1012
|
+
342:
|
|
1013
|
+
343: <span class="ruby-identifier">bits1</span> = (<span class="ruby-ivar">@client_tx_bytes</span>.<span class="ruby-identifier">to_i</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@client_rx_bytes</span>.<span class="ruby-identifier">to_i</span>) * <span class="ruby-value">8</span>
|
|
1014
|
+
344: <span class="ruby-identifier">dur1</span> = <span class="ruby-ivar">@duration</span>.<span class="ruby-identifier">to_f</span>
|
|
1015
|
+
345: <span class="ruby-identifier">thruput</span> = <span class="ruby-identifier">format_float</span>(<span class="ruby-value">2</span>, <span class="ruby-identifier">bits1</span>.<span class="ruby-identifier">to_f</span> <span class="ruby-operator">/</span> <span class="ruby-identifier">dur1</span>)
|
|
1016
|
+
346:
|
|
1017
|
+
347: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">thruput</span>.<span class="ruby-identifier">to_f</span> <span class="ruby-operator">></span> <span class="ruby-ivar">@peak_throughput</span>
|
|
1018
|
+
348: <span class="ruby-ivar">@peak_throughput</span> = <span class="ruby-identifier">thruput</span>.<span class="ruby-identifier">to_f</span>
|
|
1019
|
+
349: <span class="ruby-keyword kw">end</span>
|
|
1020
|
+
350:
|
|
1021
|
+
351: <span class="ruby-identifier">msg</span> <span class="ruby-value str">""</span>
|
|
1022
|
+
352: <span class="ruby-identifier">msg</span> <span class="ruby-node">"duration: #{format_float(2, @duration)}"</span>
|
|
1023
|
+
353: <span class="ruby-identifier">msg</span> <span class="ruby-node">"concurrency: #{@reported_volume}"</span>
|
|
1024
|
+
354: <span class="ruby-identifier">msg</span> <span class="ruby-node">"tests/sec: #{format_float(2, @executed.to_f / @duration)}"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@duration</span>.<span class="ruby-identifier">to_i</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>
|
|
1025
|
+
355: <span class="ruby-identifier">msg</span> <span class="ruby-node">"bits/sec: #{thruput}"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@duration</span>.<span class="ruby-identifier">to_i</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>
|
|
1026
|
+
356: <span class="ruby-identifier">msg</span> <span class="ruby-node">"passed: #{@executed}"</span>
|
|
1027
|
+
357: <span class="ruby-identifier">msg</span> <span class="ruby-node">"errors: #{@errors}"</span>
|
|
1028
|
+
358: <span class="ruby-identifier">msg</span> <span class="ruby-node">"timeouts: #{@timeouts}"</span>
|
|
1029
|
+
359: <span class="ruby-identifier">msg</span> <span class="ruby-node">"client tx bytes/sec #{format_float(2, @client_tx_bytes.to_f / @duration)}"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@duration</span>.<span class="ruby-identifier">to_i</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>
|
|
1030
|
+
360: <span class="ruby-identifier">msg</span> <span class="ruby-node">"client tx msgs/sec #{format_float(2, @client_tx_msgs.to_f / @duration)}"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@duration</span>.<span class="ruby-identifier">to_i</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>
|
|
1031
|
+
361: <span class="ruby-identifier">msg</span> <span class="ruby-node">"client rx bytes/sec #{format_float(2, @client_rx_bytes.to_f / @duration)}"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@duration</span>.<span class="ruby-identifier">to_i</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>
|
|
1032
|
+
362: <span class="ruby-identifier">msg</span> <span class="ruby-node">"client rx msgs/sec #{format_float(2, @client_rx_msgs.to_f / @duration)}"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@duration</span>.<span class="ruby-identifier">to_i</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>
|
|
1033
|
+
363: <span class="ruby-identifier">msg</span> <span class="ruby-node">"server tx bytes/sec #{format_float(2, @server_tx_bytes.to_f / @duration)}"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@duration</span>.<span class="ruby-identifier">to_i</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>
|
|
1034
|
+
364: <span class="ruby-identifier">msg</span> <span class="ruby-node">"server tx msgs/sec #{format_float(2, @server_tx_msgs.to_f / @duration)}"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@duration</span>.<span class="ruby-identifier">to_i</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>
|
|
1035
|
+
365: <span class="ruby-identifier">msg</span> <span class="ruby-node">"server rx bytes/sec #{format_float(2, @server_rx_bytes.to_f / @duration)}"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@duration</span>.<span class="ruby-identifier">to_i</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>
|
|
1036
|
+
366: <span class="ruby-identifier">msg</span> <span class="ruby-node">"server rx msgs/sec #{format_float(2, @server_rx_msgs.to_f / @duration)}"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@duration</span>.<span class="ruby-identifier">to_i</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>
|
|
1037
|
+
367: <span class="ruby-identifier">msg</span> <span class="ruby-value str">""</span>
|
|
1038
|
+
368: <span class="ruby-keyword kw">end</span></pre>
|
|
1039
|
+
</div>
|
|
1040
|
+
|
|
1041
|
+
</div>
|
|
1042
|
+
|
|
1043
|
+
|
|
1044
|
+
|
|
1045
|
+
|
|
1046
|
+
</div>
|
|
1047
|
+
|
|
1048
|
+
|
|
1049
|
+
<div id="parse-verify-response-method" class="method-detail ">
|
|
1050
|
+
<a name="method-i-parse_verify_response"></a>
|
|
1051
|
+
|
|
1052
|
+
<div class="method-heading">
|
|
1053
|
+
|
|
1054
|
+
<span class="method-name">parse_verify_response</span><span
|
|
1055
|
+
class="method-args">(response)</span>
|
|
1056
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
1057
|
+
|
|
1058
|
+
</div>
|
|
1059
|
+
|
|
1060
|
+
<div class="method-description">
|
|
1061
|
+
|
|
1062
|
+
|
|
1063
|
+
|
|
1064
|
+
|
|
1065
|
+
|
|
1066
|
+
<div class="method-source-code"
|
|
1067
|
+
id="parse-verify-response-source">
|
|
1068
|
+
<pre>
|
|
1069
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_appid.rb, line 283</span>
|
|
1070
|
+
283: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parse_verify_response</span>(<span class="ruby-identifier">response</span>)
|
|
1071
|
+
284: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">response</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-comment cmt"># || response.empty?</span>
|
|
1072
|
+
285: <span class="ruby-identifier">msg</span> <span class="ruby-value str">"*** error = no response received from /verify ***\n\n"</span>
|
|
1073
|
+
286: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
|
1074
|
+
287: <span class="ruby-keyword kw">end</span>
|
|
1075
|
+
288: <span class="ruby-keyword kw">begin</span>
|
|
1076
|
+
289: <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>), <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
|
1077
|
+
290: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">response</span>[<span class="ruby-value str">"status"</span>].<span class="ruby-identifier">nil?</span>
|
|
1078
|
+
291: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">response</span>[<span class="ruby-value str">"status"</span>][<span class="ruby-value str">"error"</span>] <span class="ruby-operator">==</span> <span class="ruby-keyword kw">true</span>
|
|
1079
|
+
292: <span class="ruby-ivar">@error</span> = <span class="ruby-identifier">response</span>[<span class="ruby-value str">"status"</span>][<span class="ruby-value str">"error"</span>]
|
|
1080
|
+
293: <span class="ruby-ivar">@reason</span> = <span class="ruby-identifier">response</span>[<span class="ruby-value str">"status"</span>][<span class="ruby-value str">"reason"</span>]
|
|
1081
|
+
294: <span class="ruby-identifier">dump_status</span>(<span class="ruby-identifier">response</span>)
|
|
1082
|
+
295: <span class="ruby-identifier">msg</span> <span class="ruby-node">"*** Error = #{@error}, reason = #{@reason} ***\n\n"</span>
|
|
1083
|
+
296: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
|
1084
|
+
297: <span class="ruby-keyword kw">end</span>
|
|
1085
|
+
298: <span class="ruby-keyword kw">end</span>
|
|
1086
|
+
299: <span class="ruby-identifier">msg</span> <span class="ruby-value str">"*** verify: okay ***"</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
|
1087
|
+
300: <span class="ruby-keyword kw">return</span> <span class="ruby-value str">"*** verify: okay ***"</span>
|
|
1088
|
+
301: <span class="ruby-keyword kw">rescue</span>
|
|
1089
|
+
302: <span class="ruby-comment cmt"># could nbe json parse error</span>
|
|
1090
|
+
303: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
|
1091
|
+
304: <span class="ruby-keyword kw">end</span>
|
|
1092
|
+
305: <span class="ruby-keyword kw">end</span></pre>
|
|
1093
|
+
</div>
|
|
1094
|
+
|
|
1095
|
+
</div>
|
|
1096
|
+
|
|
1097
|
+
|
|
1098
|
+
|
|
1099
|
+
|
|
1100
|
+
</div>
|
|
1101
|
+
|
|
1102
|
+
|
|
1103
|
+
<div id="run-method" class="method-detail ">
|
|
1104
|
+
<a name="method-i-run"></a>
|
|
1105
|
+
|
|
1106
|
+
<div class="method-heading">
|
|
1107
|
+
|
|
1108
|
+
<span class="method-name">run</span><span
|
|
1109
|
+
class="method-args">(msl)</span>
|
|
1110
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
1111
|
+
|
|
1112
|
+
</div>
|
|
1113
|
+
|
|
1114
|
+
<div class="method-description">
|
|
1115
|
+
|
|
1116
|
+
|
|
1117
|
+
|
|
1118
|
+
|
|
1119
|
+
|
|
1120
|
+
<div class="method-source-code"
|
|
1121
|
+
id="run-source">
|
|
1122
|
+
<pre>
|
|
1123
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_appid.rb, line 146</span>
|
|
1124
|
+
146: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run</span>(<span class="ruby-identifier">msl</span>)
|
|
1125
|
+
147: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-identifier">msl</span>)
|
|
1126
|
+
148: <span class="ruby-keyword kw">return</span> <span class="ruby-node">"file not found: #{msl}"</span>
|
|
1127
|
+
149: <span class="ruby-keyword kw">end</span>
|
|
1128
|
+
150:
|
|
1129
|
+
151: <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">configure</span>(<span class="ruby-value str">"musl"</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">msl</span>))
|
|
1130
|
+
152:
|
|
1131
|
+
153: <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@testset</span>.<span class="ruby-identifier">empty?</span>
|
|
1132
|
+
154: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@testset</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-value str">"/"</span>) <span class="ruby-comment cmt"># assume it is the full path in this case</span>
|
|
1133
|
+
155: <span class="ruby-identifier">csv_file</span> = <span class="ruby-ivar">@testset</span>
|
|
1134
|
+
156: <span class="ruby-keyword kw">else</span>
|
|
1135
|
+
157: <span class="ruby-identifier">csv_file</span> = <span class="ruby-ivar">@params</span>[<span class="ruby-value str">"dir"</span>] <span class="ruby-operator">+</span> <span class="ruby-value str">"/"</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@testset</span>
|
|
1136
|
+
158: <span class="ruby-keyword kw">end</span>
|
|
1137
|
+
159: <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">configure</span>(<span class="ruby-value str">"csv"</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">csv_file</span>))
|
|
1138
|
+
160: <span class="ruby-keyword kw">end</span>
|
|
1139
|
+
161:
|
|
1140
|
+
162: <span class="ruby-identifier">set_global_hosts</span>
|
|
1141
|
+
163: <span class="ruby-identifier">all_hosts</span> = <span class="ruby-identifier">get_all_hosts_from_musl</span>(<span class="ruby-identifier">msl</span>)
|
|
1142
|
+
164: <span class="ruby-ivar">@hosts_config</span> = <span class="ruby-identifier">map_all_hosts_to_json</span>(<span class="ruby-identifier">all_hosts</span>)
|
|
1143
|
+
165: <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">configure</span>(<span class="ruby-value str">"hosts"</span>, <span class="ruby-ivar">@hosts_config</span>)
|
|
1144
|
+
166: <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">configure</span>(<span class="ruby-value str">"delay"</span>, <span class="ruby-ivar">@delay</span>)
|
|
1145
|
+
167: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@no_verify</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">false</span> <span class="ruby-comment cmt"># don't do verify if no_verify==true</span>
|
|
1146
|
+
168: <span class="ruby-identifier">msg</span> <span class="ruby-node">"verifying #{msl} ..."</span>
|
|
1147
|
+
169: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">verify</span>
|
|
1148
|
+
170: <span class="ruby-comment cmt"># sleep 3</span>
|
|
1149
|
+
171: <span class="ruby-identifier">v</span> = <span class="ruby-identifier">parse_verify_response</span>(<span class="ruby-identifier">response</span>)
|
|
1150
|
+
172: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">v</span>.<span class="ruby-identifier">nil?</span>
|
|
1151
|
+
173: <span class="ruby-identifier">msg</span> <span class="ruby-value str">"error in verify"</span>
|
|
1152
|
+
174: <span class="ruby-keyword kw">return</span>
|
|
1153
|
+
175: <span class="ruby-keyword kw">end</span>
|
|
1154
|
+
176: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@verify_only</span>
|
|
1155
|
+
177: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">v</span>
|
|
1156
|
+
178: <span class="ruby-keyword kw">return</span>
|
|
1157
|
+
179: <span class="ruby-keyword kw">end</span>
|
|
1158
|
+
180: <span class="ruby-keyword kw">end</span>
|
|
1159
|
+
181: <span class="ruby-identifier">msg</span> <span class="ruby-node">"starting #{msl} ..."</span>
|
|
1160
|
+
182: <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">start</span>
|
|
1161
|
+
183: <span class="ruby-identifier">start_time</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>.<span class="ruby-identifier">to_i</span>
|
|
1162
|
+
184: <span class="ruby-keyword kw">while</span> <span class="ruby-keyword kw">true</span>
|
|
1163
|
+
185: <span class="ruby-identifier">sleep</span> <span class="ruby-value">5</span>
|
|
1164
|
+
186: <span class="ruby-identifier">status</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">status</span>
|
|
1165
|
+
187: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">status</span>.<span class="ruby-identifier">nil?</span>
|
|
1166
|
+
188: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">status</span>[<span class="ruby-value str">"status"</span>].<span class="ruby-identifier">nil?</span>
|
|
1167
|
+
189: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">status</span>[<span class="ruby-value str">"status"</span>][<span class="ruby-value str">"running"</span>] <span class="ruby-operator">==</span> <span class="ruby-keyword kw">false</span>
|
|
1168
|
+
190: <span class="ruby-identifier">msg</span> <span class="ruby-node">"running = #{status["status"]["running"]}"</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
|
1169
|
+
191: <span class="ruby-identifier">r</span> = <span class="ruby-identifier">parse_status</span>(<span class="ruby-identifier">status</span>)
|
|
1170
|
+
192: <span class="ruby-identifier">dump_status</span>(<span class="ruby-identifier">status</span>, <span class="ruby-identifier">msl</span>)
|
|
1171
|
+
193: <span class="ruby-keyword kw">return</span>
|
|
1172
|
+
194: <span class="ruby-keyword kw">else</span>
|
|
1173
|
+
195: <span class="ruby-identifier">r</span> = <span class="ruby-identifier">parse_status</span>(<span class="ruby-identifier">status</span>)
|
|
1174
|
+
196: <span class="ruby-keyword kw">end</span>
|
|
1175
|
+
197: <span class="ruby-keyword kw">else</span> <span class="ruby-comment cmt"># status['status'].nil? ... no bonafide status was returned</span>
|
|
1176
|
+
198: <span class="ruby-identifier">time_now</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>.<span class="ruby-identifier">to_i</span>
|
|
1177
|
+
199: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">time_now</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">start_time</span> <span class="ruby-operator">></span> <span class="ruby-value">20</span>
|
|
1178
|
+
200: <span class="ruby-comment cmt"># puts "\nError: timing out after 20 seconds. Test had failed to start or verify"</span>
|
|
1179
|
+
201: <span class="ruby-keyword kw">break</span>
|
|
1180
|
+
202: <span class="ruby-keyword kw">end</span>
|
|
1181
|
+
203: <span class="ruby-keyword kw">end</span>
|
|
1182
|
+
204: <span class="ruby-keyword kw">end</span>
|
|
1183
|
+
205: <span class="ruby-keyword kw">end</span>
|
|
1184
|
+
206: <span class="ruby-keyword kw">ensure</span>
|
|
1185
|
+
207: <span class="ruby-identifier">msg</span> <span class="ruby-node">"stopping #{msl} ..."</span>
|
|
1186
|
+
208: <span class="ruby-keyword kw">end</span></pre>
|
|
1187
|
+
</div>
|
|
1188
|
+
|
|
1189
|
+
</div>
|
|
1190
|
+
|
|
1191
|
+
|
|
1192
|
+
|
|
1193
|
+
|
|
1194
|
+
</div>
|
|
1195
|
+
|
|
1196
|
+
|
|
1197
|
+
<div id="set-global-hosts-method" class="method-detail ">
|
|
1198
|
+
<a name="method-i-set_global_hosts"></a>
|
|
1199
|
+
|
|
1200
|
+
<div class="method-heading">
|
|
1201
|
+
|
|
1202
|
+
<span class="method-name">set_global_hosts</span><span
|
|
1203
|
+
class="method-args">()</span>
|
|
1204
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
1205
|
+
|
|
1206
|
+
</div>
|
|
1207
|
+
|
|
1208
|
+
<div class="method-description">
|
|
1209
|
+
|
|
1210
|
+
|
|
1211
|
+
|
|
1212
|
+
|
|
1213
|
+
|
|
1214
|
+
<div class="method-source-code"
|
|
1215
|
+
id="set-global-hosts-source">
|
|
1216
|
+
<pre>
|
|
1217
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_appid.rb, line 210</span>
|
|
1218
|
+
210: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_global_hosts</span>
|
|
1219
|
+
211: <span class="ruby-ivar">@hosts</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
|
|
1220
|
+
212: <span class="ruby-ivar">@addr_indexes</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
|
|
1221
|
+
213: <span class="ruby-identifier">hosts</span> = <span class="ruby-ivar">@params</span>[<span class="ruby-value str">"hosts"</span>]
|
|
1222
|
+
214: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">hosts</span>.<span class="ruby-identifier">nil?</span>
|
|
1223
|
+
215: <span class="ruby-identifier">p</span> = <span class="ruby-identifier">hosts</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">","</span>)
|
|
1224
|
+
216: <span class="ruby-identifier">p</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>
|
|
1225
|
+
217: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">h</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-value str">"-"</span>) <span class="ruby-comment cmt"># b1-1000,b2-1 to indicate addr_count</span>
|
|
1226
|
+
218: <span class="ruby-identifier">q</span> = <span class="ruby-identifier">h</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">"-"</span>)
|
|
1227
|
+
219: <span class="ruby-ivar">@hosts</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">q</span>[<span class="ruby-value">0</span>]
|
|
1228
|
+
220: <span class="ruby-ivar">@addr_indexes</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">q</span>[<span class="ruby-value">1</span>]
|
|
1229
|
+
221: <span class="ruby-keyword kw">else</span> <span class="ruby-comment cmt"># default to the 1st addr index</span>
|
|
1230
|
+
222: <span class="ruby-ivar">@hosts</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">h</span>
|
|
1231
|
+
223: <span class="ruby-ivar">@addr_indexes</span> <span class="ruby-operator"><<</span> <span class="ruby-value">1</span>
|
|
1232
|
+
224: <span class="ruby-keyword kw">end</span>
|
|
1233
|
+
225: <span class="ruby-keyword kw">end</span>
|
|
1234
|
+
226: <span class="ruby-keyword kw">else</span>
|
|
1235
|
+
227: <span class="ruby-ivar">@hosts</span> = [<span class="ruby-value str">'b1'</span>,<span class="ruby-value str">'b2'</span>]
|
|
1236
|
+
228: <span class="ruby-ivar">@addr_indexes</span> = [<span class="ruby-value">1</span>,<span class="ruby-value">1</span>]
|
|
1237
|
+
229: <span class="ruby-keyword kw">end</span>
|
|
1238
|
+
230: <span class="ruby-keyword kw">end</span></pre>
|
|
1239
|
+
</div>
|
|
1240
|
+
|
|
1241
|
+
</div>
|
|
1242
|
+
|
|
1243
|
+
|
|
1244
|
+
|
|
1245
|
+
|
|
1246
|
+
</div>
|
|
1247
|
+
|
|
1248
|
+
|
|
1249
|
+
<div id="setup-method" class="method-detail ">
|
|
1250
|
+
<a name="method-i-setup"></a>
|
|
1251
|
+
|
|
1252
|
+
<div class="method-heading">
|
|
1253
|
+
|
|
1254
|
+
<span class="method-name">setup</span><span
|
|
1255
|
+
class="method-args">(argv)</span>
|
|
1256
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
1257
|
+
|
|
1258
|
+
</div>
|
|
1259
|
+
|
|
1260
|
+
<div class="method-description">
|
|
1261
|
+
|
|
1262
|
+
|
|
1263
|
+
|
|
1264
|
+
|
|
1265
|
+
|
|
1266
|
+
<div class="method-source-code"
|
|
1267
|
+
id="setup-source">
|
|
1268
|
+
<pre>
|
|
1269
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_appid.rb, line 103</span>
|
|
1270
|
+
103: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
1271
|
+
104: <span class="ruby-identifier">parse_cli</span> <span class="ruby-identifier">argv</span>
|
|
1272
|
+
105: <span class="ruby-ivar">@params</span> = {}
|
|
1273
|
+
106: <span class="ruby-ivar">@peak_throughput</span> = <span class="ruby-value">0.0</span>
|
|
1274
|
+
107:
|
|
1275
|
+
108: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'test'</span>]
|
|
1276
|
+
109: <span class="ruby-ivar">@verify_only</span> = <span class="ruby-keyword kw">true</span>
|
|
1277
|
+
110: <span class="ruby-keyword kw">else</span>
|
|
1278
|
+
111: <span class="ruby-ivar">@verify_only</span> = <span class="ruby-keyword kw">false</span>
|
|
1279
|
+
112: <span class="ruby-keyword kw">end</span>
|
|
1280
|
+
113:
|
|
1281
|
+
114: <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">not</span> <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'pattern'</span>]
|
|
1282
|
+
115: <span class="ruby-ivar">@cmd_line_pattern</span> = <span class="ruby-value str">"{ \"iterations\": 1, \"intervals\": [ {\"iterations\":1, \"end\":100, \"start\":1, \"duration\":20 } ] }"</span>
|
|
1283
|
+
116: <span class="ruby-keyword kw">else</span>
|
|
1284
|
+
117: <span class="ruby-ivar">@cmd_line_pattern</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'pattern'</span>]
|
|
1285
|
+
118: <span class="ruby-keyword kw">end</span>
|
|
1286
|
+
119:
|
|
1287
|
+
120: <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">not</span> <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'interfaces'</span>]
|
|
1288
|
+
121: <span class="ruby-ivar">@cmd_line_hosts</span> = <span class="ruby-value str">"b1,b2"</span>
|
|
1289
|
+
122: <span class="ruby-keyword kw">else</span>
|
|
1290
|
+
123: <span class="ruby-ivar">@cmd_line_hosts</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'interfaces'</span>]
|
|
1291
|
+
124: <span class="ruby-keyword kw">end</span>
|
|
1292
|
+
125:
|
|
1293
|
+
126: <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">not</span> <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'testset'</span>]
|
|
1294
|
+
127: <span class="ruby-ivar">@testset</span> = <span class="ruby-value str">""</span>
|
|
1295
|
+
128: <span class="ruby-keyword kw">else</span>
|
|
1296
|
+
129: <span class="ruby-ivar">@testset</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'testset'</span>]
|
|
1297
|
+
130: <span class="ruby-keyword kw">end</span>
|
|
1298
|
+
131:
|
|
1299
|
+
132: <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">not</span> <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'delay'</span>]
|
|
1300
|
+
133: <span class="ruby-ivar">@delay</span> = <span class="ruby-value">0</span>
|
|
1301
|
+
134: <span class="ruby-keyword kw">else</span>
|
|
1302
|
+
135: <span class="ruby-ivar">@delay</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'delay'</span>].<span class="ruby-identifier">to_i</span>
|
|
1303
|
+
136: <span class="ruby-keyword kw">end</span>
|
|
1304
|
+
137:
|
|
1305
|
+
138: <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">not</span> <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'no_verify'</span>]
|
|
1306
|
+
139: <span class="ruby-ivar">@no_verify</span> = <span class="ruby-keyword kw">false</span>
|
|
1307
|
+
140: <span class="ruby-keyword kw">else</span>
|
|
1308
|
+
141: <span class="ruby-ivar">@no_verify</span> = <span class="ruby-keyword kw">true</span>
|
|
1309
|
+
142: <span class="ruby-keyword kw">end</span>
|
|
1310
|
+
143:
|
|
1311
|
+
144: <span class="ruby-keyword kw">end</span></pre>
|
|
1312
|
+
</div>
|
|
1313
|
+
|
|
1314
|
+
</div>
|
|
1315
|
+
|
|
1316
|
+
|
|
1317
|
+
|
|
1318
|
+
|
|
1319
|
+
</div>
|
|
1320
|
+
|
|
1321
|
+
|
|
1322
|
+
</div>
|
|
1323
|
+
|
|
1324
|
+
|
|
1325
|
+
</div>
|
|
1326
|
+
|
|
1327
|
+
|
|
1328
|
+
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
|
1329
|
+
|
|
1330
|
+
<p>Disabled; run with --debug to generate this.</p>
|
|
1331
|
+
|
|
1332
|
+
</div>
|
|
1333
|
+
|
|
1334
|
+
<div id="validator-badges">
|
|
1335
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
1336
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
|
1337
|
+
Rdoc Generator</a> 1.1.6</small>.</p>
|
|
1338
|
+
</div>
|
|
1339
|
+
|
|
1340
|
+
</body>
|
|
1341
|
+
</html>
|
|
1342
|
+
|