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
data/rdoc/Mu/Muapi.html
ADDED
|
@@ -0,0 +1,1226 @@
|
|
|
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::Muapi</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/api/muapi_rb.html?TB_iframe=true&height=550&width=785"
|
|
42
|
+
class="thickbox" title="lib/mu/api/muapi.rb">lib/mu/api/muapi.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="../Object.html">Object</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-c-new">::new</a></li>
|
|
73
|
+
|
|
74
|
+
<li><a href="#method-i-archive">#archive</a></li>
|
|
75
|
+
|
|
76
|
+
<li><a href="#method-i-backup">#backup</a></li>
|
|
77
|
+
|
|
78
|
+
<li><a href="#method-i-capture">#capture</a></li>
|
|
79
|
+
|
|
80
|
+
<li><a href="#method-i-delete">#delete</a></li>
|
|
81
|
+
|
|
82
|
+
<li><a href="#method-i-export_by_type_and_name">#export_by_type_and_name</a></li>
|
|
83
|
+
|
|
84
|
+
<li><a href="#method-i-export_by_uuid">#export_by_uuid</a></li>
|
|
85
|
+
|
|
86
|
+
<li><a href="#method-i-get_faults">#get_faults</a></li>
|
|
87
|
+
|
|
88
|
+
<li><a href="#method-i-get_name">#get_name</a></li>
|
|
89
|
+
|
|
90
|
+
<li><a href="#method-i-list">#list</a></li>
|
|
91
|
+
|
|
92
|
+
<li><a href="#method-i-list_by_status">#list_by_status</a></li>
|
|
93
|
+
|
|
94
|
+
<li><a href="#method-i-pause">#pause</a></li>
|
|
95
|
+
|
|
96
|
+
<li><a href="#method-i-resume">#resume</a></li>
|
|
97
|
+
|
|
98
|
+
<li><a href="#method-i-run">#run</a></li>
|
|
99
|
+
|
|
100
|
+
<li><a href="#method-i-status">#status</a></li>
|
|
101
|
+
|
|
102
|
+
<li><a href="#method-i-stop">#stop</a></li>
|
|
103
|
+
|
|
104
|
+
<li><a href="#method-i-types">#types</a></li>
|
|
105
|
+
|
|
106
|
+
</ul>
|
|
107
|
+
</div>
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
<!-- Included Modules -->
|
|
111
|
+
|
|
112
|
+
<div id="includes-section" class="section">
|
|
113
|
+
<h3 class="section-header">Included Modules</h3>
|
|
114
|
+
<ul class="link-list">
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
<li><span class="include">Helper</span></li>
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
</ul>
|
|
121
|
+
</div>
|
|
122
|
+
|
|
123
|
+
</div>
|
|
124
|
+
|
|
125
|
+
<div id="project-metadata">
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
<div id="fileindex-section" class="section project-section">
|
|
129
|
+
<h3 class="section-header">Files</h3>
|
|
130
|
+
<ul>
|
|
131
|
+
|
|
132
|
+
<li class="file"><a href="../Gemfile.html">Gemfile</a></li>
|
|
133
|
+
|
|
134
|
+
<li class="file"><a href="../LICENSE_txt.html">LICENSE.txt</a></li>
|
|
135
|
+
|
|
136
|
+
<li class="file"><a href="../README_rdoc.html">README.rdoc</a></li>
|
|
137
|
+
|
|
138
|
+
<li class="file"><a href="../Rakefile.html">Rakefile</a></li>
|
|
139
|
+
|
|
140
|
+
<li class="file"><a href="../VERSION.html">VERSION</a></li>
|
|
141
|
+
|
|
142
|
+
</ul>
|
|
143
|
+
</div>
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
<div id="classindex-section" class="section project-section">
|
|
147
|
+
<h3 class="section-header">Class Index
|
|
148
|
+
<span class="search-toggle"><img src="../images/find.png"
|
|
149
|
+
height="16" width="16" alt="[+]"
|
|
150
|
+
title="show/hide quicksearch" /></span></h3>
|
|
151
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
|
152
|
+
<fieldset>
|
|
153
|
+
<legend>Quicksearch</legend>
|
|
154
|
+
<input type="text" name="quicksearch" value=""
|
|
155
|
+
class="quicksearch-field" />
|
|
156
|
+
</fieldset>
|
|
157
|
+
</form>
|
|
158
|
+
|
|
159
|
+
<ul class="link-list">
|
|
160
|
+
|
|
161
|
+
<li><a href="../Mu.html">Mu</a></li>
|
|
162
|
+
|
|
163
|
+
<li><a href="../Mu/Client.html">Mu::Client</a></li>
|
|
164
|
+
|
|
165
|
+
<li><a href="../Mu/Command.html">Mu::Command</a></li>
|
|
166
|
+
|
|
167
|
+
<li><a href="../Mu/Command/API.html">Mu::Command::API</a></li>
|
|
168
|
+
|
|
169
|
+
<li><a href="../Mu/Command/API.html">Mu::Command::API</a></li>
|
|
170
|
+
|
|
171
|
+
<li><a href="../Mu/Command/Cmd_appid.html">Mu::Command::Cmd_appid</a></li>
|
|
172
|
+
|
|
173
|
+
<li><a href="../Mu/Command/Cmd_cli.html">Mu::Command::Cmd_cli</a></li>
|
|
174
|
+
|
|
175
|
+
<li><a href="../Mu/Command/Cmd_ddt.html">Mu::Command::Cmd_ddt</a></li>
|
|
176
|
+
|
|
177
|
+
<li><a href="../Mu/Command/Cmd_homepage.html">Mu::Command::Cmd_homepage</a></li>
|
|
178
|
+
|
|
179
|
+
<li><a href="../Mu/Command/Cmd_muapi.html">Mu::Command::Cmd_muapi</a></li>
|
|
180
|
+
|
|
181
|
+
<li><a href="../Mu/Command/Cmd_netconfig.html">Mu::Command::Cmd_netconfig</a></li>
|
|
182
|
+
|
|
183
|
+
<li><a href="../Mu/Command/Cmd_runscale.html">Mu::Command::Cmd_runscale</a></li>
|
|
184
|
+
|
|
185
|
+
<li><a href="../Mu/Command/Cmd_runscenario.html">Mu::Command::Cmd_runscenario</a></li>
|
|
186
|
+
|
|
187
|
+
<li><a href="../Mu/Command/Cmd_runverify.html">Mu::Command::Cmd_runverify</a></li>
|
|
188
|
+
|
|
189
|
+
<li><a href="../Mu/Command/Cmd_scale.html">Mu::Command::Cmd_scale</a></li>
|
|
190
|
+
|
|
191
|
+
<li><a href="../Mu/Command/Cmd_system.html">Mu::Command::Cmd_system</a></li>
|
|
192
|
+
|
|
193
|
+
<li><a href="../Mu/Command/Curl.html">Mu::Command::Curl</a></li>
|
|
194
|
+
|
|
195
|
+
<li><a href="../Mu/Command/Help.html">Mu::Command::Help</a></li>
|
|
196
|
+
|
|
197
|
+
<li><a href="../Mu/Curl.html">Mu::Curl</a></li>
|
|
198
|
+
|
|
199
|
+
<li><a href="../Mu/Curl/Error.html">Mu::Curl::Error</a></li>
|
|
200
|
+
|
|
201
|
+
<li><a href="../Mu/Curl/Error/Authorize.html">Mu::Curl::Error::Authorize</a></li>
|
|
202
|
+
|
|
203
|
+
<li><a href="../Mu/Curl/Error/Connect.html">Mu::Curl::Error::Connect</a></li>
|
|
204
|
+
|
|
205
|
+
<li><a href="../Mu/Curl/Error/DNS.html">Mu::Curl::Error::DNS</a></li>
|
|
206
|
+
|
|
207
|
+
<li><a href="../Mu/Curl/Error/Region.html">Mu::Curl::Error::Region</a></li>
|
|
208
|
+
|
|
209
|
+
<li><a href="../Mu/Curl/Error/Status.html">Mu::Curl::Error::Status</a></li>
|
|
210
|
+
|
|
211
|
+
<li><a href="../Mu/Curl/Error/Timeout.html">Mu::Curl::Error::Timeout</a></li>
|
|
212
|
+
|
|
213
|
+
<li><a href="../Mu/Curl/Verify.html">Mu::Curl::Verify</a></li>
|
|
214
|
+
|
|
215
|
+
<li><a href="../Mu/Curl/Verify/Request.html">Mu::Curl::Verify::Request</a></li>
|
|
216
|
+
|
|
217
|
+
<li><a href="../Mu/Curl/Verify/Response.html">Mu::Curl::Verify::Response</a></li>
|
|
218
|
+
|
|
219
|
+
<li><a href="../Mu/Curl/Verify/Result.html">Mu::Curl::Verify::Result</a></li>
|
|
220
|
+
|
|
221
|
+
<li><a href="../Mu/Ddt.html">Mu::Ddt</a></li>
|
|
222
|
+
|
|
223
|
+
<li><a href="../Mu/Helper.html">Mu::Helper</a></li>
|
|
224
|
+
|
|
225
|
+
<li><a href="../Mu/Homepage.html">Mu::Homepage</a></li>
|
|
226
|
+
|
|
227
|
+
<li><a href="../Mu/HttpHelper.html">Mu::HttpHelper</a></li>
|
|
228
|
+
|
|
229
|
+
<li><a href="../Mu/Muapi.html">Mu::Muapi</a></li>
|
|
230
|
+
|
|
231
|
+
<li><a href="../Mu/Netconfig.html">Mu::Netconfig</a></li>
|
|
232
|
+
|
|
233
|
+
<li><a href="../Mu/Scale.html">Mu::Scale</a></li>
|
|
234
|
+
|
|
235
|
+
<li><a href="../Mu/System.html">Mu::System</a></li>
|
|
236
|
+
|
|
237
|
+
<li><a href="../Test.html">Test</a></li>
|
|
238
|
+
|
|
239
|
+
<li><a href="../Test/Unit.html">Test::Unit</a></li>
|
|
240
|
+
|
|
241
|
+
<li><a href="../Test/Unit/TestCase.html">Test::Unit::TestCase</a></li>
|
|
242
|
+
|
|
243
|
+
<li><a href="../Object.html">Object</a></li>
|
|
244
|
+
|
|
245
|
+
<li><a href="../TCTestMu.html">TCTestMu</a></li>
|
|
246
|
+
|
|
247
|
+
</ul>
|
|
248
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
|
249
|
+
</div>
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
</div>
|
|
253
|
+
</div>
|
|
254
|
+
|
|
255
|
+
<div id="documentation">
|
|
256
|
+
<h1 class="class">Mu::Muapi</h1>
|
|
257
|
+
|
|
258
|
+
<div id="description">
|
|
259
|
+
|
|
260
|
+
</div>
|
|
261
|
+
|
|
262
|
+
<!-- Constants -->
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
<!-- Attributes -->
|
|
266
|
+
|
|
267
|
+
<div id="attribute-method-details" class="method-section section">
|
|
268
|
+
<h3 class="section-header">Attributes</h3>
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
<div id="host-attribute-method" class="method-detail">
|
|
272
|
+
<a name="host"></a>
|
|
273
|
+
|
|
274
|
+
<a name="host="></a>
|
|
275
|
+
|
|
276
|
+
<div class="method-heading attribute-method-heading">
|
|
277
|
+
<span class="method-name">host</span><span
|
|
278
|
+
class="attribute-access-type">[RW]</span>
|
|
279
|
+
</div>
|
|
280
|
+
|
|
281
|
+
<div class="method-description">
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
</div>
|
|
286
|
+
</div>
|
|
287
|
+
|
|
288
|
+
<div id="docroot-attribute-method" class="method-detail">
|
|
289
|
+
<a name="docroot"></a>
|
|
290
|
+
|
|
291
|
+
<a name="docroot="></a>
|
|
292
|
+
|
|
293
|
+
<div class="method-heading attribute-method-heading">
|
|
294
|
+
<span class="method-name">docroot</span><span
|
|
295
|
+
class="attribute-access-type">[RW]</span>
|
|
296
|
+
</div>
|
|
297
|
+
|
|
298
|
+
<div class="method-description">
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
</div>
|
|
303
|
+
</div>
|
|
304
|
+
|
|
305
|
+
<div id="posted-uuid-attribute-method" class="method-detail">
|
|
306
|
+
<a name="posted_uuid"></a>
|
|
307
|
+
|
|
308
|
+
<a name="posted_uuid="></a>
|
|
309
|
+
|
|
310
|
+
<div class="method-heading attribute-method-heading">
|
|
311
|
+
<span class="method-name">posted_uuid</span><span
|
|
312
|
+
class="attribute-access-type">[RW]</span>
|
|
313
|
+
</div>
|
|
314
|
+
|
|
315
|
+
<div class="method-description">
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
</div>
|
|
320
|
+
</div>
|
|
321
|
+
|
|
322
|
+
<div id="run-uuid-attribute-method" class="method-detail">
|
|
323
|
+
<a name="run_uuid"></a>
|
|
324
|
+
|
|
325
|
+
<a name="run_uuid="></a>
|
|
326
|
+
|
|
327
|
+
<div class="method-heading attribute-method-heading">
|
|
328
|
+
<span class="method-name">run_uuid</span><span
|
|
329
|
+
class="attribute-access-type">[RW]</span>
|
|
330
|
+
</div>
|
|
331
|
+
|
|
332
|
+
<div class="method-description">
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
</div>
|
|
337
|
+
</div>
|
|
338
|
+
|
|
339
|
+
<div id="job-id-attribute-method" class="method-detail">
|
|
340
|
+
<a name="job_id"></a>
|
|
341
|
+
|
|
342
|
+
<a name="job_id="></a>
|
|
343
|
+
|
|
344
|
+
<div class="method-heading attribute-method-heading">
|
|
345
|
+
<span class="method-name">job_id</span><span
|
|
346
|
+
class="attribute-access-type">[RW]</span>
|
|
347
|
+
</div>
|
|
348
|
+
|
|
349
|
+
<div class="method-description">
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
</div>
|
|
354
|
+
</div>
|
|
355
|
+
|
|
356
|
+
<div id="username-attribute-method" class="method-detail">
|
|
357
|
+
<a name="username"></a>
|
|
358
|
+
|
|
359
|
+
<a name="username="></a>
|
|
360
|
+
|
|
361
|
+
<div class="method-heading attribute-method-heading">
|
|
362
|
+
<span class="method-name">username</span><span
|
|
363
|
+
class="attribute-access-type">[RW]</span>
|
|
364
|
+
</div>
|
|
365
|
+
|
|
366
|
+
<div class="method-description">
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
</div>
|
|
371
|
+
</div>
|
|
372
|
+
|
|
373
|
+
<div id="password-attribute-method" class="method-detail">
|
|
374
|
+
<a name="password"></a>
|
|
375
|
+
|
|
376
|
+
<a name="password="></a>
|
|
377
|
+
|
|
378
|
+
<div class="method-heading attribute-method-heading">
|
|
379
|
+
<span class="method-name">password</span><span
|
|
380
|
+
class="attribute-access-type">[RW]</span>
|
|
381
|
+
</div>
|
|
382
|
+
|
|
383
|
+
<div class="method-description">
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
</div>
|
|
388
|
+
</div>
|
|
389
|
+
|
|
390
|
+
<div id="params-attribute-method" class="method-detail">
|
|
391
|
+
<a name="params"></a>
|
|
392
|
+
|
|
393
|
+
<a name="params="></a>
|
|
394
|
+
|
|
395
|
+
<div class="method-heading attribute-method-heading">
|
|
396
|
+
<span class="method-name">params</span><span
|
|
397
|
+
class="attribute-access-type">[RW]</span>
|
|
398
|
+
</div>
|
|
399
|
+
|
|
400
|
+
<div class="method-description">
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
</div>
|
|
405
|
+
</div>
|
|
406
|
+
|
|
407
|
+
<div id="expected-error-attribute-method" class="method-detail">
|
|
408
|
+
<a name="expected_error"></a>
|
|
409
|
+
|
|
410
|
+
<a name="expected_error="></a>
|
|
411
|
+
|
|
412
|
+
<div class="method-heading attribute-method-heading">
|
|
413
|
+
<span class="method-name">expected_error</span><span
|
|
414
|
+
class="attribute-access-type">[RW]</span>
|
|
415
|
+
</div>
|
|
416
|
+
|
|
417
|
+
<div class="method-description">
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
</div>
|
|
422
|
+
</div>
|
|
423
|
+
|
|
424
|
+
</div>
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
<!-- Methods -->
|
|
428
|
+
|
|
429
|
+
<div id="public-class-method-details" class="method-section section">
|
|
430
|
+
<h3 class="section-header">Public Class Methods</h3>
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
<div id="new-method" class="method-detail ">
|
|
434
|
+
<a name="method-c-new"></a>
|
|
435
|
+
|
|
436
|
+
<div class="method-heading">
|
|
437
|
+
|
|
438
|
+
<span class="method-name">new</span><span
|
|
439
|
+
class="method-args">(host=ENV['MU_IP'], username=ENV['MU_ADMIN_USER'], password=ENV['MU_ADMIN_PASS'])</span>
|
|
440
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
441
|
+
|
|
442
|
+
</div>
|
|
443
|
+
|
|
444
|
+
<div class="method-description">
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
<div class="method-source-code"
|
|
451
|
+
id="new-source">
|
|
452
|
+
<pre>
|
|
453
|
+
<span class="ruby-comment cmt"># File lib/mu/api/muapi.rb, line 7</span>
|
|
454
|
+
7: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">host</span>=<span class="ruby-constant">ENV</span>[<span class="ruby-value str">'MU_IP'</span>], <span class="ruby-identifier">username</span>=<span class="ruby-constant">ENV</span>[<span class="ruby-value str">'MU_ADMIN_USER'</span>], <span class="ruby-identifier">password</span>=<span class="ruby-constant">ENV</span>[<span class="ruby-value str">'MU_ADMIN_PASS'</span>])
|
|
455
|
+
8: <span class="ruby-ivar">@host</span> = <span class="ruby-identifier">host</span>
|
|
456
|
+
9: <span class="ruby-ivar">@username</span> = <span class="ruby-identifier">username</span>
|
|
457
|
+
10: <span class="ruby-ivar">@password</span> = <span class="ruby-identifier">password</span>
|
|
458
|
+
11: <span class="ruby-ivar">@docroot</span> = <span class="ruby-value str">"/api/v3/"</span>
|
|
459
|
+
12: <span class="ruby-ivar">@params</span> = <span class="ruby-keyword kw">nil</span>
|
|
460
|
+
13: <span class="ruby-ivar">@expected_error</span> = <span class="ruby-keyword kw">nil</span>
|
|
461
|
+
14: <span class="ruby-ivar">@http</span> = <span class="ruby-constant">HttpHelper</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@host</span>, <span class="ruby-ivar">@username</span>, <span class="ruby-ivar">@password</span>, <span class="ruby-ivar">@docroot</span>)
|
|
462
|
+
15: <span class="ruby-identifier">msg</span> <span class="ruby-node">"Created Mu Api object to :#{@host}"</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
|
463
|
+
16: <span class="ruby-keyword kw">end</span></pre>
|
|
464
|
+
</div>
|
|
465
|
+
|
|
466
|
+
</div>
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
</div>
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
</div>
|
|
475
|
+
|
|
476
|
+
<div id="public-instance-method-details" class="method-section section">
|
|
477
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
<div id="archive-method" class="method-detail ">
|
|
481
|
+
<a name="method-i-archive"></a>
|
|
482
|
+
|
|
483
|
+
<div class="method-heading">
|
|
484
|
+
|
|
485
|
+
<span class="method-name">archive</span><span
|
|
486
|
+
class="method-args">(command="run", id=@run_uuid)</span>
|
|
487
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
488
|
+
|
|
489
|
+
</div>
|
|
490
|
+
|
|
491
|
+
<div class="method-description">
|
|
492
|
+
|
|
493
|
+
<p>
|
|
494
|
+
performs archive operations
|
|
495
|
+
</p>
|
|
496
|
+
<pre>
|
|
497
|
+
* command=run to create a test archive
|
|
498
|
+
* command=status to view the status of a test archive job
|
|
499
|
+
* command=get to download a test archive job
|
|
500
|
+
* uuid = the uuid of the test</pre>
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
<div class="method-source-code"
|
|
505
|
+
id="archive-source">
|
|
506
|
+
<pre>
|
|
507
|
+
<span class="ruby-comment cmt"># File lib/mu/api/muapi.rb, line 157</span>
|
|
508
|
+
157: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">archive</span>(<span class="ruby-identifier">command</span>=<span class="ruby-value str">"run"</span>, <span class="ruby-identifier">id</span>=<span class="ruby-ivar">@run_uuid</span>)
|
|
509
|
+
158: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">command</span>
|
|
510
|
+
159: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'run'</span>
|
|
511
|
+
160: <span class="ruby-identifier">request_string</span> = <span class="ruby-node">"archive/run?uuid=#{id}"</span>
|
|
512
|
+
161: <span class="ruby-identifier">request_string</span> <span class="ruby-operator">+=</span> <span class="ruby-ivar">@params</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@params</span>.<span class="ruby-identifier">nil?</span>
|
|
513
|
+
162: <span class="ruby-identifier">doc</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get_xml</span>(<span class="ruby-identifier">request_string</span>)
|
|
514
|
+
163: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">"//job"</span>).<span class="ruby-identifier">empty?</span>
|
|
515
|
+
164: <span class="ruby-ivar">@job_id</span> = <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">"//job"</span>)[<span class="ruby-value">0</span>].<span class="ruby-identifier">attribute</span>(<span class="ruby-value str">'id'</span>)
|
|
516
|
+
165: <span class="ruby-identifier">msg</span> <span class="ruby-node">"job_id = #{@job_id}"</span>
|
|
517
|
+
166: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@job_id</span>
|
|
518
|
+
167: <span class="ruby-keyword kw">end</span>
|
|
519
|
+
168: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">doc</span>
|
|
520
|
+
169: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'status'</span>
|
|
521
|
+
170: <span class="ruby-identifier">doc</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get</span>(<span class="ruby-node">"archive/status?jobId=#{id}"</span>)
|
|
522
|
+
171: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">doc</span>
|
|
523
|
+
172: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'get'</span>
|
|
524
|
+
173: <span class="ruby-identifier">file_size</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">download_file</span>(<span class="ruby-node">"archive/get?jobId=#{id}"</span>,<span class="ruby-node">"#{id}.zip"</span>)
|
|
525
|
+
174: <span class="ruby-keyword kw">return</span> <span class="ruby-node">"#{id}.zip file size = #{file_size}"</span>
|
|
526
|
+
175: <span class="ruby-keyword kw">end</span>
|
|
527
|
+
176: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
|
|
528
|
+
177: <span class="ruby-keyword kw">end</span></pre>
|
|
529
|
+
</div>
|
|
530
|
+
|
|
531
|
+
</div>
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
</div>
|
|
537
|
+
|
|
538
|
+
|
|
539
|
+
<div id="backup-method" class="method-detail ">
|
|
540
|
+
<a name="method-i-backup"></a>
|
|
541
|
+
|
|
542
|
+
<div class="method-heading">
|
|
543
|
+
|
|
544
|
+
<span class="method-name">backup</span><span
|
|
545
|
+
class="method-args">(command="run", name="")</span>
|
|
546
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
547
|
+
|
|
548
|
+
</div>
|
|
549
|
+
|
|
550
|
+
<div class="method-description">
|
|
551
|
+
|
|
552
|
+
<p>
|
|
553
|
+
performs backup operations
|
|
554
|
+
</p>
|
|
555
|
+
<pre>
|
|
556
|
+
* command=run to create a system backup file.
|
|
557
|
+
* command=status to view the status of a backup job. If no backup job is running, gets the date of the most recent backup.
|
|
558
|
+
* command=get to retrieve the backup file
|
|
559
|
+
* name = backup file name</pre>
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
<div class="method-source-code"
|
|
564
|
+
id="backup-source">
|
|
565
|
+
<pre>
|
|
566
|
+
<span class="ruby-comment cmt"># File lib/mu/api/muapi.rb, line 184</span>
|
|
567
|
+
184: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">backup</span>(<span class="ruby-identifier">command</span>=<span class="ruby-value str">"run"</span>, <span class="ruby-identifier">name</span>=<span class="ruby-value str">""</span>)
|
|
568
|
+
185: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">command</span>
|
|
569
|
+
186: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'run'</span>
|
|
570
|
+
187: <span class="ruby-identifier">doc</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get_xml</span>(<span class="ruby-value str">"backup/run"</span>)
|
|
571
|
+
188: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">"//job"</span>).<span class="ruby-identifier">empty?</span>
|
|
572
|
+
189: <span class="ruby-ivar">@job_id</span> = <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">"//job"</span>)[<span class="ruby-value">0</span>].<span class="ruby-identifier">attribute</span>(<span class="ruby-value str">'id'</span>)
|
|
573
|
+
190: <span class="ruby-identifier">msg</span> <span class="ruby-node">"job_id = #{@job_id}"</span>
|
|
574
|
+
191: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@job_id</span>
|
|
575
|
+
192: <span class="ruby-keyword kw">end</span>
|
|
576
|
+
193: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">doc</span>
|
|
577
|
+
194: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'status'</span>
|
|
578
|
+
195: <span class="ruby-identifier">doc</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value str">"backup/status"</span>)
|
|
579
|
+
196: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">doc</span>
|
|
580
|
+
197: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'get'</span>
|
|
581
|
+
198: <span class="ruby-identifier">file_size</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">download_file</span>(<span class="ruby-value str">"backup/get"</span>,<span class="ruby-node">"#{name}.dat"</span>)
|
|
582
|
+
199: <span class="ruby-keyword kw">return</span> <span class="ruby-node">"#{name}.dat file size = #{file_size}"</span>
|
|
583
|
+
200: <span class="ruby-keyword kw">end</span>
|
|
584
|
+
201: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
|
|
585
|
+
202: <span class="ruby-keyword kw">end</span></pre>
|
|
586
|
+
</div>
|
|
587
|
+
|
|
588
|
+
</div>
|
|
589
|
+
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
</div>
|
|
594
|
+
|
|
595
|
+
|
|
596
|
+
<div id="capture-method" class="method-detail ">
|
|
597
|
+
<a name="method-i-capture"></a>
|
|
598
|
+
|
|
599
|
+
<div class="method-heading">
|
|
600
|
+
|
|
601
|
+
<span class="method-name">capture</span><span
|
|
602
|
+
class="method-args">(command='run', port='a1', id=@job_id)</span>
|
|
603
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
604
|
+
|
|
605
|
+
</div>
|
|
606
|
+
|
|
607
|
+
<div class="method-description">
|
|
608
|
+
|
|
609
|
+
<p>
|
|
610
|
+
packet capture operations
|
|
611
|
+
</p>
|
|
612
|
+
<pre>
|
|
613
|
+
* command=run to start capturing packets on the specified Mu appliance port
|
|
614
|
+
* command=status tp view the status of packet capture activity
|
|
615
|
+
* command=get to download the pcap file generated during packet capture
|
|
616
|
+
* port = the Mu appliance port
|
|
617
|
+
* id = job_id for status and get commands</pre>
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
<div class="method-source-code"
|
|
622
|
+
id="capture-source">
|
|
623
|
+
<pre>
|
|
624
|
+
<span class="ruby-comment cmt"># File lib/mu/api/muapi.rb, line 210</span>
|
|
625
|
+
210: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">capture</span>(<span class="ruby-identifier">command</span>=<span class="ruby-value str">'run'</span>, <span class="ruby-identifier">port</span>=<span class="ruby-value str">'a1'</span>, <span class="ruby-identifier">id</span>=<span class="ruby-ivar">@job_id</span>)
|
|
626
|
+
211: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">command</span>
|
|
627
|
+
212: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'run'</span>
|
|
628
|
+
213: <span class="ruby-identifier">doc</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get_xml</span>(<span class="ruby-node">"capture/run?port=#{port}"</span>)
|
|
629
|
+
214: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">"//job"</span>).<span class="ruby-identifier">empty?</span>
|
|
630
|
+
215: <span class="ruby-ivar">@job_id</span> = <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">"//job"</span>)[<span class="ruby-value">0</span>].<span class="ruby-identifier">attribute</span>(<span class="ruby-value str">'id'</span>)
|
|
631
|
+
216: <span class="ruby-identifier">msg</span> <span class="ruby-node">"job_id = #{@job_id}"</span>
|
|
632
|
+
217: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@job_id</span>
|
|
633
|
+
218: <span class="ruby-keyword kw">end</span>
|
|
634
|
+
219: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">doc</span>
|
|
635
|
+
220: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'status'</span>
|
|
636
|
+
221: <span class="ruby-identifier">doc</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get</span>(<span class="ruby-node">"capture/status?jobId=#{id}"</span>)
|
|
637
|
+
222: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">doc</span>
|
|
638
|
+
223: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'get'</span>
|
|
639
|
+
224: <span class="ruby-identifier">file_size</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">download_file</span>(<span class="ruby-node">"capture/get?jobId=#{id}"</span>,<span class="ruby-node">"#{id}.pcap"</span>)
|
|
640
|
+
225: <span class="ruby-keyword kw">return</span> <span class="ruby-node">"#{id}.pcap file size = #{file_size}"</span>
|
|
641
|
+
226: <span class="ruby-keyword kw">end</span>
|
|
642
|
+
227: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
|
|
643
|
+
228: <span class="ruby-keyword kw">end</span></pre>
|
|
644
|
+
</div>
|
|
645
|
+
|
|
646
|
+
</div>
|
|
647
|
+
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
|
|
651
|
+
</div>
|
|
652
|
+
|
|
653
|
+
|
|
654
|
+
<div id="delete-method" class="method-detail ">
|
|
655
|
+
<a name="method-i-delete"></a>
|
|
656
|
+
|
|
657
|
+
<div class="method-heading">
|
|
658
|
+
|
|
659
|
+
<span class="method-name">delete</span><span
|
|
660
|
+
class="method-args">(uuid=@run_uuid)</span>
|
|
661
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
662
|
+
|
|
663
|
+
</div>
|
|
664
|
+
|
|
665
|
+
<div class="method-description">
|
|
666
|
+
|
|
667
|
+
<p>
|
|
668
|
+
deletes the specified test
|
|
669
|
+
</p>
|
|
670
|
+
<pre>
|
|
671
|
+
* uuid = the uuid of the test</pre>
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
|
|
675
|
+
<div class="method-source-code"
|
|
676
|
+
id="delete-source">
|
|
677
|
+
<pre>
|
|
678
|
+
<span class="ruby-comment cmt"># File lib/mu/api/muapi.rb, line 95</span>
|
|
679
|
+
95: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete</span>(<span class="ruby-identifier">uuid</span>=<span class="ruby-ivar">@run_uuid</span>)
|
|
680
|
+
96: <span class="ruby-identifier">doc</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get_xml</span>(<span class="ruby-node">"analysis/delete?uuid=#{uuid}"</span>)
|
|
681
|
+
97: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">"//analysis"</span>).<span class="ruby-identifier">empty?</span>
|
|
682
|
+
98: <span class="ruby-identifier">status</span> = <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">"//analysis"</span>)[<span class="ruby-value">0</span>].<span class="ruby-identifier">attribute</span>(<span class="ruby-value str">'status'</span>)
|
|
683
|
+
99: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">status</span>
|
|
684
|
+
100: <span class="ruby-keyword kw">end</span>
|
|
685
|
+
101: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>
|
|
686
|
+
102: <span class="ruby-keyword kw">end</span></pre>
|
|
687
|
+
</div>
|
|
688
|
+
|
|
689
|
+
</div>
|
|
690
|
+
|
|
691
|
+
|
|
692
|
+
|
|
693
|
+
|
|
694
|
+
</div>
|
|
695
|
+
|
|
696
|
+
|
|
697
|
+
<div id="export-by-type-and-name-method" class="method-detail ">
|
|
698
|
+
<a name="method-i-export_by_type_and_name"></a>
|
|
699
|
+
|
|
700
|
+
<div class="method-heading">
|
|
701
|
+
|
|
702
|
+
<span class="method-name">export_by_type_and_name</span><span
|
|
703
|
+
class="method-args">(type, name)</span>
|
|
704
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
705
|
+
|
|
706
|
+
</div>
|
|
707
|
+
|
|
708
|
+
<div class="method-description">
|
|
709
|
+
|
|
710
|
+
<p>
|
|
711
|
+
exports a template from the <a href="../Mu.html">Mu</a> system using the
|
|
712
|
+
template type and template name
|
|
713
|
+
</p>
|
|
714
|
+
<pre>
|
|
715
|
+
* name = the template name</pre>
|
|
716
|
+
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
<div class="method-source-code"
|
|
720
|
+
id="export-by-type-and-name-source">
|
|
721
|
+
<pre>
|
|
722
|
+
<span class="ruby-comment cmt"># File lib/mu/api/muapi.rb, line 142</span>
|
|
723
|
+
142: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">export_by_type_and_name</span>(<span class="ruby-identifier">type</span>, <span class="ruby-identifier">name</span>)
|
|
724
|
+
143: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get_xml</span>(<span class="ruby-node">"templates/export?type=#{type}&name=#{name}"</span>)
|
|
725
|
+
144: <span class="ruby-keyword kw">end</span></pre>
|
|
726
|
+
</div>
|
|
727
|
+
|
|
728
|
+
</div>
|
|
729
|
+
|
|
730
|
+
|
|
731
|
+
|
|
732
|
+
|
|
733
|
+
</div>
|
|
734
|
+
|
|
735
|
+
|
|
736
|
+
<div id="export-by-uuid-method" class="method-detail ">
|
|
737
|
+
<a name="method-i-export_by_uuid"></a>
|
|
738
|
+
|
|
739
|
+
<div class="method-heading">
|
|
740
|
+
|
|
741
|
+
<span class="method-name">export_by_uuid</span><span
|
|
742
|
+
class="method-args">(uuid)</span>
|
|
743
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
744
|
+
|
|
745
|
+
</div>
|
|
746
|
+
|
|
747
|
+
<div class="method-description">
|
|
748
|
+
|
|
749
|
+
<p>
|
|
750
|
+
exports a template from the <a href="../Mu.html">Mu</a> system using the
|
|
751
|
+
template uuid
|
|
752
|
+
</p>
|
|
753
|
+
<pre>
|
|
754
|
+
* uuid = the template uuid</pre>
|
|
755
|
+
|
|
756
|
+
|
|
757
|
+
|
|
758
|
+
<div class="method-source-code"
|
|
759
|
+
id="export-by-uuid-source">
|
|
760
|
+
<pre>
|
|
761
|
+
<span class="ruby-comment cmt"># File lib/mu/api/muapi.rb, line 148</span>
|
|
762
|
+
148: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">export_by_uuid</span>(<span class="ruby-identifier">uuid</span>)
|
|
763
|
+
149: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get_xml</span>(<span class="ruby-node">"templates/export?uuid=#{uuid}"</span>)
|
|
764
|
+
150: <span class="ruby-keyword kw">end</span></pre>
|
|
765
|
+
</div>
|
|
766
|
+
|
|
767
|
+
</div>
|
|
768
|
+
|
|
769
|
+
|
|
770
|
+
|
|
771
|
+
|
|
772
|
+
</div>
|
|
773
|
+
|
|
774
|
+
|
|
775
|
+
<div id="get-faults-method" class="method-detail ">
|
|
776
|
+
<a name="method-i-get_faults"></a>
|
|
777
|
+
|
|
778
|
+
<div class="method-heading">
|
|
779
|
+
|
|
780
|
+
<span class="method-name">get_faults</span><span
|
|
781
|
+
class="method-args">(uuid=@run_uuid)</span>
|
|
782
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
783
|
+
|
|
784
|
+
</div>
|
|
785
|
+
|
|
786
|
+
<div class="method-description">
|
|
787
|
+
|
|
788
|
+
<p>
|
|
789
|
+
returns a list of faults from the specified test
|
|
790
|
+
</p>
|
|
791
|
+
<pre>
|
|
792
|
+
* uuid = the uuid of the test</pre>
|
|
793
|
+
|
|
794
|
+
|
|
795
|
+
|
|
796
|
+
<div class="method-source-code"
|
|
797
|
+
id="get-faults-source">
|
|
798
|
+
<pre>
|
|
799
|
+
<span class="ruby-comment cmt"># File lib/mu/api/muapi.rb, line 106</span>
|
|
800
|
+
106: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_faults</span>(<span class="ruby-identifier">uuid</span>=<span class="ruby-ivar">@run_uuid</span>)
|
|
801
|
+
107: <span class="ruby-identifier">doc</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get_xml</span>(<span class="ruby-node">"templates/export?uuid=#{uuid}"</span>)
|
|
802
|
+
108: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">"//analysis"</span>).<span class="ruby-identifier">empty?</span>
|
|
803
|
+
109: <span class="ruby-identifier">faults</span> = <span class="ruby-identifier">get_xml</span>(<span class="ruby-node">"analysis/getFaultList?uuid=#{uuid}"</span>,<span class="ruby-keyword kw">true</span>)
|
|
804
|
+
110: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">faults</span>
|
|
805
|
+
111: <span class="ruby-keyword kw">end</span>
|
|
806
|
+
112: <span class="ruby-keyword kw">return</span> <span class="ruby-node">"error: no analysis with uuid: #{uuid} found"</span>
|
|
807
|
+
113: <span class="ruby-keyword kw">end</span></pre>
|
|
808
|
+
</div>
|
|
809
|
+
|
|
810
|
+
</div>
|
|
811
|
+
|
|
812
|
+
|
|
813
|
+
|
|
814
|
+
|
|
815
|
+
</div>
|
|
816
|
+
|
|
817
|
+
|
|
818
|
+
<div id="get-name-method" class="method-detail ">
|
|
819
|
+
<a name="method-i-get_name"></a>
|
|
820
|
+
|
|
821
|
+
<div class="method-heading">
|
|
822
|
+
|
|
823
|
+
<span class="method-name">get_name</span><span
|
|
824
|
+
class="method-args">(uuid=@run_uuid)</span>
|
|
825
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
826
|
+
|
|
827
|
+
</div>
|
|
828
|
+
|
|
829
|
+
<div class="method-description">
|
|
830
|
+
|
|
831
|
+
<p>
|
|
832
|
+
returns the name of an test
|
|
833
|
+
</p>
|
|
834
|
+
<pre>
|
|
835
|
+
* uuid = the uuid of the test</pre>
|
|
836
|
+
|
|
837
|
+
|
|
838
|
+
|
|
839
|
+
<div class="method-source-code"
|
|
840
|
+
id="get-name-source">
|
|
841
|
+
<pre>
|
|
842
|
+
<span class="ruby-comment cmt"># File lib/mu/api/muapi.rb, line 117</span>
|
|
843
|
+
117: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_name</span>(<span class="ruby-identifier">uuid</span>=<span class="ruby-ivar">@run_uuid</span>)
|
|
844
|
+
118: <span class="ruby-identifier">doc</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get_xml</span>(<span class="ruby-node">"templates/export?uuid=#{uuid}"</span>)
|
|
845
|
+
119: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">"//analysis"</span>).<span class="ruby-identifier">empty?</span>
|
|
846
|
+
120: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">"//analysis"</span>)[<span class="ruby-value">0</span>].<span class="ruby-identifier">attribute</span>(<span class="ruby-value str">'name'</span>)
|
|
847
|
+
121: <span class="ruby-keyword kw">end</span>
|
|
848
|
+
122: <span class="ruby-keyword kw">return</span>
|
|
849
|
+
123: <span class="ruby-keyword kw">end</span></pre>
|
|
850
|
+
</div>
|
|
851
|
+
|
|
852
|
+
</div>
|
|
853
|
+
|
|
854
|
+
|
|
855
|
+
|
|
856
|
+
|
|
857
|
+
</div>
|
|
858
|
+
|
|
859
|
+
|
|
860
|
+
<div id="list-method" class="method-detail ">
|
|
861
|
+
<a name="method-i-list"></a>
|
|
862
|
+
|
|
863
|
+
<div class="method-heading">
|
|
864
|
+
|
|
865
|
+
<span class="method-name">list</span><span
|
|
866
|
+
class="method-args">(type)</span>
|
|
867
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
868
|
+
|
|
869
|
+
</div>
|
|
870
|
+
|
|
871
|
+
<div class="method-description">
|
|
872
|
+
|
|
873
|
+
<p>
|
|
874
|
+
lists the templates on the <a href="../Mu.html">Mu</a> system using the
|
|
875
|
+
template type and template name:
|
|
876
|
+
</p>
|
|
877
|
+
<pre>
|
|
878
|
+
* type = the template type, such as 'scenario' or 'monitor'</pre>
|
|
879
|
+
|
|
880
|
+
|
|
881
|
+
|
|
882
|
+
<div class="method-source-code"
|
|
883
|
+
id="list-source">
|
|
884
|
+
<pre>
|
|
885
|
+
<span class="ruby-comment cmt"># File lib/mu/api/muapi.rb, line 127</span>
|
|
886
|
+
127: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">list</span>(<span class="ruby-identifier">type</span>)
|
|
887
|
+
128: <span class="ruby-identifier">names</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
|
|
888
|
+
129: <span class="ruby-identifier">doc</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get_xml</span>(<span class="ruby-node">"templates/list?type=#{type}"</span>)
|
|
889
|
+
130: <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">"//templates/*"</span>).<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span> <span class="ruby-identifier">names</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">a</span>.<span class="ruby-identifier">attribute</span>(<span class="ruby-value str">'name'</span>) }
|
|
890
|
+
131: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">names</span>
|
|
891
|
+
132: <span class="ruby-keyword kw">end</span></pre>
|
|
892
|
+
</div>
|
|
893
|
+
|
|
894
|
+
</div>
|
|
895
|
+
|
|
896
|
+
|
|
897
|
+
|
|
898
|
+
|
|
899
|
+
</div>
|
|
900
|
+
|
|
901
|
+
|
|
902
|
+
<div id="list-by-status-method" class="method-detail ">
|
|
903
|
+
<a name="method-i-list_by_status"></a>
|
|
904
|
+
|
|
905
|
+
<div class="method-heading">
|
|
906
|
+
|
|
907
|
+
<span class="method-name">list_by_status</span><span
|
|
908
|
+
class="method-args">(status="")</span>
|
|
909
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
910
|
+
|
|
911
|
+
</div>
|
|
912
|
+
|
|
913
|
+
<div class="method-description">
|
|
914
|
+
|
|
915
|
+
<p>
|
|
916
|
+
lists the statuses of tests
|
|
917
|
+
</p>
|
|
918
|
+
<pre>
|
|
919
|
+
* status = the status type, such as 'running' or 'failed'</pre>
|
|
920
|
+
|
|
921
|
+
|
|
922
|
+
|
|
923
|
+
<div class="method-source-code"
|
|
924
|
+
id="list-by-status-source">
|
|
925
|
+
<pre>
|
|
926
|
+
<span class="ruby-comment cmt"># File lib/mu/api/muapi.rb, line 20</span>
|
|
927
|
+
20: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">list_by_status</span>(<span class="ruby-identifier">status</span>=<span class="ruby-value str">""</span>)
|
|
928
|
+
21: <span class="ruby-identifier">uuid_list</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>()
|
|
929
|
+
22: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">status</span>.<span class="ruby-identifier">empty?</span>
|
|
930
|
+
23: <span class="ruby-identifier">doc</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get_xml</span>(<span class="ruby-node">"analysis/list?status=#{status}"</span>)
|
|
931
|
+
24: <span class="ruby-keyword kw">else</span>
|
|
932
|
+
25: <span class="ruby-identifier">doc</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get_xml</span>(<span class="ruby-value str">"analysis/list"</span>)
|
|
933
|
+
26: <span class="ruby-keyword kw">end</span>
|
|
934
|
+
27: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">"//analysis"</span>).<span class="ruby-identifier">empty?</span>
|
|
935
|
+
28: <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">'//analysis'</span>).<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">e</span><span class="ruby-operator">|</span> <span class="ruby-identifier">uuid_list</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">attribute</span>(<span class="ruby-value str">'uuid'</span>) }
|
|
936
|
+
29: <span class="ruby-keyword kw">end</span>
|
|
937
|
+
30: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">uuid_list</span>
|
|
938
|
+
31: <span class="ruby-keyword kw">end</span></pre>
|
|
939
|
+
</div>
|
|
940
|
+
|
|
941
|
+
</div>
|
|
942
|
+
|
|
943
|
+
|
|
944
|
+
|
|
945
|
+
|
|
946
|
+
</div>
|
|
947
|
+
|
|
948
|
+
|
|
949
|
+
<div id="pause-method" class="method-detail ">
|
|
950
|
+
<a name="method-i-pause"></a>
|
|
951
|
+
|
|
952
|
+
<div class="method-heading">
|
|
953
|
+
|
|
954
|
+
<span class="method-name">pause</span><span
|
|
955
|
+
class="method-args">(uuid=@run_uuid)</span>
|
|
956
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
957
|
+
|
|
958
|
+
</div>
|
|
959
|
+
|
|
960
|
+
<div class="method-description">
|
|
961
|
+
|
|
962
|
+
<p>
|
|
963
|
+
pauses a running test
|
|
964
|
+
</p>
|
|
965
|
+
<pre>
|
|
966
|
+
* uuid = the uuid of the test</pre>
|
|
967
|
+
|
|
968
|
+
|
|
969
|
+
|
|
970
|
+
<div class="method-source-code"
|
|
971
|
+
id="pause-source">
|
|
972
|
+
<pre>
|
|
973
|
+
<span class="ruby-comment cmt"># File lib/mu/api/muapi.rb, line 73</span>
|
|
974
|
+
73: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pause</span>(<span class="ruby-identifier">uuid</span>=<span class="ruby-ivar">@run_uuid</span>)
|
|
975
|
+
74: <span class="ruby-identifier">doc</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get_xml</span>(<span class="ruby-node">"analysis/pause?uuid=#{uuid}"</span>)
|
|
976
|
+
75: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">"//analysis"</span>).<span class="ruby-identifier">empty?</span>
|
|
977
|
+
76: <span class="ruby-identifier">status</span> = <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">"//analysis"</span>)[<span class="ruby-value">0</span>].<span class="ruby-identifier">attribute</span>(<span class="ruby-value str">'status'</span>)
|
|
978
|
+
77: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">status</span>
|
|
979
|
+
78: <span class="ruby-keyword kw">end</span>
|
|
980
|
+
79: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
|
|
981
|
+
80: <span class="ruby-keyword kw">end</span></pre>
|
|
982
|
+
</div>
|
|
983
|
+
|
|
984
|
+
</div>
|
|
985
|
+
|
|
986
|
+
|
|
987
|
+
|
|
988
|
+
|
|
989
|
+
</div>
|
|
990
|
+
|
|
991
|
+
|
|
992
|
+
<div id="resume-method" class="method-detail ">
|
|
993
|
+
<a name="method-i-resume"></a>
|
|
994
|
+
|
|
995
|
+
<div class="method-heading">
|
|
996
|
+
|
|
997
|
+
<span class="method-name">resume</span><span
|
|
998
|
+
class="method-args">(uuid=@run_uuid)</span>
|
|
999
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
1000
|
+
|
|
1001
|
+
</div>
|
|
1002
|
+
|
|
1003
|
+
<div class="method-description">
|
|
1004
|
+
|
|
1005
|
+
<p>
|
|
1006
|
+
resumes a suspended test
|
|
1007
|
+
</p>
|
|
1008
|
+
<pre>
|
|
1009
|
+
* uuid = the uuid of the test</pre>
|
|
1010
|
+
|
|
1011
|
+
|
|
1012
|
+
|
|
1013
|
+
<div class="method-source-code"
|
|
1014
|
+
id="resume-source">
|
|
1015
|
+
<pre>
|
|
1016
|
+
<span class="ruby-comment cmt"># File lib/mu/api/muapi.rb, line 84</span>
|
|
1017
|
+
84: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">resume</span>(<span class="ruby-identifier">uuid</span>=<span class="ruby-ivar">@run_uuid</span>)
|
|
1018
|
+
85: <span class="ruby-identifier">doc</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get_xml</span>(<span class="ruby-node">"analysis/resume?uuid=#{uuid}"</span>)
|
|
1019
|
+
86: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">"//analysis"</span>).<span class="ruby-identifier">empty?</span>
|
|
1020
|
+
87: <span class="ruby-identifier">status</span> = <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">"//analysis"</span>)[<span class="ruby-value">0</span>].<span class="ruby-identifier">attribute</span>(<span class="ruby-value str">'status'</span>)
|
|
1021
|
+
88: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">status</span>
|
|
1022
|
+
89: <span class="ruby-keyword kw">end</span>
|
|
1023
|
+
90: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
|
|
1024
|
+
91: <span class="ruby-keyword kw">end</span></pre>
|
|
1025
|
+
</div>
|
|
1026
|
+
|
|
1027
|
+
</div>
|
|
1028
|
+
|
|
1029
|
+
|
|
1030
|
+
|
|
1031
|
+
|
|
1032
|
+
</div>
|
|
1033
|
+
|
|
1034
|
+
|
|
1035
|
+
<div id="run-method" class="method-detail ">
|
|
1036
|
+
<a name="method-i-run"></a>
|
|
1037
|
+
|
|
1038
|
+
<div class="method-heading">
|
|
1039
|
+
|
|
1040
|
+
<span class="method-name">run</span><span
|
|
1041
|
+
class="method-args">(uuid, rename="")</span>
|
|
1042
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
1043
|
+
|
|
1044
|
+
</div>
|
|
1045
|
+
|
|
1046
|
+
<div class="method-description">
|
|
1047
|
+
|
|
1048
|
+
<p>
|
|
1049
|
+
starts a test
|
|
1050
|
+
</p>
|
|
1051
|
+
<pre>
|
|
1052
|
+
* uuid = the uuid of the test</pre>
|
|
1053
|
+
|
|
1054
|
+
|
|
1055
|
+
|
|
1056
|
+
<div class="method-source-code"
|
|
1057
|
+
id="run-source">
|
|
1058
|
+
<pre>
|
|
1059
|
+
<span class="ruby-comment cmt"># File lib/mu/api/muapi.rb, line 47</span>
|
|
1060
|
+
47: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run</span>(<span class="ruby-identifier">uuid</span>, <span class="ruby-identifier">rename</span>=<span class="ruby-value str">""</span>)
|
|
1061
|
+
48: <span class="ruby-identifier">req</span> = <span class="ruby-node">"analysis/run?uuid=#{uuid}"</span>
|
|
1062
|
+
49: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">rename</span>.<span class="ruby-identifier">empty?</span>
|
|
1063
|
+
50: <span class="ruby-identifier">req</span> = <span class="ruby-node">"#{req}&rename=#{rename}"</span>
|
|
1064
|
+
51: <span class="ruby-keyword kw">end</span>
|
|
1065
|
+
52: <span class="ruby-identifier">doc</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get_xml</span>(<span class="ruby-identifier">req</span>)
|
|
1066
|
+
53: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">"//analysis"</span>).<span class="ruby-identifier">empty?</span>
|
|
1067
|
+
54: <span class="ruby-ivar">@run_uuid</span> = <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">"//analysis"</span>)[<span class="ruby-value">0</span>].<span class="ruby-identifier">attribute</span>(<span class="ruby-value str">'uuid'</span>)
|
|
1068
|
+
55: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@run_uuid</span>
|
|
1069
|
+
56: <span class="ruby-keyword kw">end</span>
|
|
1070
|
+
57: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@run_uuid</span>
|
|
1071
|
+
58: <span class="ruby-keyword kw">end</span></pre>
|
|
1072
|
+
</div>
|
|
1073
|
+
|
|
1074
|
+
</div>
|
|
1075
|
+
|
|
1076
|
+
|
|
1077
|
+
|
|
1078
|
+
|
|
1079
|
+
</div>
|
|
1080
|
+
|
|
1081
|
+
|
|
1082
|
+
<div id="status-method" class="method-detail ">
|
|
1083
|
+
<a name="method-i-status"></a>
|
|
1084
|
+
|
|
1085
|
+
<div class="method-heading">
|
|
1086
|
+
|
|
1087
|
+
<span class="method-name">status</span><span
|
|
1088
|
+
class="method-args">(uuid=@run_uuid)</span>
|
|
1089
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
1090
|
+
|
|
1091
|
+
</div>
|
|
1092
|
+
|
|
1093
|
+
<div class="method-description">
|
|
1094
|
+
|
|
1095
|
+
<p>
|
|
1096
|
+
returns the status of a test
|
|
1097
|
+
</p>
|
|
1098
|
+
<pre>
|
|
1099
|
+
* uuid = the uuid of the test</pre>
|
|
1100
|
+
|
|
1101
|
+
|
|
1102
|
+
|
|
1103
|
+
<div class="method-source-code"
|
|
1104
|
+
id="status-source">
|
|
1105
|
+
<pre>
|
|
1106
|
+
<span class="ruby-comment cmt"># File lib/mu/api/muapi.rb, line 35</span>
|
|
1107
|
+
35: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">status</span>(<span class="ruby-identifier">uuid</span>=<span class="ruby-ivar">@run_uuid</span>)
|
|
1108
|
+
36: <span class="ruby-identifier">doc</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get_xml</span>(<span class="ruby-node">"analysis/status?uuid=#{uuid}"</span>)
|
|
1109
|
+
37: <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">doc</span>.<span class="ruby-identifier">nil?</span>
|
|
1110
|
+
38: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">"//analysis"</span>).<span class="ruby-identifier">empty?</span>
|
|
1111
|
+
39: <span class="ruby-identifier">status</span> = <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">"//status"</span>)[<span class="ruby-value">0</span>].<span class="ruby-identifier">text</span>
|
|
1112
|
+
40: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">status</span>
|
|
1113
|
+
41: <span class="ruby-keyword kw">end</span>
|
|
1114
|
+
42: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">doc</span>
|
|
1115
|
+
43: <span class="ruby-keyword kw">end</span></pre>
|
|
1116
|
+
</div>
|
|
1117
|
+
|
|
1118
|
+
</div>
|
|
1119
|
+
|
|
1120
|
+
|
|
1121
|
+
|
|
1122
|
+
|
|
1123
|
+
</div>
|
|
1124
|
+
|
|
1125
|
+
|
|
1126
|
+
<div id="stop-method" class="method-detail ">
|
|
1127
|
+
<a name="method-i-stop"></a>
|
|
1128
|
+
|
|
1129
|
+
<div class="method-heading">
|
|
1130
|
+
|
|
1131
|
+
<span class="method-name">stop</span><span
|
|
1132
|
+
class="method-args">(uuid=@run_uuid)</span>
|
|
1133
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
1134
|
+
|
|
1135
|
+
</div>
|
|
1136
|
+
|
|
1137
|
+
<div class="method-description">
|
|
1138
|
+
|
|
1139
|
+
<p>
|
|
1140
|
+
stops a running test
|
|
1141
|
+
</p>
|
|
1142
|
+
<pre>
|
|
1143
|
+
* uuid = the uuid of the test</pre>
|
|
1144
|
+
|
|
1145
|
+
|
|
1146
|
+
|
|
1147
|
+
<div class="method-source-code"
|
|
1148
|
+
id="stop-source">
|
|
1149
|
+
<pre>
|
|
1150
|
+
<span class="ruby-comment cmt"># File lib/mu/api/muapi.rb, line 62</span>
|
|
1151
|
+
62: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stop</span>(<span class="ruby-identifier">uuid</span>=<span class="ruby-ivar">@run_uuid</span>)
|
|
1152
|
+
63: <span class="ruby-identifier">doc</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get_xml</span>(<span class="ruby-node">"analysis/stop?uuid=#{uuid}"</span>)
|
|
1153
|
+
64: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">"//analysis"</span>).<span class="ruby-identifier">empty?</span>
|
|
1154
|
+
65: <span class="ruby-identifier">status</span> = <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-value str">"//analysis"</span>)[<span class="ruby-value">0</span>].<span class="ruby-identifier">attribute</span>(<span class="ruby-value str">'status'</span>)
|
|
1155
|
+
66: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">status</span>
|
|
1156
|
+
67: <span class="ruby-keyword kw">end</span>
|
|
1157
|
+
68: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
|
|
1158
|
+
69: <span class="ruby-keyword kw">end</span></pre>
|
|
1159
|
+
</div>
|
|
1160
|
+
|
|
1161
|
+
</div>
|
|
1162
|
+
|
|
1163
|
+
|
|
1164
|
+
|
|
1165
|
+
|
|
1166
|
+
</div>
|
|
1167
|
+
|
|
1168
|
+
|
|
1169
|
+
<div id="types-method" class="method-detail ">
|
|
1170
|
+
<a name="method-i-types"></a>
|
|
1171
|
+
|
|
1172
|
+
<div class="method-heading">
|
|
1173
|
+
|
|
1174
|
+
<span class="method-name">types</span><span
|
|
1175
|
+
class="method-args">()</span>
|
|
1176
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
1177
|
+
|
|
1178
|
+
</div>
|
|
1179
|
+
|
|
1180
|
+
<div class="method-description">
|
|
1181
|
+
|
|
1182
|
+
<p>
|
|
1183
|
+
lists the types of templates on the <a href="../Mu.html">Mu</a> system
|
|
1184
|
+
</p>
|
|
1185
|
+
|
|
1186
|
+
|
|
1187
|
+
|
|
1188
|
+
<div class="method-source-code"
|
|
1189
|
+
id="types-source">
|
|
1190
|
+
<pre>
|
|
1191
|
+
<span class="ruby-comment cmt"># File lib/mu/api/muapi.rb, line 135</span>
|
|
1192
|
+
135: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">types</span>
|
|
1193
|
+
136: <span class="ruby-identifier">doc</span> = <span class="ruby-ivar">@http</span>.<span class="ruby-identifier">get</span>(<span class="ruby-value str">"templates/types?"</span>)
|
|
1194
|
+
137: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">doc</span>
|
|
1195
|
+
138: <span class="ruby-keyword kw">end</span></pre>
|
|
1196
|
+
</div>
|
|
1197
|
+
|
|
1198
|
+
</div>
|
|
1199
|
+
|
|
1200
|
+
|
|
1201
|
+
|
|
1202
|
+
|
|
1203
|
+
</div>
|
|
1204
|
+
|
|
1205
|
+
|
|
1206
|
+
</div>
|
|
1207
|
+
|
|
1208
|
+
|
|
1209
|
+
</div>
|
|
1210
|
+
|
|
1211
|
+
|
|
1212
|
+
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
|
1213
|
+
|
|
1214
|
+
<p>Disabled; run with --debug to generate this.</p>
|
|
1215
|
+
|
|
1216
|
+
</div>
|
|
1217
|
+
|
|
1218
|
+
<div id="validator-badges">
|
|
1219
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
1220
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
|
1221
|
+
Rdoc Generator</a> 1.1.6</small>.</p>
|
|
1222
|
+
</div>
|
|
1223
|
+
|
|
1224
|
+
</body>
|
|
1225
|
+
</html>
|
|
1226
|
+
|