cuboid 0.0.0 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +0 -0
- data/Gemfile +22 -5
- data/LICENSE.md +22 -0
- data/README.md +158 -19
- data/Rakefile +56 -3
- data/config/paths.yml +15 -0
- data/cuboid.gemspec +61 -23
- data/lib/cuboid/application/parts/data.rb +18 -0
- data/lib/cuboid/application/parts/report.rb +29 -0
- data/lib/cuboid/application/parts/state.rb +274 -0
- data/lib/cuboid/application/runtime.rb +25 -0
- data/lib/cuboid/application.rb +326 -0
- data/lib/cuboid/banner.rb +13 -0
- data/lib/cuboid/data/application.rb +52 -0
- data/lib/cuboid/data.rb +86 -0
- data/lib/cuboid/error.rb +9 -0
- data/lib/cuboid/option_group.rb +129 -0
- data/lib/cuboid/option_groups/datastore.rb +23 -0
- data/lib/cuboid/option_groups/dispatcher.rb +38 -0
- data/lib/cuboid/option_groups/output.rb +14 -0
- data/lib/cuboid/option_groups/paths.rb +184 -0
- data/lib/cuboid/option_groups/report.rb +39 -0
- data/lib/cuboid/option_groups/rpc.rb +105 -0
- data/lib/cuboid/option_groups/scheduler.rb +27 -0
- data/lib/cuboid/option_groups/snapshot.rb +13 -0
- data/lib/cuboid/option_groups/system.rb +10 -0
- data/lib/cuboid/option_groups.rb +8 -0
- data/lib/cuboid/options.rb +254 -0
- data/lib/cuboid/processes/dispatchers.rb +140 -0
- data/lib/cuboid/processes/executables/base.rb +54 -0
- data/lib/cuboid/processes/executables/dispatcher.rb +5 -0
- data/lib/cuboid/processes/executables/instance.rb +12 -0
- data/lib/cuboid/processes/executables/rest_service.rb +13 -0
- data/lib/cuboid/processes/executables/scheduler.rb +5 -0
- data/lib/cuboid/processes/helpers/dispatchers.rb +23 -0
- data/lib/cuboid/processes/helpers/instances.rb +39 -0
- data/lib/cuboid/processes/helpers/processes.rb +23 -0
- data/lib/cuboid/processes/helpers/schedulers.rb +23 -0
- data/lib/cuboid/processes/helpers.rb +4 -0
- data/lib/cuboid/processes/instances.rb +203 -0
- data/lib/cuboid/processes/manager.rb +262 -0
- data/lib/cuboid/processes/schedulers.rb +128 -0
- data/lib/cuboid/processes.rb +13 -0
- data/lib/cuboid/report.rb +220 -0
- data/lib/cuboid/rest/server/instance_helpers.rb +99 -0
- data/lib/cuboid/rest/server/routes/dispatcher.rb +41 -0
- data/lib/cuboid/rest/server/routes/grid.rb +41 -0
- data/lib/cuboid/rest/server/routes/instances.rb +131 -0
- data/lib/cuboid/rest/server/routes/scheduler.rb +140 -0
- data/lib/cuboid/rest/server.rb +165 -0
- data/lib/cuboid/rpc/client/base.rb +58 -0
- data/lib/cuboid/rpc/client/dispatcher.rb +58 -0
- data/lib/cuboid/rpc/client/instance/service.rb +37 -0
- data/lib/cuboid/rpc/client/instance.rb +100 -0
- data/lib/cuboid/rpc/client/scheduler.rb +46 -0
- data/lib/cuboid/rpc/client.rb +3 -0
- data/lib/cuboid/rpc/serializer.rb +92 -0
- data/lib/cuboid/rpc/server/active_options.rb +38 -0
- data/lib/cuboid/rpc/server/application_wrapper.rb +138 -0
- data/lib/cuboid/rpc/server/base.rb +63 -0
- data/lib/cuboid/rpc/server/dispatcher/node.rb +247 -0
- data/lib/cuboid/rpc/server/dispatcher/service.rb +145 -0
- data/lib/cuboid/rpc/server/dispatcher.rb +317 -0
- data/lib/cuboid/rpc/server/instance.rb +338 -0
- data/lib/cuboid/rpc/server/output.rb +92 -0
- data/lib/cuboid/rpc/server/scheduler.rb +482 -0
- data/lib/cuboid/ruby/array.rb +17 -0
- data/lib/cuboid/ruby/hash.rb +41 -0
- data/lib/cuboid/ruby/object.rb +32 -0
- data/lib/cuboid/ruby.rb +4 -0
- data/lib/cuboid/snapshot.rb +186 -0
- data/lib/cuboid/state/application.rb +309 -0
- data/lib/cuboid/state/options.rb +27 -0
- data/lib/cuboid/state.rb +94 -0
- data/lib/cuboid/support/buffer/autoflush.rb +61 -0
- data/lib/cuboid/support/buffer/base.rb +91 -0
- data/lib/cuboid/support/buffer.rb +3 -0
- data/lib/cuboid/support/cache/base.rb +226 -0
- data/lib/cuboid/support/cache/least_cost_replacement.rb +77 -0
- data/lib/cuboid/support/cache/least_recently_pushed.rb +21 -0
- data/lib/cuboid/support/cache/least_recently_used.rb +31 -0
- data/lib/cuboid/support/cache/preference.rb +31 -0
- data/lib/cuboid/support/cache/random_replacement.rb +20 -0
- data/lib/cuboid/support/cache.rb +7 -0
- data/lib/cuboid/support/crypto/rsa_aes_cbc.rb +86 -0
- data/lib/cuboid/support/crypto.rb +2 -0
- data/lib/cuboid/support/database/base.rb +177 -0
- data/lib/cuboid/support/database/categorized_queue.rb +195 -0
- data/lib/cuboid/support/database/hash.rb +300 -0
- data/lib/cuboid/support/database/queue.rb +149 -0
- data/lib/cuboid/support/database.rb +5 -0
- data/lib/cuboid/support/filter/base.rb +110 -0
- data/lib/cuboid/support/filter/set.rb +29 -0
- data/lib/cuboid/support/filter.rb +3 -0
- data/lib/cuboid/support/glob.rb +27 -0
- data/lib/cuboid/support/mixins/observable.rb +99 -0
- data/lib/cuboid/support/mixins/parts.rb +20 -0
- data/lib/cuboid/support/mixins/profiler.rb +93 -0
- data/lib/cuboid/support/mixins/spec_instances.rb +65 -0
- data/lib/cuboid/support/mixins/terminal.rb +57 -0
- data/lib/cuboid/support/mixins.rb +8 -0
- data/lib/cuboid/support.rb +11 -0
- data/lib/cuboid/system/platforms/linux.rb +26 -0
- data/lib/cuboid/system/platforms/mixins/unix.rb +46 -0
- data/lib/cuboid/system/platforms/osx.rb +25 -0
- data/lib/cuboid/system/platforms/windows.rb +81 -0
- data/lib/cuboid/system/platforms.rb +84 -0
- data/lib/cuboid/system/slots.rb +143 -0
- data/lib/cuboid/system.rb +119 -0
- data/lib/cuboid/ui/output.rb +52 -0
- data/lib/cuboid/ui/output_interface/abstract.rb +68 -0
- data/lib/cuboid/ui/output_interface/controls.rb +84 -0
- data/lib/cuboid/ui/output_interface/error_logging.rb +119 -0
- data/lib/cuboid/ui/output_interface/implemented.rb +58 -0
- data/lib/cuboid/ui/output_interface/personalization.rb +62 -0
- data/lib/cuboid/ui/output_interface.rb +43 -0
- data/lib/cuboid/utilities.rb +155 -0
- data/lib/cuboid/version.rb +4 -3
- data/lib/cuboid.rb +96 -4
- data/lib/version +1 -0
- data/logs/error-3207383.log +106 -0
- data/logs/error-3207482.log +106 -0
- data/logs/error-3208344.log +109 -0
- data/logs/error-3208460.log +106 -0
- data/logs/error-903730.log +105 -0
- data/logs/error-903846.log +105 -0
- data/logs/error-904783.log +108 -0
- data/logs/error-905101.log +105 -0
- data/logs/placeholder +0 -0
- data/spec/cuboid/application/parts/data_spec.rb +12 -0
- data/spec/cuboid/application/parts/report_spec.rb +6 -0
- data/spec/cuboid/application/parts/state_spec.rb +192 -0
- data/spec/cuboid/application/runtime_spec.rb +21 -0
- data/spec/cuboid/application_spec.rb +37 -0
- data/spec/cuboid/data/application_spec.rb +22 -0
- data/spec/cuboid/data_spec.rb +47 -0
- data/spec/cuboid/error_spec.rb +23 -0
- data/spec/cuboid/option_groups/datastore_spec.rb +54 -0
- data/spec/cuboid/option_groups/dispatcher_spec.rb +12 -0
- data/spec/cuboid/option_groups/output_spec.rb +11 -0
- data/spec/cuboid/option_groups/paths_spec.rb +184 -0
- data/spec/cuboid/option_groups/report_spec.rb +26 -0
- data/spec/cuboid/option_groups/rpc_spec.rb +53 -0
- data/spec/cuboid/option_groups/snapshot_spec.rb +26 -0
- data/spec/cuboid/option_groups/system.rb +12 -0
- data/spec/cuboid/options_spec.rb +218 -0
- data/spec/cuboid/report_spec.rb +221 -0
- data/spec/cuboid/rest/server_spec.rb +1205 -0
- data/spec/cuboid/rpc/client/base_spec.rb +151 -0
- data/spec/cuboid/rpc/client/dispatcher_spec.rb +13 -0
- data/spec/cuboid/rpc/client/instance_spec.rb +38 -0
- data/spec/cuboid/rpc/server/active_options_spec.rb +21 -0
- data/spec/cuboid/rpc/server/base_spec.rb +60 -0
- data/spec/cuboid/rpc/server/dispatcher/node_spec.rb +222 -0
- data/spec/cuboid/rpc/server/dispatcher/service_spec.rb +112 -0
- data/spec/cuboid/rpc/server/dispatcher_spec.rb +317 -0
- data/spec/cuboid/rpc/server/instance_spec.rb +307 -0
- data/spec/cuboid/rpc/server/output_spec.rb +32 -0
- data/spec/cuboid/rpc/server/scheduler_spec.rb +400 -0
- data/spec/cuboid/ruby/array_spec.rb +77 -0
- data/spec/cuboid/ruby/hash_spec.rb +63 -0
- data/spec/cuboid/ruby/object_spec.rb +22 -0
- data/spec/cuboid/snapshot_spec.rb +123 -0
- data/spec/cuboid/state/application_spec.rb +538 -0
- data/spec/cuboid/state/options_spec.rb +37 -0
- data/spec/cuboid/state_spec.rb +53 -0
- data/spec/cuboid/support/buffer/autoflush_spec.rb +78 -0
- data/spec/cuboid/support/buffer/base_spec.rb +193 -0
- data/spec/cuboid/support/cache/least_cost_replacement_spec.rb +61 -0
- data/spec/cuboid/support/cache/least_recently_pushed_spec.rb +90 -0
- data/spec/cuboid/support/cache/least_recently_used_spec.rb +80 -0
- data/spec/cuboid/support/cache/preference_spec.rb +37 -0
- data/spec/cuboid/support/cache/random_replacement_spec.rb +42 -0
- data/spec/cuboid/support/crypto/rsa_aes_cbc_spec.rb +28 -0
- data/spec/cuboid/support/database/categorized_queue_spec.rb +327 -0
- data/spec/cuboid/support/database/hash_spec.rb +204 -0
- data/spec/cuboid/support/database/scheduler_spec.rb +325 -0
- data/spec/cuboid/support/filter/set_spec.rb +19 -0
- data/spec/cuboid/support/glob_spec.rb +75 -0
- data/spec/cuboid/support/mixins/observable_spec.rb +95 -0
- data/spec/cuboid/system/platforms/linux_spec.rb +31 -0
- data/spec/cuboid/system/platforms/osx_spec.rb +32 -0
- data/spec/cuboid/system/platforms/windows_spec.rb +41 -0
- data/spec/cuboid/system/slots_spec.rb +202 -0
- data/spec/cuboid/system_spec.rb +105 -0
- data/spec/cuboid/utilities_spec.rb +131 -0
- data/spec/spec_helper.rb +46 -0
- data/spec/support/factories/placeholder +0 -0
- data/spec/support/factories/scan_report.rb +18 -0
- data/spec/support/fixtures/empty/placeholder +0 -0
- data/spec/support/fixtures/executables/node.rb +50 -0
- data/spec/support/fixtures/mock_app/test_service.rb +64 -0
- data/spec/support/fixtures/mock_app.rb +61 -0
- data/spec/support/fixtures/services/echo.rb +64 -0
- data/spec/support/helpers/framework.rb +3 -0
- data/spec/support/helpers/matchers.rb +5 -0
- data/spec/support/helpers/misc.rb +3 -0
- data/spec/support/helpers/paths.rb +15 -0
- data/spec/support/helpers/request_helpers.rb +38 -0
- data/spec/support/helpers/requires.rb +8 -0
- data/spec/support/helpers/resets.rb +52 -0
- data/spec/support/helpers/web_server.rb +15 -0
- data/spec/support/lib/factory.rb +107 -0
- data/spec/support/lib/web_server_client.rb +41 -0
- data/spec/support/lib/web_server_dispatcher.rb +25 -0
- data/spec/support/lib/web_server_manager.rb +118 -0
- data/spec/support/logs/Dispatcher - 3204062-27546.log +6 -0
- data/spec/support/logs/Dispatcher - 3207166-30195.log +6 -0
- data/spec/support/logs/Dispatcher - 3207418-16491.log +6 -0
- data/spec/support/logs/Dispatcher - 3207420-23797.log +6 -0
- data/spec/support/logs/Dispatcher - 3207424-64333.log +6 -0
- data/spec/support/logs/Dispatcher - 3207427-50621.log +10 -0
- data/spec/support/logs/Dispatcher - 3207429-15351.log +10 -0
- data/spec/support/logs/Dispatcher - 3207432-3685.log +10 -0
- data/spec/support/logs/Dispatcher - 3207436-43126.log +10 -0
- data/spec/support/logs/Dispatcher - 3207438-58131.log +10 -0
- data/spec/support/logs/Dispatcher - 3207440-32187.log +10 -0
- data/spec/support/logs/Dispatcher - 3207654-42085.log +6 -0
- data/spec/support/logs/Dispatcher - 3207769-16303.log +6 -0
- data/spec/support/logs/Dispatcher - 3207771-31196.log +6 -0
- data/spec/support/logs/Dispatcher - 3207773-53419.log +6 -0
- data/spec/support/logs/Dispatcher - 3207775-17015.log +6 -0
- data/spec/support/logs/Dispatcher - 3207787-56572.log +6 -0
- data/spec/support/logs/Dispatcher - 3207799-41227.log +6 -0
- data/spec/support/logs/Dispatcher - 3207815-49397.log +6 -0
- data/spec/support/logs/Dispatcher - 3207817-13826.log +6 -0
- data/spec/support/logs/Dispatcher - 3207819-46821.log +6 -0
- data/spec/support/logs/Dispatcher - 3207821-37991.log +6 -0
- data/spec/support/logs/Dispatcher - 3207825-52955.log +6 -0
- data/spec/support/logs/Dispatcher - 3207829-12122.log +6 -0
- data/spec/support/logs/Dispatcher - 3207831-58485.log +16 -0
- data/spec/support/logs/Dispatcher - 3207833-47083.log +14 -0
- data/spec/support/logs/Dispatcher - 3207837-53679.log +10 -0
- data/spec/support/logs/Dispatcher - 3207847-12037.log +16 -0
- data/spec/support/logs/Dispatcher - 3207852-64296.log +14 -0
- data/spec/support/logs/Dispatcher - 3207858-56473.log +10 -0
- data/spec/support/logs/Dispatcher - 3207864-26736.log +6 -0
- data/spec/support/logs/Dispatcher - 3207866-24113.log +6 -0
- data/spec/support/logs/Dispatcher - 3207870-6896.log +6 -0
- data/spec/support/logs/Dispatcher - 3207873-16434.log +6 -0
- data/spec/support/logs/Dispatcher - 3207885-31058.log +6 -0
- data/spec/support/logs/Dispatcher - 3207891-19927.log +6 -0
- data/spec/support/logs/Dispatcher - 3207897-41533.log +6 -0
- data/spec/support/logs/Dispatcher - 3207903-26815.log +6 -0
- data/spec/support/logs/Dispatcher - 3207909-25294.log +6 -0
- data/spec/support/logs/Dispatcher - 3207929-51610.log +6 -0
- data/spec/support/logs/Dispatcher - 3207990-8943.log +16 -0
- data/spec/support/logs/Dispatcher - 3208000-30657.log +14 -0
- data/spec/support/logs/Dispatcher - 3208010-54017.log +10 -0
- data/spec/support/logs/Dispatcher - 3208041-58792.log +16 -0
- data/spec/support/logs/Dispatcher - 3208047-50811.log +14 -0
- data/spec/support/logs/Dispatcher - 3208051-52018.log +10 -0
- data/spec/support/logs/Dispatcher - 3208067-46852.log +6 -0
- data/spec/support/logs/Dispatcher - 3208075-56209.log +6 -0
- data/spec/support/logs/Dispatcher - 3208088-4783.log +6 -0
- data/spec/support/logs/Dispatcher - 3208100-47518.log +6 -0
- data/spec/support/logs/Dispatcher - 3208115-25109.log +6 -0
- data/spec/support/logs/Dispatcher - 3208127-46551.log +6 -0
- data/spec/support/logs/Dispatcher - 3208133-2576.log +6 -0
- data/spec/support/logs/Dispatcher - 3208138-25988.log +6 -0
- data/spec/support/logs/Dispatcher - 3208299-19611.log +6 -0
- data/spec/support/logs/Dispatcher - 3208330-35076.log +6 -0
- data/spec/support/logs/Dispatcher - 3208340-32759.log +6 -0
- data/spec/support/logs/Dispatcher - 903393-34771.log +6 -0
- data/spec/support/logs/Dispatcher - 903765-19862.log +6 -0
- data/spec/support/logs/Dispatcher - 903767-43611.log +6 -0
- data/spec/support/logs/Dispatcher - 903770-34337.log +6 -0
- data/spec/support/logs/Dispatcher - 903774-7484.log +10 -0
- data/spec/support/logs/Dispatcher - 903777-5256.log +10 -0
- data/spec/support/logs/Dispatcher - 903780-12391.log +10 -0
- data/spec/support/logs/Dispatcher - 903782-54621.log +10 -0
- data/spec/support/logs/Dispatcher - 903786-46071.log +10 -0
- data/spec/support/logs/Dispatcher - 903794-48819.log +10 -0
- data/spec/support/logs/Dispatcher - 903906-54562.log +6 -0
- data/spec/support/logs/Dispatcher - 904068-37293.log +6 -0
- data/spec/support/logs/Dispatcher - 904070-53492.log +6 -0
- data/spec/support/logs/Dispatcher - 904073-27607.log +6 -0
- data/spec/support/logs/Dispatcher - 904075-41641.log +6 -0
- data/spec/support/logs/Dispatcher - 904099-53541.log +6 -0
- data/spec/support/logs/Dispatcher - 904112-10508.log +6 -0
- data/spec/support/logs/Dispatcher - 904132-5791.log +6 -0
- data/spec/support/logs/Dispatcher - 904141-56406.log +6 -0
- data/spec/support/logs/Dispatcher - 904147-21550.log +6 -0
- data/spec/support/logs/Dispatcher - 904149-20120.log +6 -0
- data/spec/support/logs/Dispatcher - 904155-33639.log +6 -0
- data/spec/support/logs/Dispatcher - 904161-53730.log +6 -0
- data/spec/support/logs/Dispatcher - 904169-49991.log +16 -0
- data/spec/support/logs/Dispatcher - 904172-39635.log +14 -0
- data/spec/support/logs/Dispatcher - 904192-9525.log +10 -0
- data/spec/support/logs/Dispatcher - 904206-3529.log +16 -0
- data/spec/support/logs/Dispatcher - 904211-16856.log +14 -0
- data/spec/support/logs/Dispatcher - 904216-49974.log +10 -0
- data/spec/support/logs/Dispatcher - 904228-16891.log +6 -0
- data/spec/support/logs/Dispatcher - 904231-34999.log +6 -0
- data/spec/support/logs/Dispatcher - 904236-50872.log +6 -0
- data/spec/support/logs/Dispatcher - 904238-25464.log +6 -0
- data/spec/support/logs/Dispatcher - 904251-43339.log +6 -0
- data/spec/support/logs/Dispatcher - 904256-18461.log +6 -0
- data/spec/support/logs/Dispatcher - 904266-59699.log +6 -0
- data/spec/support/logs/Dispatcher - 904279-17401.log +6 -0
- data/spec/support/logs/Dispatcher - 904289-48953.log +6 -0
- data/spec/support/logs/Dispatcher - 904309-22599.log +6 -0
- data/spec/support/logs/Dispatcher - 904386-44447.log +16 -0
- data/spec/support/logs/Dispatcher - 904409-51015.log +14 -0
- data/spec/support/logs/Dispatcher - 904420-34336.log +10 -0
- data/spec/support/logs/Dispatcher - 904455-24852.log +16 -0
- data/spec/support/logs/Dispatcher - 904459-54769.log +14 -0
- data/spec/support/logs/Dispatcher - 904464-49280.log +10 -0
- data/spec/support/logs/Dispatcher - 904490-41571.log +6 -0
- data/spec/support/logs/Dispatcher - 904495-62362.log +6 -0
- data/spec/support/logs/Dispatcher - 904517-14314.log +6 -0
- data/spec/support/logs/Dispatcher - 904529-30060.log +6 -0
- data/spec/support/logs/Dispatcher - 904538-61870.log +6 -0
- data/spec/support/logs/Dispatcher - 904553-59343.log +6 -0
- data/spec/support/logs/Dispatcher - 904563-59027.log +6 -0
- data/spec/support/logs/Dispatcher - 904576-62144.log +6 -0
- data/spec/support/logs/Dispatcher - 904742-2935.log +6 -0
- data/spec/support/logs/Dispatcher - 904771-62183.log +6 -0
- data/spec/support/logs/Dispatcher - 904780-13353.log +6 -0
- data/spec/support/logs/Instance - 3208178-11741.error.log +106 -0
- data/spec/support/logs/Instance - 3208181-15143.error.log +106 -0
- data/spec/support/logs/Instance - 3208183-7742.error.log +106 -0
- data/spec/support/logs/Instance - 904628-41184.error.log +105 -0
- data/spec/support/logs/Instance - 904631-38626.error.log +105 -0
- data/spec/support/logs/Instance - 904634-37879.error.log +105 -0
- data/spec/support/logs/Scheduler - 3203309-65225.log +3 -0
- data/spec/support/logs/Scheduler - 3203315-52999.log +6 -0
- data/spec/support/logs/Scheduler - 3204127-50400.log +3 -0
- data/spec/support/logs/Scheduler - 3204138-29313.log +6 -0
- data/spec/support/logs/Scheduler - 3204154-9476.log +4 -0
- data/spec/support/logs/Scheduler - 3204163-52855.log +1 -0
- data/spec/support/logs/Scheduler - 3204175-31574.log +3 -0
- data/spec/support/logs/Scheduler - 3204194-7097.log +6 -0
- data/spec/support/logs/Scheduler - 3204251-11724.log +3 -0
- data/spec/support/logs/Scheduler - 3204262-10820.log +4 -0
- data/spec/support/logs/Scheduler - 3207131-48958.log +3 -0
- data/spec/support/logs/Scheduler - 3207138-8974.log +6 -0
- data/spec/support/logs/Scheduler - 3207187-62652.log +3 -0
- data/spec/support/logs/Scheduler - 3207197-19207.log +6 -0
- data/spec/support/logs/Scheduler - 3207218-27080.log +4 -0
- data/spec/support/logs/Scheduler - 3207228-4393.log +1 -0
- data/spec/support/logs/Scheduler - 3207240-7381.log +3 -0
- data/spec/support/logs/Scheduler - 3207252-53772.log +6 -0
- data/spec/support/logs/Scheduler - 3207306-56622.log +3 -0
- data/spec/support/logs/Scheduler - 3207318-9939.log +6 -0
- data/spec/support/logs/Scheduler - 3207342-36988.log +3 -0
- data/spec/support/logs/Scheduler - 3207352-31746.log +6 -0
- data/spec/support/logs/Scheduler - 3207383-56973.log +4 -0
- data/spec/support/logs/Scheduler - 3207400-19390.log +6 -0
- data/spec/support/logs/Scheduler - 3207442-63021.log +1 -0
- data/spec/support/logs/Scheduler - 3207445-42476.log +1 -0
- data/spec/support/logs/Scheduler - 3207450-45489.log +1 -0
- data/spec/support/logs/Scheduler - 3207453-18262.log +1 -0
- data/spec/support/logs/Scheduler - 3207458-47234.log +1 -0
- data/spec/support/logs/Scheduler - 3207462-5628.log +1 -0
- data/spec/support/logs/Scheduler - 3207464-14620.log +3 -0
- data/spec/support/logs/Scheduler - 3207468-4793.log +6 -0
- data/spec/support/logs/Scheduler - 3207482-45268.log +4 -0
- data/spec/support/logs/Scheduler - 3207494-44991.log +1 -0
- data/spec/support/logs/Scheduler - 3207498-21429.log +1 -0
- data/spec/support/logs/Scheduler - 3207503-54136.log +1 -0
- data/spec/support/logs/Scheduler - 3207507-43714.log +1 -0
- data/spec/support/logs/Scheduler - 3207512-38735.log +3 -0
- data/spec/support/logs/Scheduler - 3207516-64075.log +1 -0
- data/spec/support/logs/Scheduler - 3207523-26974.log +1 -0
- data/spec/support/logs/Scheduler - 3207527-30807.log +1 -0
- data/spec/support/logs/Scheduler - 3208261-26059.log +16 -0
- data/spec/support/logs/Scheduler - 3208278-13735.log +6 -0
- data/spec/support/logs/Scheduler - 3208287-55638.log +6 -0
- data/spec/support/logs/Scheduler - 3208303-38465.log +6 -0
- data/spec/support/logs/Scheduler - 3208334-43532.log +3 -0
- data/spec/support/logs/Scheduler - 3208344-20376.log +5 -0
- data/spec/support/logs/Scheduler - 3208351-38224.log +1 -0
- data/spec/support/logs/Scheduler - 3208355-9843.log +1 -0
- data/spec/support/logs/Scheduler - 3208357-43942.log +1 -0
- data/spec/support/logs/Scheduler - 3208360-58330.log +1 -0
- data/spec/support/logs/Scheduler - 3208363-23807.log +1 -0
- data/spec/support/logs/Scheduler - 3208366-29256.log +1 -0
- data/spec/support/logs/Scheduler - 3208369-25684.log +1 -0
- data/spec/support/logs/Scheduler - 3208372-28479.log +3 -0
- data/spec/support/logs/Scheduler - 3208382-34006.log +3 -0
- data/spec/support/logs/Scheduler - 3208396-57942.log +3 -0
- data/spec/support/logs/Scheduler - 3208402-34617.log +3 -0
- data/spec/support/logs/Scheduler - 3208406-31477.log +4 -0
- data/spec/support/logs/Scheduler - 3208418-25154.log +1 -0
- data/spec/support/logs/Scheduler - 3208423-3948.log +4 -0
- data/spec/support/logs/Scheduler - 3208428-21648.log +1 -0
- data/spec/support/logs/Scheduler - 3208434-64685.log +1 -0
- data/spec/support/logs/Scheduler - 3208440-58157.log +16 -0
- data/spec/support/logs/Scheduler - 3208460-6293.log +4 -0
- data/spec/support/logs/Scheduler - 3208467-29409.log +1 -0
- data/spec/support/logs/Scheduler - 3208470-12825.log +1 -0
- data/spec/support/logs/Scheduler - 3208473-52401.log +1 -0
- data/spec/support/logs/Scheduler - 3208476-6567.log +1 -0
- data/spec/support/logs/Scheduler - 3208480-28476.log +3 -0
- data/spec/support/logs/Scheduler - 3208488-36893.log +1 -0
- data/spec/support/logs/Scheduler - 3208490-11932.log +1 -0
- data/spec/support/logs/Scheduler - 3208493-56676.log +1 -0
- data/spec/support/logs/Scheduler - 3208509-46176.log +1 -0
- data/spec/support/logs/Scheduler - 3208513-14321.log +1 -0
- data/spec/support/logs/Scheduler - 3208517-10539.log +1 -0
- data/spec/support/logs/Scheduler - 3208521-30079.log +2 -0
- data/spec/support/logs/Scheduler - 903345-9616.log +3 -0
- data/spec/support/logs/Scheduler - 903353-58507.log +6 -0
- data/spec/support/logs/Scheduler - 903417-55835.log +3 -0
- data/spec/support/logs/Scheduler - 903427-18261.log +6 -0
- data/spec/support/logs/Scheduler - 903439-36633.log +4 -0
- data/spec/support/logs/Scheduler - 903455-41936.log +1 -0
- data/spec/support/logs/Scheduler - 903506-60484.log +3 -0
- data/spec/support/logs/Scheduler - 903519-10519.log +6 -0
- data/spec/support/logs/Scheduler - 903593-8109.log +3 -0
- data/spec/support/logs/Scheduler - 903614-61308.log +6 -0
- data/spec/support/logs/Scheduler - 903667-39623.log +3 -0
- data/spec/support/logs/Scheduler - 903683-35117.log +6 -0
- data/spec/support/logs/Scheduler - 903730-34262.log +4 -0
- data/spec/support/logs/Scheduler - 903747-57287.log +6 -0
- data/spec/support/logs/Scheduler - 903798-40499.log +1 -0
- data/spec/support/logs/Scheduler - 903801-5479.log +1 -0
- data/spec/support/logs/Scheduler - 903806-11293.log +1 -0
- data/spec/support/logs/Scheduler - 903811-52201.log +1 -0
- data/spec/support/logs/Scheduler - 903813-54636.log +1 -0
- data/spec/support/logs/Scheduler - 903827-5581.log +1 -0
- data/spec/support/logs/Scheduler - 903830-48439.log +3 -0
- data/spec/support/logs/Scheduler - 903835-17198.log +6 -0
- data/spec/support/logs/Scheduler - 903846-28718.log +4 -0
- data/spec/support/logs/Scheduler - 903855-45172.log +1 -0
- data/spec/support/logs/Scheduler - 903864-11909.log +1 -0
- data/spec/support/logs/Scheduler - 903869-1794.log +1 -0
- data/spec/support/logs/Scheduler - 903873-59405.log +1 -0
- data/spec/support/logs/Scheduler - 903880-3155.log +3 -0
- data/spec/support/logs/Scheduler - 903887-52240.log +1 -0
- data/spec/support/logs/Scheduler - 903889-27541.log +1 -0
- data/spec/support/logs/Scheduler - 903895-16003.log +1 -0
- data/spec/support/logs/Scheduler - 904706-61946.log +16 -0
- data/spec/support/logs/Scheduler - 904725-2441.log +6 -0
- data/spec/support/logs/Scheduler - 904736-12992.log +6 -0
- data/spec/support/logs/Scheduler - 904744-61626.log +6 -0
- data/spec/support/logs/Scheduler - 904774-45665.log +3 -0
- data/spec/support/logs/Scheduler - 904783-51443.log +5 -0
- data/spec/support/logs/Scheduler - 904791-45170.log +1 -0
- data/spec/support/logs/Scheduler - 904793-58901.log +1 -0
- data/spec/support/logs/Scheduler - 904801-2336.log +1 -0
- data/spec/support/logs/Scheduler - 904803-10954.log +1 -0
- data/spec/support/logs/Scheduler - 904806-25343.log +1 -0
- data/spec/support/logs/Scheduler - 904810-23633.log +1 -0
- data/spec/support/logs/Scheduler - 904814-27547.log +1 -0
- data/spec/support/logs/Scheduler - 904819-53508.log +3 -0
- data/spec/support/logs/Scheduler - 904826-41103.log +3 -0
- data/spec/support/logs/Scheduler - 904835-20113.log +3 -0
- data/spec/support/logs/Scheduler - 904866-61722.log +3 -0
- data/spec/support/logs/Scheduler - 904878-18373.log +4 -0
- data/spec/support/logs/Scheduler - 904999-46113.log +1 -0
- data/spec/support/logs/Scheduler - 905011-23507.log +4 -0
- data/spec/support/logs/Scheduler - 905017-8299.log +1 -0
- data/spec/support/logs/Scheduler - 905028-51728.log +1 -0
- data/spec/support/logs/Scheduler - 905031-16092.log +16 -0
- data/spec/support/logs/Scheduler - 905101-65244.log +4 -0
- data/spec/support/logs/Scheduler - 905224-20698.log +1 -0
- data/spec/support/logs/Scheduler - 905234-53973.log +1 -0
- data/spec/support/logs/Scheduler - 905241-48042.log +1 -0
- data/spec/support/logs/Scheduler - 905334-30796.log +1 -0
- data/spec/support/logs/Scheduler - 905337-14399.log +3 -0
- data/spec/support/logs/Scheduler - 905350-31560.log +1 -0
- data/spec/support/logs/Scheduler - 905353-63541.log +1 -0
- data/spec/support/logs/Scheduler - 905359-22685.log +1 -0
- data/spec/support/logs/Scheduler - 905362-31483.log +1 -0
- data/spec/support/logs/Scheduler - 905365-28301.log +1 -0
- data/spec/support/logs/Scheduler - 905369-51335.log +1 -0
- data/spec/support/logs/Scheduler - 905373-43552.log +2 -0
- data/spec/support/logs/error-3206970.log +801 -0
- data/spec/support/logs/error-903103.log +797 -0
- data/spec/support/logs/output_spec_3206970.log +390 -0
- data/spec/support/logs/output_spec_903103.log +390 -0
- data/spec/support/logs/placeholder +0 -0
- data/spec/support/pems/cacert.pem +37 -0
- data/spec/support/pems/client/cert.pem +37 -0
- data/spec/support/pems/client/foo-cert.pem +39 -0
- data/spec/support/pems/client/foo-key.pem +51 -0
- data/spec/support/pems/client/key.pem +51 -0
- data/spec/support/pems/server/cert.pem +37 -0
- data/spec/support/pems/server/key.pem +51 -0
- data/spec/support/reports/010223f6102d7d7ef50d7061f5a7c120.crf +0 -0
- data/spec/support/reports/0efcc0441bc58e27299737fc0e8bdb4a.crf +0 -0
- data/spec/support/reports/1444c78cae8a70d9a8f64a5b84579248.crf +0 -0
- data/spec/support/reports/16d1cdae64bbcf0b2083bc1870940fe8.crf +0 -0
- data/spec/support/reports/22cd328dd5adf2e5830db3eaf3e6d2fa.crf +0 -0
- data/spec/support/reports/26f5f97b84015ea1b3ebfaa04e6863f2.crf +0 -0
- data/spec/support/reports/40d544db82e9be4328c8bb16f2abbe96.crf +0 -0
- data/spec/support/reports/432466f64ec7b3a9e3a51e6c0c0f2b68.crf +0 -0
- data/spec/support/reports/493d52465fdd74388e1c1769e738fe0a.crf +0 -0
- data/spec/support/reports/49593f3c7dcff9466cebd4a3f71df16e.crf +0 -0
- data/spec/support/reports/4a875ccf578b82ea8af0661d09a0c9a2.crf +0 -0
- data/spec/support/reports/4fe265d0f318a758fff8f9c117d85c70.crf +0 -0
- data/spec/support/reports/5405af2d7e6bdba82761b3deb0316abb.crf +0 -0
- data/spec/support/reports/5801342bc5e7553ca065d9fc76b80a31.crf +0 -0
- data/spec/support/reports/5ca817d21692604d643a1ec4b9d698f8.crf +0 -0
- data/spec/support/reports/60a48dd87c16aaba48705cfa1102e6f0.crf +0 -0
- data/spec/support/reports/61b93d5be434e58e8286bc24375df5a6.crf +0 -0
- data/spec/support/reports/62ae63c7a653ccc450a042c83be6272e.crf +0 -0
- data/spec/support/reports/6dfba35f84478f2f8740989650e5c9b2.crf +0 -0
- data/spec/support/reports/72d8ff7e33ea0a4fa3208de46060ecb4.crf +0 -0
- data/spec/support/reports/7e73587e8be563c70f2864bb9982d4ac.crf +0 -0
- data/spec/support/reports/8a20cd9e7ea1f083c463f85990e48b9d.crf +0 -0
- data/spec/support/reports/8e22c8f69d18bfdc387ac2e2c73fd994.crf +0 -0
- data/spec/support/reports/99de7d4c926e154d9df18bbb66044360.crf +0 -0
- data/spec/support/reports/a8cda3f125d6de78da7e601e17ae02e0.crf +0 -0
- data/spec/support/reports/aa6b3e0cabbfa8f622cc3faa5e70d82d.crf +0 -0
- data/spec/support/reports/ad7582cad690ca1f6ec5529766dacecd.crf +0 -0
- data/spec/support/reports/af253c3c9e54c7efc1eb19a1ba0bc45b.crf +0 -0
- data/spec/support/reports/b57af832ae733e1a4182138f8373029d.crf +0 -0
- data/spec/support/reports/c266644ae90cff19058101b06c2410bd.crf +0 -0
- data/spec/support/reports/c684686518f8bb5af1fc05632b2ee3a1.crf +0 -0
- data/spec/support/reports/d0de163911157b30b56076653a01bd04.crf +0 -0
- data/spec/support/reports/d11cb8c19f0ef398e393e461d48fab49.crf +0 -0
- data/spec/support/reports/d29486b6155119827e12d512f38cf1a5.crf +0 -0
- data/spec/support/reports/d6348fa0f269cef7861d8a55ccb817b8.crf +0 -0
- data/spec/support/reports/d68cddd22874664f66ea296768de93cb.crf +0 -0
- data/spec/support/reports/d73172a30f03f6e4f73e77a379876368.crf +0 -0
- data/spec/support/reports/e0113960b4015876416519d1e36c6174.crf +0 -0
- data/spec/support/reports/e684ad3b2061330bf8016b0cda4c8aeb.crf +0 -0
- data/spec/support/reports/e6bec3c23e6367f309a43b6faec6c1af.crf +0 -0
- data/spec/support/reports/eadbebf5e6e8a2b325cdc82a4a667d1a.crf +0 -0
- data/spec/support/reports/fe4ca4a133464c018e8405dd73064f04.crf +0 -0
- data/spec/support/reports/placeholder +0 -0
- data/spec/support/shared/application.rb +10 -0
- data/spec/support/shared/component/options/base.rb +187 -0
- data/spec/support/shared/component.rb +31 -0
- data/spec/support/shared/option_group.rb +98 -0
- data/spec/support/shared/support/cache.rb +419 -0
- data/spec/support/shared/support/filter.rb +143 -0
- data/spec/support/shared/system/platforms/base.rb +25 -0
- data/spec/support/shared/system/platforms/mixins/unix.rb +37 -0
- data/spec/support/snapshots/Cuboid 2021-11-28 11_34_27 +0200 7757c257352bfa7abdfc764fa978115c.csf +0 -0
- data/spec/support/snapshots/Cuboid 2021-11-28 11_34_41 +0200 30367c49c18c17b84f6cdbfad6fe8209.csf +0 -0
- data/spec/support/snapshots/Cuboid 2021-11-28 11_35_24 +0200 0faa83c7ec023eca9e68e959b2b6a991.csf +0 -0
- data/spec/support/snapshots/Cuboid 2021-11-28 11_35_38 +0200 e61c3dae449133e330c24f9d1d34bc17.csf +0 -0
- data/spec/support/snapshots/Cuboid 2021-11-28 11_45_36 +0200 ef5b013868ce241f47ebef4f0ee96d23.csf +0 -0
- data/spec/support/snapshots/Cuboid 2021-11-28 11_45_42 +0200 ae63b2e851a211039d4dfa999bfc1f79.csf +0 -0
- data/spec/support/snapshots/Cuboid 2021-11-28 11_45_45 +0200 59a5d8a5ef5de0937e0d8a697d3a06cb.csf +0 -0
- data/spec/support/snapshots/Cuboid 2021-12-26 08_10_45 +0200 7534324302d1127f33460417057c0d99.csf +0 -0
- data/spec/support/snapshots/Cuboid 2021-12-26 08_10_59 +0200 2e45425f623e46a876531b65ff3319d4.csf +0 -0
- data/spec/support/snapshots/Cuboid 2021-12-26 08_14_43 +0200 d570989be752d5e9f930379a7f861028.csf +0 -0
- data/spec/support/snapshots/Cuboid 2021-12-26 08_14_57 +0200 37fe4c6328f04448257e962065d49d05.csf +0 -0
- data/spec/support/snapshots/Cuboid 2021-12-26 08_25_10 +0200 728fc33e7947c9dc606d69d7b9202dbc.csf +0 -0
- data/spec/support/snapshots/Cuboid 2021-12-26 08_25_15 +0200 cde4edd9a05a4183ff301d157654cb30.csf +0 -0
- data/spec/support/snapshots/Cuboid 2021-12-26 08_25_17 +0200 e47c2b6d6354bca5f07fd2903aefd262.csf +0 -0
- data/spec/support/snapshots/placeholder +0 -0
- metadata +1222 -23
- data/.gitignore +0 -8
- data/bin/console +0 -15
- data/bin/setup +0 -8
@@ -0,0 +1,119 @@
|
|
1
|
+
module Cuboid
|
2
|
+
module UI
|
3
|
+
module OutputInterface
|
4
|
+
|
5
|
+
# @author Tasos "Zapotek" Laskos <tasos.laskos@gmail.com>
|
6
|
+
module ErrorLogging
|
7
|
+
|
8
|
+
def self.initialize
|
9
|
+
@@error_log_written_env = false
|
10
|
+
|
11
|
+
@@error_fd ||= nil
|
12
|
+
begin
|
13
|
+
@@error_fd.close if @@error_fd
|
14
|
+
rescue IOError
|
15
|
+
end
|
16
|
+
|
17
|
+
@@error_fd = nil
|
18
|
+
@@error_buffer = []
|
19
|
+
@@error_logfile = "#{Cuboid::Options.paths.logs}error-#{Process.pid}.log"
|
20
|
+
end
|
21
|
+
|
22
|
+
# @param [String] logfile
|
23
|
+
# Location of the error log file.
|
24
|
+
def set_error_logfile( logfile )
|
25
|
+
@@error_logfile = logfile
|
26
|
+
end
|
27
|
+
|
28
|
+
# @return [String]
|
29
|
+
# Location of the error log file.
|
30
|
+
def error_logfile
|
31
|
+
@@error_logfile
|
32
|
+
end
|
33
|
+
|
34
|
+
def has_error_log?
|
35
|
+
File.exist? error_logfile
|
36
|
+
end
|
37
|
+
|
38
|
+
private
|
39
|
+
|
40
|
+
def error_log_fd
|
41
|
+
return @@error_fd if @@error_fd
|
42
|
+
|
43
|
+
@@error_fd = File.open( error_logfile, 'a' )
|
44
|
+
@@error_fd.sync = true
|
45
|
+
|
46
|
+
Kernel.at_exit do
|
47
|
+
begin
|
48
|
+
@@error_fd.close if @@error_fd
|
49
|
+
rescue IOError
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
@@error_fd
|
54
|
+
|
55
|
+
# Errno::EMFILE (too many open files) or something, nothing we can do
|
56
|
+
# about it except catch it to avoid a crash.
|
57
|
+
rescue SystemCallError => e
|
58
|
+
$stderr.puts "[#{e.class}] #{e}"
|
59
|
+
e.backtrace.each { |line| $stderr.puts line }
|
60
|
+
nil
|
61
|
+
end
|
62
|
+
|
63
|
+
# Logs an error message to the error log file.
|
64
|
+
#
|
65
|
+
# @param [String] str
|
66
|
+
def log_error( str = '' )
|
67
|
+
fd = error_log_fd
|
68
|
+
|
69
|
+
if !@@error_log_written_env
|
70
|
+
@@error_log_written_env = true
|
71
|
+
|
72
|
+
['', "#{Time.now} " + ( '-' * 80 )].each do |s|
|
73
|
+
|
74
|
+
if fd
|
75
|
+
fd.puts s
|
76
|
+
end
|
77
|
+
|
78
|
+
@@error_buffer << s
|
79
|
+
end
|
80
|
+
|
81
|
+
begin
|
82
|
+
h = {}
|
83
|
+
ENV.each { |k, v| h[k] = v }
|
84
|
+
|
85
|
+
options = Cuboid::Options.to_rpc_data.to_yaml
|
86
|
+
|
87
|
+
['ENV:', h.to_yaml, '-' * 80, 'OPTIONS:', options].each do |s|
|
88
|
+
|
89
|
+
if fd
|
90
|
+
fd.puts s
|
91
|
+
end
|
92
|
+
|
93
|
+
@@error_buffer += s.split("\n")
|
94
|
+
end
|
95
|
+
rescue
|
96
|
+
end
|
97
|
+
|
98
|
+
if fd
|
99
|
+
fd.puts '-' * 80
|
100
|
+
end
|
101
|
+
|
102
|
+
@@error_buffer << '-' * 80
|
103
|
+
end
|
104
|
+
|
105
|
+
msg = "[#{Time.now}] #{str}"
|
106
|
+
@@error_buffer << msg
|
107
|
+
|
108
|
+
if fd
|
109
|
+
fd.puts msg
|
110
|
+
end
|
111
|
+
|
112
|
+
nil
|
113
|
+
end
|
114
|
+
|
115
|
+
end
|
116
|
+
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
module Cuboid
|
2
|
+
module UI
|
3
|
+
module OutputInterface
|
4
|
+
|
5
|
+
# @author Tasos "Zapotek" Laskos <tasos.laskos@gmail.com>
|
6
|
+
module Implemented
|
7
|
+
|
8
|
+
# Prints the backtrace of an exception as error messages.
|
9
|
+
#
|
10
|
+
# @param [Exception] e
|
11
|
+
def print_error_backtrace( e )
|
12
|
+
e.backtrace.each { |line| print_error( line ) }
|
13
|
+
end
|
14
|
+
|
15
|
+
def print_exception( e )
|
16
|
+
print_error "[#{e.class}] #{e}"
|
17
|
+
print_error_backtrace( e )
|
18
|
+
end
|
19
|
+
|
20
|
+
def print_debug_level_1( str = '' )
|
21
|
+
print_debug( str, 1 )
|
22
|
+
end
|
23
|
+
|
24
|
+
def print_debug_level_2( str = '' )
|
25
|
+
print_debug( str, 2 )
|
26
|
+
end
|
27
|
+
|
28
|
+
def print_debug_level_3( str = '' )
|
29
|
+
print_debug( str, 3 )
|
30
|
+
end
|
31
|
+
|
32
|
+
def print_debug_level_4( str = '' )
|
33
|
+
print_debug( str, 4 )
|
34
|
+
end
|
35
|
+
|
36
|
+
def print_debug_exception( e, level = 1 )
|
37
|
+
return if !debug?
|
38
|
+
|
39
|
+
print_debug( "[#{e.class}] #{e}", level )
|
40
|
+
print_debug_backtrace( e, level )
|
41
|
+
end
|
42
|
+
|
43
|
+
# Prints the backtrace of an exception as debugging messages.
|
44
|
+
#
|
45
|
+
# @param [Exception] e
|
46
|
+
#
|
47
|
+
# @see #debug?
|
48
|
+
# @see #debug
|
49
|
+
def print_debug_backtrace( e, level = 1 )
|
50
|
+
return if !debug?
|
51
|
+
e.backtrace.each { |line| print_debug( line, level ) }
|
52
|
+
end
|
53
|
+
|
54
|
+
end
|
55
|
+
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,62 @@
|
|
1
|
+
module Cuboid
|
2
|
+
module UI
|
3
|
+
module OutputInterface
|
4
|
+
|
5
|
+
# @author Tasos "Zapotek" Laskos <tasos.laskos@gmail.com>
|
6
|
+
module Personalization
|
7
|
+
|
8
|
+
def included( base )
|
9
|
+
base.extend ClassMethods
|
10
|
+
end
|
11
|
+
|
12
|
+
module ClassMethods
|
13
|
+
def personalize_output!
|
14
|
+
@personalize_output = true
|
15
|
+
end
|
16
|
+
|
17
|
+
def personalize_output?
|
18
|
+
@personalize_output
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
private
|
23
|
+
|
24
|
+
def personalize_output( message )
|
25
|
+
return message if !self.class.respond_to?( :personalize_output? )
|
26
|
+
|
27
|
+
self.class.personalize_output? ?
|
28
|
+
"#{self.class.name.split('::').last}: #{message}" : message
|
29
|
+
end
|
30
|
+
|
31
|
+
def output_root
|
32
|
+
@output_root ||=
|
33
|
+
File.expand_path( File.dirname( __FILE__ ) + '/../../../../' ) + '/'
|
34
|
+
end
|
35
|
+
|
36
|
+
def caller_location
|
37
|
+
file = nil
|
38
|
+
line = nil
|
39
|
+
caller_method = nil
|
40
|
+
Kernel.caller.each do |c|
|
41
|
+
file, line, method = *c.scan( /(.*):(\d+):in `(?:.*\s)?(.*)'/ ).flatten
|
42
|
+
next if file == output_provider_file
|
43
|
+
|
44
|
+
caller_method = method
|
45
|
+
break
|
46
|
+
end
|
47
|
+
|
48
|
+
file.gsub!( output_root, '' )
|
49
|
+
|
50
|
+
context = nil
|
51
|
+
if caller_method
|
52
|
+
context = "[#{file}##{caller_method}:#{line}]"
|
53
|
+
end
|
54
|
+
|
55
|
+
context
|
56
|
+
end
|
57
|
+
|
58
|
+
end
|
59
|
+
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
require 'cuboid/error'
|
2
|
+
|
3
|
+
module Cuboid
|
4
|
+
module UI
|
5
|
+
|
6
|
+
# @author Tasos "Zapotek" Laskos <tasos.laskos@gmail.com>
|
7
|
+
class Error < Cuboid::Error
|
8
|
+
end
|
9
|
+
|
10
|
+
# @author Tasos "Zapotek" Laskos <tasos.laskos@gmail.com>
|
11
|
+
module OutputInterface
|
12
|
+
|
13
|
+
# @author Tasos "Zapotek" Laskos <tasos.laskos@gmail.com>
|
14
|
+
class Error < Cuboid::UI::Error
|
15
|
+
end
|
16
|
+
|
17
|
+
require_relative 'output_interface/abstract'
|
18
|
+
require_relative 'output_interface/implemented'
|
19
|
+
|
20
|
+
require_relative 'output_interface/error_logging'
|
21
|
+
require_relative 'output_interface/controls'
|
22
|
+
require_relative 'output_interface/personalization'
|
23
|
+
|
24
|
+
# These output methods need to be implemented by the driving UI.
|
25
|
+
include Abstract
|
26
|
+
# These output method implementations depend on the Abstract ones.
|
27
|
+
include Implemented
|
28
|
+
|
29
|
+
include ErrorLogging
|
30
|
+
include Controls
|
31
|
+
include Personalization
|
32
|
+
|
33
|
+
# Must be called after the entire {Cuboid} environment has been loaded.
|
34
|
+
def self.initialize
|
35
|
+
Controls.initialize
|
36
|
+
ErrorLogging.initialize
|
37
|
+
end
|
38
|
+
|
39
|
+
extend self
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,155 @@
|
|
1
|
+
require 'securerandom'
|
2
|
+
require 'digest/sha2'
|
3
|
+
require 'cgi'
|
4
|
+
|
5
|
+
module Cuboid
|
6
|
+
|
7
|
+
# Includes some useful methods for the system.
|
8
|
+
#
|
9
|
+
# @author Tasos "Zapotek" Laskos <tasos.laskos@gmail.com>
|
10
|
+
module Utilities
|
11
|
+
|
12
|
+
# @return [String]
|
13
|
+
# Filename (without extension) of the caller.
|
14
|
+
def caller_name
|
15
|
+
File.basename( caller_path( 3 ), '.rb' )
|
16
|
+
end
|
17
|
+
|
18
|
+
# @return [String]
|
19
|
+
# Filepath of the caller.
|
20
|
+
def caller_path( offset = 2 )
|
21
|
+
::Kernel.caller[offset].split( /:(\d+):in/ ).first
|
22
|
+
end
|
23
|
+
|
24
|
+
# @return [String] random HEX (SHA2) string
|
25
|
+
def random_seed
|
26
|
+
@@random_seed ||= generate_token
|
27
|
+
end
|
28
|
+
|
29
|
+
# @return [Fixnum]
|
30
|
+
# Random available port number.
|
31
|
+
def available_port( range = nil )
|
32
|
+
available_port_mutex.synchronize do
|
33
|
+
loop do
|
34
|
+
port = self.rand_port( range )
|
35
|
+
return port if port_available?( port )
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
def self.available_port_mutex
|
41
|
+
@available_port_mutex ||= Mutex.new
|
42
|
+
end
|
43
|
+
available_port_mutex
|
44
|
+
|
45
|
+
# @return [Integer]
|
46
|
+
# Random port within the user specified range.
|
47
|
+
def rand_port( range = nil )
|
48
|
+
range ||= [1025, 65535]
|
49
|
+
first, last = range
|
50
|
+
range = (first..last).to_a
|
51
|
+
|
52
|
+
range[ rand( range.last - range.first ) ]
|
53
|
+
end
|
54
|
+
|
55
|
+
def generate_token
|
56
|
+
SecureRandom.hex
|
57
|
+
end
|
58
|
+
|
59
|
+
# Checks whether the port number is available.
|
60
|
+
#
|
61
|
+
# @param [Fixnum] port
|
62
|
+
#
|
63
|
+
# @return [Bool]
|
64
|
+
def port_available?( port )
|
65
|
+
begin
|
66
|
+
socket = ::Socket.new( :INET, :STREAM, 0 )
|
67
|
+
socket.bind( ::Socket.sockaddr_in( port, '127.0.0.1' ) )
|
68
|
+
socket.close
|
69
|
+
true
|
70
|
+
rescue Errno::EADDRINUSE, Errno::EACCES
|
71
|
+
false
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
# @param [String, Float, Integer] seconds
|
76
|
+
#
|
77
|
+
# @return [String]
|
78
|
+
# Time in `00:00:00` (`hours:minutes:seconds`) format.
|
79
|
+
def seconds_to_hms( seconds )
|
80
|
+
seconds = seconds.to_i
|
81
|
+
[seconds / 3600, seconds / 60 % 60, seconds % 60].
|
82
|
+
map { |t| t.to_s.rjust( 2, '0' ) }.join( ':' )
|
83
|
+
end
|
84
|
+
|
85
|
+
def hms_to_seconds( time )
|
86
|
+
a = [1, 60, 3600] * 2
|
87
|
+
time.split( /[:\.]/ ).map { |t| t.to_i * a.pop }.inject(&:+)
|
88
|
+
rescue
|
89
|
+
0
|
90
|
+
end
|
91
|
+
|
92
|
+
def bytes_to_megabytes( bytes )
|
93
|
+
(bytes / 1024.0 / 1024.0).round( 3 )
|
94
|
+
end
|
95
|
+
|
96
|
+
def bytes_to_kilobytes( bytes )
|
97
|
+
(bytes / 1024.0 ).round( 3 )
|
98
|
+
end
|
99
|
+
|
100
|
+
# Wraps the `block` in exception handling code and runs it.
|
101
|
+
#
|
102
|
+
# @param [Bool] raise_exception
|
103
|
+
# Re-raise exception?
|
104
|
+
# @param [Block] block
|
105
|
+
def exception_jail( raise_exception = true, &block )
|
106
|
+
block.call
|
107
|
+
rescue => e
|
108
|
+
if respond_to?( :print_error ) && respond_to?( :print_exception )
|
109
|
+
print_exception e
|
110
|
+
print_error
|
111
|
+
print_error 'Parent:'
|
112
|
+
print_error self.class.to_s
|
113
|
+
print_error
|
114
|
+
print_error 'Block:'
|
115
|
+
print_error block.to_s
|
116
|
+
print_error
|
117
|
+
print_error 'Caller:'
|
118
|
+
::Kernel.caller.each { |l| print_error l }
|
119
|
+
print_error '-' * 80
|
120
|
+
end
|
121
|
+
|
122
|
+
raise e if raise_exception
|
123
|
+
|
124
|
+
nil
|
125
|
+
end
|
126
|
+
|
127
|
+
def regexp_array_match( regexps, str )
|
128
|
+
regexps = [regexps].flatten.compact.
|
129
|
+
map { |s| s.is_a?( Regexp ) ? s : Regexp.new( s.to_s ) }
|
130
|
+
return true if regexps.empty?
|
131
|
+
|
132
|
+
cnt = 0
|
133
|
+
regexps.each { |filter| cnt += 1 if filter.match? str }
|
134
|
+
cnt == regexps.size
|
135
|
+
end
|
136
|
+
|
137
|
+
def remove_constants( mod, skip = [] )
|
138
|
+
return if skip.include?( mod )
|
139
|
+
return if !(mod.is_a?( Class ) || mod.is_a?( Module )) ||
|
140
|
+
!mod.to_s.start_with?( 'Cuboid' )
|
141
|
+
|
142
|
+
parent = Object
|
143
|
+
mod.to_s.split( '::' )[0..-2].each do |ancestor|
|
144
|
+
parent = parent.const_get( ancestor.to_sym )
|
145
|
+
end
|
146
|
+
|
147
|
+
mod.constants.each { |m| mod.send( :remove_const, m ) }
|
148
|
+
nil
|
149
|
+
end
|
150
|
+
|
151
|
+
extend self
|
152
|
+
|
153
|
+
end
|
154
|
+
|
155
|
+
end
|
data/lib/cuboid/version.rb
CHANGED
data/lib/cuboid.rb
CHANGED
@@ -1,8 +1,100 @@
|
|
1
|
-
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler/setup'
|
3
|
+
require 'tmpdir'
|
2
4
|
|
3
|
-
|
5
|
+
require 'oj'
|
6
|
+
require 'oj_mimic_json'
|
7
|
+
|
8
|
+
require_relative 'cuboid/version'
|
9
|
+
|
10
|
+
require 'concurrent'
|
11
|
+
require 'pp'
|
12
|
+
require 'ap'
|
13
|
+
|
14
|
+
def ap( obj )
|
15
|
+
super obj, raw: true
|
16
|
+
end
|
4
17
|
|
5
18
|
module Cuboid
|
6
|
-
|
7
|
-
|
19
|
+
|
20
|
+
class <<self
|
21
|
+
|
22
|
+
# Runs a minor GC to collect young, short-lived objects.
|
23
|
+
#
|
24
|
+
# Generally called after analysis operations that generate a lot of
|
25
|
+
# new temporary objects.
|
26
|
+
def collect_young_objects
|
27
|
+
# GC.start( full_mark: false )
|
28
|
+
end
|
29
|
+
|
30
|
+
def null_device
|
31
|
+
Gem.win_platform? ? 'NUL' : '/dev/null'
|
32
|
+
end
|
33
|
+
|
34
|
+
# @return [Bool]
|
35
|
+
def windows?
|
36
|
+
Gem.win_platform?
|
37
|
+
end
|
38
|
+
|
39
|
+
# @return [Bool]
|
40
|
+
def linux?
|
41
|
+
@is_linux ||= RbConfig::CONFIG['host_os'] =~ /linux/
|
42
|
+
end
|
43
|
+
|
44
|
+
# @return [Bool]
|
45
|
+
def mac?
|
46
|
+
@is_mac ||= RbConfig::CONFIG['host_os'] =~ /darwin|mac os/i
|
47
|
+
end
|
48
|
+
|
49
|
+
# @return [Bool]
|
50
|
+
# `true` if the `CUBOID_PROFILE` env variable is set,
|
51
|
+
# `false` otherwise.
|
52
|
+
def profile?
|
53
|
+
!!ENV['CUBOID_PROFILE']
|
54
|
+
end
|
55
|
+
|
56
|
+
if Cuboid.windows?
|
57
|
+
require 'find'
|
58
|
+
require 'fileutils'
|
59
|
+
require 'Win32API'
|
60
|
+
require 'win32ole'
|
61
|
+
|
62
|
+
def get_long_win32_filename( short_name )
|
63
|
+
short_name = short_name.dup
|
64
|
+
max_path = 1024
|
65
|
+
long_name = ' ' * max_path
|
66
|
+
|
67
|
+
lfn_size = Win32API.new(
|
68
|
+
"kernel32",
|
69
|
+
"GetLongPathName",
|
70
|
+
['P','P','L'],
|
71
|
+
'L'
|
72
|
+
).call( short_name, long_name, max_path )
|
73
|
+
|
74
|
+
(1..max_path).include?( lfn_size ) ?
|
75
|
+
long_name[0..lfn_size-1] : short_name
|
76
|
+
end
|
77
|
+
else
|
78
|
+
def get_long_win32_filename( short_name )
|
79
|
+
short_name
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
8
84
|
end
|
85
|
+
|
86
|
+
require_relative 'cuboid/banner'
|
87
|
+
require_relative 'cuboid/ui/output_interface'
|
88
|
+
|
89
|
+
# If there's no UI driving us then there's no output interface.
|
90
|
+
# Chances are that someone is using Engine as a Ruby lib so there's no
|
91
|
+
# need for a functional output interface, so provide non-functional one.
|
92
|
+
#
|
93
|
+
# However, functional or not, the system does depend on one being available.
|
94
|
+
if !Cuboid::UI.constants.include?(:Output)
|
95
|
+
require_relative 'cuboid/ui/output'
|
96
|
+
end
|
97
|
+
|
98
|
+
require_relative 'cuboid/application'
|
99
|
+
|
100
|
+
Cuboid::UI::OutputInterface.initialize
|
data/lib/version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.0.3
|
@@ -0,0 +1,106 @@
|
|
1
|
+
|
2
|
+
2021-12-26 08:18:38 +0200 --------------------------------------------------------------------------------
|
3
|
+
ENV:
|
4
|
+
---
|
5
|
+
PROFILEHOME: ''
|
6
|
+
LESSOPEN: "| /usr/bin/lesspipe %s"
|
7
|
+
KDE_FULL_SESSION: 'true'
|
8
|
+
LANGUAGE: en_US:en
|
9
|
+
rvm_pretty_print_flag: auto
|
10
|
+
USER: zapotek
|
11
|
+
PAM_KWALLET5_LOGIN: "/run/user/1000/kwallet5.socket"
|
12
|
+
BUNDLER_VERSION: 2.3.0.dev
|
13
|
+
XDG_SEAT: seat0
|
14
|
+
COMP_WORDBREAKS: " \t\n\"'><;|&(:"
|
15
|
+
SSH_AGENT_PID: '2706'
|
16
|
+
XDG_SESSION_TYPE: x11
|
17
|
+
KONSOLE_VERSION: '191203'
|
18
|
+
SHLVL: '1'
|
19
|
+
RUBYOPT: "-r/home/zapotek/.rvm/rubies/ruby-3.1.0-preview1/lib/ruby/3.1.0/bundler/setup"
|
20
|
+
HOME: "/home/zapotek"
|
21
|
+
OLDPWD: "/home/zapotek/workspace/ng/scnr/ui-cli"
|
22
|
+
DESKTOP_SESSION: plasma
|
23
|
+
QTDIR: "/usr/local/qt"
|
24
|
+
BUNDLER_ORIG_BUNDLER_VERSION: BUNDLER_ENVIRONMENT_PRESERVER_INTENTIONALLY_NIL
|
25
|
+
SHELL_SESSION_ID: 4651ba726e8b43b099b43e3320712b07
|
26
|
+
GTK_RC_FILES: "/etc/gtk/gtkrc:/home/zapotek/.gtkrc:/home/zapotek/.config/gtkrc"
|
27
|
+
GTK_MODULES: gail:atk-bridge
|
28
|
+
XDG_SEAT_PATH: "/org/freedesktop/DisplayManager/Seat0"
|
29
|
+
KDE_SESSION_VERSION: '5'
|
30
|
+
KONSOLE_DBUS_SESSION: "/Sessions/7"
|
31
|
+
DBUS_SESSION_BUS_ADDRESS: unix:path=/run/user/1000/bus
|
32
|
+
COLORTERM: truecolor
|
33
|
+
MANDATORY_PATH: "/usr/share/gconf/plasma.mandatory.path"
|
34
|
+
QT_QPA_PLATFORMTHEME: appmenu-qt5
|
35
|
+
LOGNAME: zapotek
|
36
|
+
WINDOWID: '52428807'
|
37
|
+
rvm_bin_path: "/home/zapotek/.rvm/bin"
|
38
|
+
QT_AUTO_SCREEN_SCALE_FACTOR: '0'
|
39
|
+
_: "/home/zapotek/.rvm/gems/ruby-3.1.0-preview1@cuboid/bin/rake"
|
40
|
+
RUBYLIB: ''
|
41
|
+
RUBY_VERSION: ruby-3.1.0-preview1
|
42
|
+
XDG_SESSION_CLASS: user
|
43
|
+
DEFAULTS_PATH: "/usr/share/gconf/plasma.default.path"
|
44
|
+
COLORFGBG: 15;0
|
45
|
+
IRBRC: "/home/zapotek/.rvm/rubies/ruby-3.1.0-preview1/.irbrc"
|
46
|
+
TERM: xterm-256color
|
47
|
+
XDG_SESSION_ID: '3'
|
48
|
+
GTK2_MODULES: overlay-scrollbar
|
49
|
+
GTK2_RC_FILES: "/etc/gtk-2.0/gtkrc:/home/zapotek/.gtkrc-2.0:/home/zapotek/.config/gtkrc-2.0"
|
50
|
+
PATH: "/home/zapotek/.rvm/gems/ruby-3.1.0-preview1@cuboid/bin:/home/zapotek/.rvm/gems/ruby-3.1.0-preview1@global/bin:/home/zapotek/.rvm/rubies/ruby-3.1.0-preview1/bin:/home/zapotek/.rvm/bin:/usr/local/lib/nodejs/node-v12.18.0-linux-x64/bin:/home/zapotek/.cargo/bin:/usr/local/qt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"
|
51
|
+
SESSION_MANAGER: local/zonster:@/tmp/.ICE-unix/2783,unix/zonster:/tmp/.ICE-unix/2783
|
52
|
+
XDG_SESSION_PATH: "/org/freedesktop/DisplayManager/Session1"
|
53
|
+
XDG_RUNTIME_DIR: "/run/user/1000"
|
54
|
+
XCURSOR_THEME: breeze_cursors
|
55
|
+
BUNDLER_ORIG_MANPATH: "/usr/local/qt/doc/man:"
|
56
|
+
BUNDLE_BIN_PATH: "/home/zapotek/.rvm/rubies/ruby-3.1.0-preview1/lib/ruby/gems/3.1.0/gems/bundler-2.3.0.dev/libexec/bundle"
|
57
|
+
MY_RUBY_HOME: "/home/zapotek/.rvm/rubies/ruby-3.1.0-preview1"
|
58
|
+
DISPLAY: ":0"
|
59
|
+
LANG: en_US.UTF-8
|
60
|
+
XDG_CURRENT_DESKTOP: KDE
|
61
|
+
XDG_SESSION_DESKTOP: KDE
|
62
|
+
XAUTHORITY: "/tmp/xauth-1000-_0"
|
63
|
+
LS_COLORS: 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:'
|
64
|
+
SSH_AUTH_SOCK: "/tmp/ssh-Sup7fBK1Ag1y/agent.2543"
|
65
|
+
SHELL: "/bin/bash"
|
66
|
+
GOPATH: "/home/zapotek/workspace/gocode/"
|
67
|
+
BUNDLER_ORIG_BUNDLE_BIN_PATH: BUNDLER_ENVIRONMENT_PRESERVER_INTENTIONALLY_NIL
|
68
|
+
BUNDLER_ORIG_RUBYOPT: BUNDLER_ENVIRONMENT_PRESERVER_INTENTIONALLY_NIL
|
69
|
+
QT_ACCESSIBILITY: '1'
|
70
|
+
rvm_prefix: "/home/zapotek"
|
71
|
+
GEM_HOME: "/home/zapotek/.rvm/gems/ruby-3.1.0-preview1@cuboid"
|
72
|
+
LESSCLOSE: "/usr/bin/lesspipe %s %s"
|
73
|
+
KONSOLE_DBUS_SERVICE: ":1.50"
|
74
|
+
BUNDLER_ORIG_RB_USER_INSTALL: BUNDLER_ENVIRONMENT_PRESERVER_INTENTIONALLY_NIL
|
75
|
+
rvm_version: 1.29.12 (latest)
|
76
|
+
GPG_AGENT_INFO: "/run/user/1000/gnupg/S.gpg-agent:0:1"
|
77
|
+
BUNDLE_GEMFILE: "/home/zapotek/workspace/qadron/cuboid/Gemfile"
|
78
|
+
XDG_VTNR: '1'
|
79
|
+
BUNDLER_ORIG_GEM_HOME: "/home/zapotek/.rvm/gems/ruby-3.1.0-preview1@cuboid"
|
80
|
+
PWD: "/home/zapotek/workspace/qadron/cuboid"
|
81
|
+
GEM_PATH: "/home/zapotek/.rvm/gems/ruby-3.1.0-preview1@cuboid:/home/zapotek/.rvm/gems/ruby-3.1.0-preview1@global"
|
82
|
+
XDG_CONFIG_DIRS: "/etc/xdg/xdg-plasma:/etc/xdg:/usr/share/kubuntu-default-settings/kf5-settings"
|
83
|
+
XDG_DATA_DIRS: "/usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop:/var/lib/snapd/desktop"
|
84
|
+
KDE_SESSION_UID: '1000'
|
85
|
+
rvm_ruby_string: ruby-3.1.0-preview1
|
86
|
+
BUNDLER_ORIG_BUNDLE_GEMFILE: BUNDLER_ENVIRONMENT_PRESERVER_INTENTIONALLY_NIL
|
87
|
+
BUNDLER_ORIG_GEM_PATH: "/home/zapotek/.rvm/gems/ruby-3.1.0-preview1@cuboid:/home/zapotek/.rvm/gems/ruby-3.1.0-preview1@global"
|
88
|
+
BUNDLER_ORIG_PATH: "/home/zapotek/.rvm/gems/ruby-3.1.0-preview1@cuboid/bin:/home/zapotek/.rvm/gems/ruby-3.1.0-preview1@global/bin:/home/zapotek/.rvm/rubies/ruby-3.1.0-preview1/bin:/home/zapotek/.rvm/bin:/usr/local/lib/nodejs/node-v12.18.0-linux-x64/bin:/home/zapotek/.cargo/bin:/usr/local/qt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"
|
89
|
+
MANPATH: "/usr/local/qt/doc/man:"
|
90
|
+
rvm_path: "/home/zapotek/.rvm"
|
91
|
+
rvm_delete_flag: '0'
|
92
|
+
BUNDLER_ORIG_RUBYLIB: BUNDLER_ENVIRONMENT_PRESERVER_INTENTIONALLY_NIL
|
93
|
+
CUBOID_SPAWN_OPTIONS: BAh7DzoKcGF0aHN7DjoJcm9vdEkiKy9ob21lL3phcG90ZWsvd29ya3NwYWNlL3FhZHJvbi9jdWJvaWQvBjoGRVQ6DnNuYXBzaG90c0kiQi9ob21lL3phcG90ZWsvd29ya3NwYWNlL3FhZHJvbi9jdWJvaWQvc3BlYy9zdXBwb3J0L3NuYXBzaG90cy8GOwdUOgxyZXBvcnRzSSJAL2hvbWUvemFwb3Rlay93b3Jrc3BhY2UvcWFkcm9uL2N1Ym9pZC9zcGVjL3N1cHBvcnQvcmVwb3J0cy8GOwdUOglsb2dzSSI9L2hvbWUvemFwb3Rlay93b3Jrc3BhY2UvcWFkcm9uL2N1Ym9pZC9zcGVjL3N1cHBvcnQvbG9ncy8GOwdUOghsaWJJIjYvaG9tZS96YXBvdGVrL3dvcmtzcGFjZS9xYWRyb24vY3Vib2lkL2xpYi9jdWJvaWQvBjsHVDoQZXhlY3V0YWJsZXNJIkwvaG9tZS96YXBvdGVrL3dvcmtzcGFjZS9xYWRyb24vY3Vib2lkL2xpYi9jdWJvaWQvcHJvY2Vzc2VzL2V4ZWN1dGFibGVzLwY7B1Q6DHN1cHBvcnRJIj4vaG9tZS96YXBvdGVrL3dvcmtzcGFjZS9xYWRyb24vY3Vib2lkL2xpYi9jdWJvaWQvc3VwcG9ydC8GOwdUOgttaXhpbnNJIkUvaG9tZS96YXBvdGVrL3dvcmtzcGFjZS9xYWRyb24vY3Vib2lkL2xpYi9jdWJvaWQvc3VwcG9ydC9taXhpbnMvBjsHVDoQYXBwbGljYXRpb25JIk0vaG9tZS96YXBvdGVrL3dvcmtzcGFjZS9xYWRyb24vY3Vib2lkL3NwZWMvc3VwcG9ydC9maXh0dXJlcy8vbW9ja19hcHAucmIGOwdUOg5kYXRhc3RvcmV7ADoPZGlzcGF0Y2hlcnsIOhJwaW5nX2ludGVydmFsZgY1OhhpbnN0YW5jZV9wb3J0X3JhbmdlWwdpAgEEaQL//zoIdXJsMDoLb3V0cHV0ewA6C3JlcG9ydHsGOglwYXRoMDoIcnBjewo6GWNvbm5lY3Rpb25fcG9vbF9zaXplaQY6E3NlcnZlcl9hZGRyZXNzSSIOMTI3LjAuMC4xBjsHVDoQc2VydmVyX3BvcnRpAo3eOhJzZXJ2ZXJfc29ja2V0MDocc2VydmVyX2V4dGVybmFsX2FkZHJlc3MwOg5zY2hlZHVsZXJ7BzsSQBI7E1sHaQIBBGkC//86DXNuYXBzaG90ewY7F0kiQi9ob21lL3phcG90ZWsvd29ya3NwYWNlL3FhZHJvbi9jdWJvaWQvc3BlYy9zdXBwb3J0L3NuYXBzaG90cy8GOwdUOgtzeXN0ZW17BjoObWF4X3Nsb3RzaQ86EmF1dGhvcml6ZWRfYnkw
|
94
|
+
--------------------------------------------------------------------------------
|
95
|
+
OPTIONS:
|
96
|
+
---
|
97
|
+
datastore: {}
|
98
|
+
scheduler:
|
99
|
+
ping_interval: 5.0
|
100
|
+
instance_port_range:
|
101
|
+
- 1025
|
102
|
+
- 65535
|
103
|
+
url: 127.0.0.1:56973
|
104
|
+
authorized_by:
|
105
|
+
--------------------------------------------------------------------------------
|
106
|
+
[2021-12-26 08:18:38 +0200] [dcc80431ec94be76d81ce47b3a3e3148] Failed: [Arachni::RPC::Exceptions::ConnectionError] Connection closed [Connection refused - connect(2) for 127.0.0.1:49338]
|