velir_virtualbox 0.8.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +8 -0
- data/.yardopts +3 -0
- data/Gemfile +16 -0
- data/LICENSE +19 -0
- data/Rakefile +37 -0
- data/Readme.md +70 -0
- data/docs/GettingStarted.md +196 -0
- data/docs/WhatsNew.md +12 -0
- data/features/README.md +33 -0
- data/features/global.feature +19 -0
- data/features/global_extra_data.feature +27 -0
- data/features/step_definitions/abstract_model_steps.rb +39 -0
- data/features/step_definitions/extra_data_steps.rb +36 -0
- data/features/step_definitions/global_steps.rb +29 -0
- data/features/step_definitions/nat_engine_steps.rb +76 -0
- data/features/step_definitions/network_adapter_steps.rb +38 -0
- data/features/step_definitions/shared_folder_steps.rb +76 -0
- data/features/step_definitions/snapshot_steps.rb +74 -0
- data/features/step_definitions/storage_controller_steps.rb +16 -0
- data/features/step_definitions/virtualbox_steps.rb +17 -0
- data/features/step_definitions/vm_steps.rb +50 -0
- data/features/support/env.rb +61 -0
- data/features/support/helpers.rb +38 -0
- data/features/support/hooks.rb +30 -0
- data/features/support/ordered_hash.rb +49 -0
- data/features/support/vboxmanage.rb +191 -0
- data/features/version.feature +16 -0
- data/features/vm.feature +13 -0
- data/features/vm_bios.feature +29 -0
- data/features/vm_cpu.feature +29 -0
- data/features/vm_extra_data.feature +35 -0
- data/features/vm_hw_virt.feature +29 -0
- data/features/vm_nat_engine.feature +57 -0
- data/features/vm_network_adapters.feature +27 -0
- data/features/vm_shared_folders.feature +42 -0
- data/features/vm_snapshots.feature +29 -0
- data/features/vm_storage_controllers.feature +11 -0
- data/lib/virtualbox.rb +11 -0
- data/lib/virtualbox/abstract_model.rb +281 -0
- data/lib/virtualbox/abstract_model/attributable.rb +290 -0
- data/lib/virtualbox/abstract_model/dirty.rb +177 -0
- data/lib/virtualbox/abstract_model/interface_attributes.rb +98 -0
- data/lib/virtualbox/abstract_model/relatable.rb +332 -0
- data/lib/virtualbox/abstract_model/validatable.rb +167 -0
- data/lib/virtualbox/abstract_model/version_matcher.rb +35 -0
- data/lib/virtualbox/appliance.rb +62 -0
- data/lib/virtualbox/audio_adapter.rb +52 -0
- data/lib/virtualbox/bios.rb +50 -0
- data/lib/virtualbox/com.rb +23 -0
- data/lib/virtualbox/com/abstract_enum.rb +43 -0
- data/lib/virtualbox/com/abstract_implementer.rb +45 -0
- data/lib/virtualbox/com/abstract_interface.rb +167 -0
- data/lib/virtualbox/com/base_interface.rb +38 -0
- data/lib/virtualbox/com/ffi/interface.rb +150 -0
- data/lib/virtualbox/com/ffi/interfaces.rb +63 -0
- data/lib/virtualbox/com/ffi/util.rb +121 -0
- data/lib/virtualbox/com/ffi/vboxxpcomc.rb +31 -0
- data/lib/virtualbox/com/ffi_interface.rb +96 -0
- data/lib/virtualbox/com/implementer/base.rb +59 -0
- data/lib/virtualbox/com/implementer/ffi.rb +381 -0
- data/lib/virtualbox/com/implementer/mscom.rb +189 -0
- data/lib/virtualbox/com/implementer/nil.rb +10 -0
- data/lib/virtualbox/com/interface/3.1.x/access_mode.rb +11 -0
- data/lib/virtualbox/com/interface/3.1.x/appliance.rb +22 -0
- data/lib/virtualbox/com/interface/3.1.x/audio_adapter.rb +15 -0
- data/lib/virtualbox/com/interface/3.1.x/audio_controller_type.rb +11 -0
- data/lib/virtualbox/com/interface/3.1.x/audio_driver_type.rb +11 -0
- data/lib/virtualbox/com/interface/3.1.x/bios_boot_menu_mode.rb +11 -0
- data/lib/virtualbox/com/interface/3.1.x/bios_settings.rb +21 -0
- data/lib/virtualbox/com/interface/3.1.x/clipboard_mode.rb +11 -0
- data/lib/virtualbox/com/interface/3.1.x/console.rb +50 -0
- data/lib/virtualbox/com/interface/3.1.x/cpu_property_type.rb +11 -0
- data/lib/virtualbox/com/interface/3.1.x/device_type.rb +11 -0
- data/lib/virtualbox/com/interface/3.1.x/dhcp_server.rb +22 -0
- data/lib/virtualbox/com/interface/3.1.x/firmware_type.rb +11 -0
- data/lib/virtualbox/com/interface/3.1.x/guest_os_type.rb +23 -0
- data/lib/virtualbox/com/interface/3.1.x/host.rb +42 -0
- data/lib/virtualbox/com/interface/3.1.x/host_network_interface.rb +30 -0
- data/lib/virtualbox/com/interface/3.1.x/host_network_interface_medium_type.rb +11 -0
- data/lib/virtualbox/com/interface/3.1.x/host_network_interface_status.rb +11 -0
- data/lib/virtualbox/com/interface/3.1.x/host_network_interface_type.rb +11 -0
- data/lib/virtualbox/com/interface/3.1.x/host_usb_device.rb +13 -0
- data/lib/virtualbox/com/interface/3.1.x/host_usb_device_filter.rb +13 -0
- data/lib/virtualbox/com/interface/3.1.x/hw_virt_ex_property_type.rb +11 -0
- data/lib/virtualbox/com/interface/3.1.x/machine.rb +105 -0
- data/lib/virtualbox/com/interface/3.1.x/machine_state.rb +14 -0
- data/lib/virtualbox/com/interface/3.1.x/medium.rb +50 -0
- data/lib/virtualbox/com/interface/3.1.x/medium_attachment.rb +18 -0
- data/lib/virtualbox/com/interface/3.1.x/medium_format.rb +18 -0
- data/lib/virtualbox/com/interface/3.1.x/medium_state.rb +11 -0
- data/lib/virtualbox/com/interface/3.1.x/medium_type.rb +11 -0
- data/lib/virtualbox/com/interface/3.1.x/medium_variant.rb +11 -0
- data/lib/virtualbox/com/interface/3.1.x/network_adapter.rb +30 -0
- data/lib/virtualbox/com/interface/3.1.x/network_adapter_type.rb +11 -0
- data/lib/virtualbox/com/interface/3.1.x/network_attachment_type.rb +11 -0
- data/lib/virtualbox/com/interface/3.1.x/nsiexception.rb +23 -0
- data/lib/virtualbox/com/interface/3.1.x/nsisupports.rb +15 -0
- data/lib/virtualbox/com/interface/3.1.x/parallel_port.rb +17 -0
- data/lib/virtualbox/com/interface/3.1.x/port_mode.rb +11 -0
- data/lib/virtualbox/com/interface/3.1.x/progress.rb +63 -0
- data/lib/virtualbox/com/interface/3.1.x/serial_port.rb +19 -0
- data/lib/virtualbox/com/interface/3.1.x/session.rb +18 -0
- data/lib/virtualbox/com/interface/3.1.x/session_state.rb +11 -0
- data/lib/virtualbox/com/interface/3.1.x/session_type.rb +11 -0
- data/lib/virtualbox/com/interface/3.1.x/shared_folder.rb +17 -0
- data/lib/virtualbox/com/interface/3.1.x/snapshot.rb +20 -0
- data/lib/virtualbox/com/interface/3.1.x/storage_bus.rb +11 -0
- data/lib/virtualbox/com/interface/3.1.x/storage_controller.rb +23 -0
- data/lib/virtualbox/com/interface/3.1.x/storage_controller_type.rb +11 -0
- data/lib/virtualbox/com/interface/3.1.x/system_properties.rb +37 -0
- data/lib/virtualbox/com/interface/3.1.x/usb_controller.rb +20 -0
- data/lib/virtualbox/com/interface/3.1.x/usb_device.rb +24 -0
- data/lib/virtualbox/com/interface/3.1.x/usb_device_filter.rb +23 -0
- data/lib/virtualbox/com/interface/3.1.x/usb_device_filter_action.rb +11 -0
- data/lib/virtualbox/com/interface/3.1.x/usb_device_state.rb +11 -0
- data/lib/virtualbox/com/interface/3.1.x/virtual_box_error_info.rb +17 -0
- data/lib/virtualbox/com/interface/3.1.x/virtual_system_description.rb +19 -0
- data/lib/virtualbox/com/interface/3.1.x/virtual_system_description_type.rb +14 -0
- data/lib/virtualbox/com/interface/3.1.x/virtual_system_description_value_type.rb +11 -0
- data/lib/virtualbox/com/interface/3.1.x/virtualbox.rb +67 -0
- data/lib/virtualbox/com/interface/3.1.x/vrdp_auth_type.rb +11 -0
- data/lib/virtualbox/com/interface/3.1.x/vrdp_server.rb +19 -0
- data/lib/virtualbox/com/interface/3.2.x/access_mode.rb +11 -0
- data/lib/virtualbox/com/interface/3.2.x/appliance.rb +22 -0
- data/lib/virtualbox/com/interface/3.2.x/audio_adapter.rb +15 -0
- data/lib/virtualbox/com/interface/3.2.x/audio_controller_type.rb +11 -0
- data/lib/virtualbox/com/interface/3.2.x/audio_driver_type.rb +11 -0
- data/lib/virtualbox/com/interface/3.2.x/bios_boot_menu_mode.rb +11 -0
- data/lib/virtualbox/com/interface/3.2.x/bios_settings.rb +21 -0
- data/lib/virtualbox/com/interface/3.2.x/clipboard_mode.rb +11 -0
- data/lib/virtualbox/com/interface/3.2.x/console.rb +50 -0
- data/lib/virtualbox/com/interface/3.2.x/cpu_property_type.rb +11 -0
- data/lib/virtualbox/com/interface/3.2.x/device_type.rb +11 -0
- data/lib/virtualbox/com/interface/3.2.x/dhcp_server.rb +22 -0
- data/lib/virtualbox/com/interface/3.2.x/firmware_type.rb +11 -0
- data/lib/virtualbox/com/interface/3.2.x/guest.rb +13 -0
- data/lib/virtualbox/com/interface/3.2.x/guest_os_type.rb +33 -0
- data/lib/virtualbox/com/interface/3.2.x/host.rb +43 -0
- data/lib/virtualbox/com/interface/3.2.x/host_network_interface.rb +30 -0
- data/lib/virtualbox/com/interface/3.2.x/host_network_interface_medium_type.rb +11 -0
- data/lib/virtualbox/com/interface/3.2.x/host_network_interface_status.rb +11 -0
- data/lib/virtualbox/com/interface/3.2.x/host_network_interface_type.rb +11 -0
- data/lib/virtualbox/com/interface/3.2.x/host_usb_device.rb +13 -0
- data/lib/virtualbox/com/interface/3.2.x/host_usb_device_filter.rb +13 -0
- data/lib/virtualbox/com/interface/3.2.x/hw_virt_ex_property_type.rb +11 -0
- data/lib/virtualbox/com/interface/3.2.x/keyboard_hid_type.rb +11 -0
- data/lib/virtualbox/com/interface/3.2.x/machine.rb +118 -0
- data/lib/virtualbox/com/interface/3.2.x/machine_state.rb +14 -0
- data/lib/virtualbox/com/interface/3.2.x/medium.rb +51 -0
- data/lib/virtualbox/com/interface/3.2.x/medium_attachment.rb +18 -0
- data/lib/virtualbox/com/interface/3.2.x/medium_format.rb +18 -0
- data/lib/virtualbox/com/interface/3.2.x/medium_state.rb +11 -0
- data/lib/virtualbox/com/interface/3.2.x/medium_type.rb +11 -0
- data/lib/virtualbox/com/interface/3.2.x/medium_variant.rb +11 -0
- data/lib/virtualbox/com/interface/3.2.x/nat_alias_mode.rb +11 -0
- data/lib/virtualbox/com/interface/3.2.x/nat_engine.rb +27 -0
- data/lib/virtualbox/com/interface/3.2.x/nat_protocol.rb +11 -0
- data/lib/virtualbox/com/interface/3.2.x/network_adapter.rb +34 -0
- data/lib/virtualbox/com/interface/3.2.x/network_adapter_type.rb +11 -0
- data/lib/virtualbox/com/interface/3.2.x/network_attachment_type.rb +11 -0
- data/lib/virtualbox/com/interface/3.2.x/nsiexception.rb +23 -0
- data/lib/virtualbox/com/interface/3.2.x/nsisupports.rb +15 -0
- data/lib/virtualbox/com/interface/3.2.x/parallel_port.rb +17 -0
- data/lib/virtualbox/com/interface/3.2.x/pointing_hid_type.rb +11 -0
- data/lib/virtualbox/com/interface/3.2.x/port_mode.rb +11 -0
- data/lib/virtualbox/com/interface/3.2.x/progress.rb +63 -0
- data/lib/virtualbox/com/interface/3.2.x/serial_port.rb +19 -0
- data/lib/virtualbox/com/interface/3.2.x/session.rb +18 -0
- data/lib/virtualbox/com/interface/3.2.x/session_state.rb +11 -0
- data/lib/virtualbox/com/interface/3.2.x/session_type.rb +11 -0
- data/lib/virtualbox/com/interface/3.2.x/shared_folder.rb +17 -0
- data/lib/virtualbox/com/interface/3.2.x/snapshot.rb +20 -0
- data/lib/virtualbox/com/interface/3.2.x/storage_bus.rb +11 -0
- data/lib/virtualbox/com/interface/3.2.x/storage_controller.rb +24 -0
- data/lib/virtualbox/com/interface/3.2.x/storage_controller_type.rb +11 -0
- data/lib/virtualbox/com/interface/3.2.x/system_properties.rb +42 -0
- data/lib/virtualbox/com/interface/3.2.x/usb_controller.rb +21 -0
- data/lib/virtualbox/com/interface/3.2.x/usb_device.rb +24 -0
- data/lib/virtualbox/com/interface/3.2.x/usb_device_filter.rb +23 -0
- data/lib/virtualbox/com/interface/3.2.x/usb_device_filter_action.rb +11 -0
- data/lib/virtualbox/com/interface/3.2.x/usb_device_state.rb +11 -0
- data/lib/virtualbox/com/interface/3.2.x/virtual_box_error_info.rb +17 -0
- data/lib/virtualbox/com/interface/3.2.x/virtual_system_description.rb +19 -0
- data/lib/virtualbox/com/interface/3.2.x/virtual_system_description_type.rb +14 -0
- data/lib/virtualbox/com/interface/3.2.x/virtual_system_description_value_type.rb +11 -0
- data/lib/virtualbox/com/interface/3.2.x/virtualbox.rb +67 -0
- data/lib/virtualbox/com/interface/3.2.x/vrdp_auth_type.rb +11 -0
- data/lib/virtualbox/com/interface/3.2.x/vrdp_server.rb +21 -0
- data/lib/virtualbox/com/interface/4.0.x/access_mode.rb +11 -0
- data/lib/virtualbox/com/interface/4.0.x/appliance.rb +23 -0
- data/lib/virtualbox/com/interface/4.0.x/audio_adapter.rb +15 -0
- data/lib/virtualbox/com/interface/4.0.x/audio_controller_type.rb +11 -0
- data/lib/virtualbox/com/interface/4.0.x/audio_driver_type.rb +11 -0
- data/lib/virtualbox/com/interface/4.0.x/auth_type.rb +11 -0
- data/lib/virtualbox/com/interface/4.0.x/bios_boot_menu_mode.rb +11 -0
- data/lib/virtualbox/com/interface/4.0.x/bios_settings.rb +21 -0
- data/lib/virtualbox/com/interface/4.0.x/cleanup_mode.rb +12 -0
- data/lib/virtualbox/com/interface/4.0.x/clipboard_mode.rb +11 -0
- data/lib/virtualbox/com/interface/4.0.x/console.rb +50 -0
- data/lib/virtualbox/com/interface/4.0.x/cpu_property_type.rb +11 -0
- data/lib/virtualbox/com/interface/4.0.x/device_type.rb +11 -0
- data/lib/virtualbox/com/interface/4.0.x/dhcp_server.rb +22 -0
- data/lib/virtualbox/com/interface/4.0.x/event_source.rb +13 -0
- data/lib/virtualbox/com/interface/4.0.x/fault_tolerance_state.rb +11 -0
- data/lib/virtualbox/com/interface/4.0.x/firmware_type.rb +11 -0
- data/lib/virtualbox/com/interface/4.0.x/guest.rb +13 -0
- data/lib/virtualbox/com/interface/4.0.x/guest_os_type.rb +33 -0
- data/lib/virtualbox/com/interface/4.0.x/host.rb +43 -0
- data/lib/virtualbox/com/interface/4.0.x/host_network_interface.rb +30 -0
- data/lib/virtualbox/com/interface/4.0.x/host_network_interface_medium_type.rb +11 -0
- data/lib/virtualbox/com/interface/4.0.x/host_network_interface_status.rb +11 -0
- data/lib/virtualbox/com/interface/4.0.x/host_network_interface_type.rb +11 -0
- data/lib/virtualbox/com/interface/4.0.x/host_usb_device.rb +13 -0
- data/lib/virtualbox/com/interface/4.0.x/host_usb_device_filter.rb +13 -0
- data/lib/virtualbox/com/interface/4.0.x/hw_virt_ex_property_type.rb +12 -0
- data/lib/virtualbox/com/interface/4.0.x/keyboard_hid_type.rb +11 -0
- data/lib/virtualbox/com/interface/4.0.x/lock_type.rb +11 -0
- data/lib/virtualbox/com/interface/4.0.x/machine.rb +132 -0
- data/lib/virtualbox/com/interface/4.0.x/machine_state.rb +14 -0
- data/lib/virtualbox/com/interface/4.0.x/medium.rb +53 -0
- data/lib/virtualbox/com/interface/4.0.x/medium_attachment.rb +18 -0
- data/lib/virtualbox/com/interface/4.0.x/medium_format.rb +18 -0
- data/lib/virtualbox/com/interface/4.0.x/medium_state.rb +11 -0
- data/lib/virtualbox/com/interface/4.0.x/medium_type.rb +11 -0
- data/lib/virtualbox/com/interface/4.0.x/medium_variant.rb +11 -0
- data/lib/virtualbox/com/interface/4.0.x/nat_alias_mode.rb +11 -0
- data/lib/virtualbox/com/interface/4.0.x/nat_engine.rb +27 -0
- data/lib/virtualbox/com/interface/4.0.x/nat_protocol.rb +11 -0
- data/lib/virtualbox/com/interface/4.0.x/network_adapter.rb +35 -0
- data/lib/virtualbox/com/interface/4.0.x/network_adapter_type.rb +11 -0
- data/lib/virtualbox/com/interface/4.0.x/network_attachment_type.rb +11 -0
- data/lib/virtualbox/com/interface/4.0.x/nsiexception.rb +23 -0
- data/lib/virtualbox/com/interface/4.0.x/nsisupports.rb +15 -0
- data/lib/virtualbox/com/interface/4.0.x/parallel_port.rb +17 -0
- data/lib/virtualbox/com/interface/4.0.x/pointing_hid_type.rb +11 -0
- data/lib/virtualbox/com/interface/4.0.x/port_mode.rb +11 -0
- data/lib/virtualbox/com/interface/4.0.x/progress.rb +64 -0
- data/lib/virtualbox/com/interface/4.0.x/serial_port.rb +19 -0
- data/lib/virtualbox/com/interface/4.0.x/session.rb +18 -0
- data/lib/virtualbox/com/interface/4.0.x/session_state.rb +11 -0
- data/lib/virtualbox/com/interface/4.0.x/session_type.rb +11 -0
- data/lib/virtualbox/com/interface/4.0.x/shared_folder.rb +17 -0
- data/lib/virtualbox/com/interface/4.0.x/snapshot.rb +20 -0
- data/lib/virtualbox/com/interface/4.0.x/storage_bus.rb +11 -0
- data/lib/virtualbox/com/interface/4.0.x/storage_controller.rb +24 -0
- data/lib/virtualbox/com/interface/4.0.x/storage_controller_type.rb +11 -0
- data/lib/virtualbox/com/interface/4.0.x/system_properties.rb +42 -0
- data/lib/virtualbox/com/interface/4.0.x/usb_controller.rb +21 -0
- data/lib/virtualbox/com/interface/4.0.x/usb_device.rb +24 -0
- data/lib/virtualbox/com/interface/4.0.x/usb_device_filter.rb +23 -0
- data/lib/virtualbox/com/interface/4.0.x/usb_device_filter_action.rb +11 -0
- data/lib/virtualbox/com/interface/4.0.x/usb_device_state.rb +11 -0
- data/lib/virtualbox/com/interface/4.0.x/virtual_box_error_info.rb +17 -0
- data/lib/virtualbox/com/interface/4.0.x/virtual_system_description.rb +19 -0
- data/lib/virtualbox/com/interface/4.0.x/virtual_system_description_type.rb +14 -0
- data/lib/virtualbox/com/interface/4.0.x/virtual_system_description_value_type.rb +11 -0
- data/lib/virtualbox/com/interface/4.0.x/virtualbox.rb +50 -0
- data/lib/virtualbox/com/interface/4.0.x/vrde_server.rb +23 -0
- data/lib/virtualbox/com/mscom_interface.rb +44 -0
- data/lib/virtualbox/com/nil_interface.rb +7 -0
- data/lib/virtualbox/com/util.rb +32 -0
- data/lib/virtualbox/cpu.rb +61 -0
- data/lib/virtualbox/dhcp_server.rb +89 -0
- data/lib/virtualbox/dvd.rb +27 -0
- data/lib/virtualbox/exceptions.rb +39 -0
- data/lib/virtualbox/ext/byte_normalizer.rb +17 -0
- data/lib/virtualbox/ext/glob_loader.rb +35 -0
- data/lib/virtualbox/ext/logger.rb +38 -0
- data/lib/virtualbox/ext/platform.rb +31 -0
- data/lib/virtualbox/ext/subclass_listing.rb +24 -0
- data/lib/virtualbox/extra_data.rb +127 -0
- data/lib/virtualbox/forwarded_port.rb +222 -0
- data/lib/virtualbox/global.rb +96 -0
- data/lib/virtualbox/hard_drive.rb +246 -0
- data/lib/virtualbox/host.rb +71 -0
- data/lib/virtualbox/host_network_interface.rb +137 -0
- data/lib/virtualbox/hw_virtualization.rb +64 -0
- data/lib/virtualbox/lib.rb +84 -0
- data/lib/virtualbox/media.rb +20 -0
- data/lib/virtualbox/medium.rb +145 -0
- data/lib/virtualbox/medium_attachment.rb +61 -0
- data/lib/virtualbox/nat_engine.rb +71 -0
- data/lib/virtualbox/nat_forwarded_port.rb +171 -0
- data/lib/virtualbox/network_adapter.rb +166 -0
- data/lib/virtualbox/proxies/collection.rb +57 -0
- data/lib/virtualbox/shared_folder.rb +220 -0
- data/lib/virtualbox/snapshot.rb +185 -0
- data/lib/virtualbox/storage_controller.rb +160 -0
- data/lib/virtualbox/system_properties.rb +73 -0
- data/lib/virtualbox/usb_controller.rb +59 -0
- data/lib/virtualbox/usb_device_filter.rb +74 -0
- data/lib/virtualbox/version.rb +36 -0
- data/lib/virtualbox/virtual_system_description.rb +47 -0
- data/lib/virtualbox/vm.rb +649 -0
- data/lib/virtualbox/vrde_server.rb +57 -0
- data/test/test_helper.rb +18 -0
- data/test/virtualbox/abstract_model/attributable_test.rb +269 -0
- data/test/virtualbox/abstract_model/dirty_test.rb +83 -0
- data/test/virtualbox/abstract_model/interface_attributes_test.rb +194 -0
- data/test/virtualbox/abstract_model/relatable_test.rb +348 -0
- data/test/virtualbox/abstract_model/validatable_test.rb +308 -0
- data/test/virtualbox/abstract_model/version_matcher_test.rb +41 -0
- data/test/virtualbox/abstract_model_test.rb +462 -0
- data/test/virtualbox/appliance_test.rb +159 -0
- data/test/virtualbox/audio_adapter_test.rb +83 -0
- data/test/virtualbox/bios_test.rb +83 -0
- data/test/virtualbox/com/abstract_enum_test.rb +49 -0
- data/test/virtualbox/com/abstract_implementer_test.rb +40 -0
- data/test/virtualbox/com/abstract_interface_test.rb +140 -0
- data/test/virtualbox/com/ffi/interface_test.rb +249 -0
- data/test/virtualbox/com/ffi/util_test.rb +108 -0
- data/test/virtualbox/com/ffi_interface_test.rb +42 -0
- data/test/virtualbox/com/implementer/base_test.rb +38 -0
- data/test/virtualbox/com/implementer/ffi_test.rb +527 -0
- data/test/virtualbox/com/implementer/mscom_test.rb +247 -0
- data/test/virtualbox/com/mscom_interface_test.rb +17 -0
- data/test/virtualbox/com/util_test.rb +17 -0
- data/test/virtualbox/cpu_test.rb +103 -0
- data/test/virtualbox/dhcp_server_test.rb +165 -0
- data/test/virtualbox/dvd_test.rb +28 -0
- data/test/virtualbox/ext/byte_normalizer_test.rb +34 -0
- data/test/virtualbox/ext/platform_test.rb +50 -0
- data/test/virtualbox/ext/subclass_listing_test.rb +25 -0
- data/test/virtualbox/extra_data_test.rb +155 -0
- data/test/virtualbox/forwarded_port_test.rb +286 -0
- data/test/virtualbox/global_test.rb +46 -0
- data/test/virtualbox/hard_drive_test.rb +141 -0
- data/test/virtualbox/host_network_interface_test.rb +255 -0
- data/test/virtualbox/host_test.rb +94 -0
- data/test/virtualbox/hw_virtualization_test.rb +103 -0
- data/test/virtualbox/lib_test.rb +93 -0
- data/test/virtualbox/medium_attachment_test.rb +147 -0
- data/test/virtualbox/medium_test.rb +192 -0
- data/test/virtualbox/nat_engine_test.rb +106 -0
- data/test/virtualbox/nat_forwarded_port_test.rb +222 -0
- data/test/virtualbox/network_adapter_test.rb +191 -0
- data/test/virtualbox/proxies/collection_test.rb +102 -0
- data/test/virtualbox/shared_folder_test.rb +219 -0
- data/test/virtualbox/snapshot_test.rb +231 -0
- data/test/virtualbox/storage_controller_test.rb +197 -0
- data/test/virtualbox/system_properties_test.rb +87 -0
- data/test/virtualbox/usb_controller_test.rb +112 -0
- data/test/virtualbox/usb_device_filter_test.rb +93 -0
- data/test/virtualbox/version_test.rb +59 -0
- data/test/virtualbox/virtual_system_description_test.rb +61 -0
- data/test/virtualbox/vm_test.rb +633 -0
- data/test/virtualbox/vrde_server_test.rb +83 -0
- data/test/virtualbox_test.rb +11 -0
- data/virtualbox.gemspec +24 -0
- metadata +464 -0
@@ -0,0 +1,132 @@
|
|
1
|
+
module VirtualBox
|
2
|
+
module COM
|
3
|
+
module Interface
|
4
|
+
module Version_4_0_X
|
5
|
+
class Machine < AbstractInterface
|
6
|
+
IID_STR = "99404f50-dd10-40d3-889b-dd2f79f1e95e"
|
7
|
+
|
8
|
+
property :parent, :VirtualBox, :readonly => true
|
9
|
+
property :accessible, T_BOOL, :readonly => true
|
10
|
+
property :access_error, :VirtualBoxErrorInfo, :readonly => true
|
11
|
+
property :name, WSTRING
|
12
|
+
property :description, WSTRING
|
13
|
+
property :id, WSTRING, :readonly => true
|
14
|
+
property :os_type_id, WSTRING
|
15
|
+
property :hardware_version, WSTRING
|
16
|
+
property :hardware_uuid, WSTRING
|
17
|
+
property :cpu_count, T_UINT32
|
18
|
+
property :cpu_hot_plug_enabled, T_BOOL
|
19
|
+
property :cpu_execution_cap, T_UINT64
|
20
|
+
property :memory_size, T_UINT64
|
21
|
+
property :memory_balloon_size, T_UINT64
|
22
|
+
property :page_fusion_enabled, T_BOOL
|
23
|
+
property :vram_size, T_UINT32
|
24
|
+
property :accelerate_3d_enabled, T_BOOL
|
25
|
+
property :accelerate_2d_video_enabled, T_BOOL
|
26
|
+
property :monitor_count, T_UINT64
|
27
|
+
property :bios_settings, :BIOSSettings, :readonly => true
|
28
|
+
property :firmware_type, :FirmwareType
|
29
|
+
property :pointing_hid_type, T_UINT32
|
30
|
+
property :keyboard_hid_type, T_UINT32
|
31
|
+
property :hpet_enabled, T_BOOL
|
32
|
+
property :chipset_type, :ChipsetType
|
33
|
+
property :snapshot_folder, WSTRING
|
34
|
+
property :vrde_server, :VRDEServer, :readonly => true
|
35
|
+
property :medium_attachments, [:MediumAttachment], :readonly => true
|
36
|
+
property :usb_controller, :USBController, :readonly => true
|
37
|
+
property :audio_adapter, :AudioAdapter, :readonly => true
|
38
|
+
property :storage_controllers, [:StorageController], :readonly => true
|
39
|
+
property :settings_file_path, WSTRING, :readonly => true
|
40
|
+
property :settings_modified, T_BOOL, :readonly => true
|
41
|
+
property :session_state, :SessionState, :readonly => true
|
42
|
+
property :session_type, WSTRING, :readonly => true
|
43
|
+
property :session_pid, T_UINT64, :readonly => true
|
44
|
+
property :state, :MachineState, :readonly => true
|
45
|
+
property :last_state_change, T_INT64, :readonly => true
|
46
|
+
property :state_file_path, WSTRING, :readonly => true
|
47
|
+
property :log_folder, WSTRING, :readonly => true
|
48
|
+
property :current_snapshot, :Snapshot, :readonly => true
|
49
|
+
property :snapshot_count, T_UINT32, :readonly => true
|
50
|
+
property :current_state_modified, T_BOOL, :readonly => true
|
51
|
+
property :shared_folders, [:SharedFolder], :readonly => true
|
52
|
+
property :clipboard_mode, :ClipboardMode
|
53
|
+
property :guest_property_notification_patterns, WSTRING
|
54
|
+
property :teleporter_enabled, T_BOOL
|
55
|
+
property :teleporter_port, T_UINT32
|
56
|
+
property :teleporter_address, WSTRING
|
57
|
+
property :teleporter_password, WSTRING
|
58
|
+
property :fault_tolerance_state, :FaultToleranceState
|
59
|
+
property :fault_tolerance_port, T_UINT64
|
60
|
+
property :fault_tolerance_address, WSTRING
|
61
|
+
property :fault_tolerance_password, WSTRING
|
62
|
+
property :fault_tolerance_sync_interval, T_UINT64
|
63
|
+
property :rtc_use_utc, T_BOOL
|
64
|
+
property :io_cache_enabled, T_BOOL
|
65
|
+
property :io_cache_size, T_UINT32
|
66
|
+
property :bandwidth_control, :BandwidthControl, :readonly => true
|
67
|
+
property :pci_device_assignments, [:PciDeviceAttachment], :readonly => true
|
68
|
+
|
69
|
+
function :lock_machine, nil, [:Session, :LockType]
|
70
|
+
function :launch_vm_process, :Progress, [:Session, WSTRING, WSTRING]
|
71
|
+
function :set_boot_order, nil, [T_UINT32, :DeviceType]
|
72
|
+
function :get_boot_order, :DeviceType, [T_UINT64]
|
73
|
+
function :attach_device, nil, [WSTRING, T_INT32, T_INT32, :DeviceType, :Medium]
|
74
|
+
function :detach_device, nil, [WSTRING, T_INT32, T_INT32]
|
75
|
+
function :passthrough_device, nil, [WSTRING, T_INT32, T_INT32, T_BOOL]
|
76
|
+
function :set_bandwidth_group_for_device, nil, [WSTRING, T_INT64, T_INT64, :BandwidthGroup]
|
77
|
+
function :mount_medium, nil, [WSTRING, T_INT32, T_INT32, :Medium, T_BOOL]
|
78
|
+
function :get_medium, :Medium, [WSTRING, T_INT32, T_INT32]
|
79
|
+
function :get_medium_attachments_of_controller, [:MediumAttachments], [WSTRING]
|
80
|
+
function :get_medium_attachment, :MediumAttachment, [WSTRING, T_INT32, T_INT32]
|
81
|
+
function :attach_host_pci_device, nil, [T_INT32, T_INT32, :EventContext, T_BOOL]
|
82
|
+
function :detach_host_pci_device, nil, [T_INT32]
|
83
|
+
function :get_network_adapter, :NetworkAdapter, [T_UINT32]
|
84
|
+
function :add_storage_controller, :StorageController, [WSTRING, :StorageBus]
|
85
|
+
function :get_storage_controller_by_name, :StorageController, [WSTRING]
|
86
|
+
function :get_storage_controller_by_instance, :StorageController, [T_UINT32]
|
87
|
+
function :remove_storage_controller, nil, [WSTRING]
|
88
|
+
function :set_storage_controller_bootable, nil, [WSTRING, T_BOOL]
|
89
|
+
function :get_serial_port, :SerialPort, [T_UINT32]
|
90
|
+
function :get_parallel_port, :ParallelPort, [T_UINT32]
|
91
|
+
function :get_extra_data_keys, [WSTRING], []
|
92
|
+
function :get_extra_data, WSTRING, [WSTRING]
|
93
|
+
function :set_extra_data, nil, [WSTRING, WSTRING]
|
94
|
+
function :get_cpu_property, T_BOOL, [:CpuPropertyType]
|
95
|
+
function :set_cpu_property, nil, [:CpuPropertyType, T_BOOL]
|
96
|
+
function :get_cpu_id_leaf, nil, [T_UINT32, [:out, T_UINT32], [:out, T_UINT32], [:out, T_UINT32], [:out, T_UINT32]]
|
97
|
+
function :set_cpu_id_leaf, nil, [T_UINT32, T_UINT32, T_UINT32, T_UINT32, T_UINT32]
|
98
|
+
function :remove_cpu_id_leaf, nil, [T_UINT32]
|
99
|
+
function :remove_all_cpu_id_leafs, nil, []
|
100
|
+
function :get_hw_virt_ex_property, T_BOOL, [:HWVirtExPropertyType]
|
101
|
+
function :set_hw_virt_ex_property, nil, [:HWVirtExPropertyType, T_BOOL]
|
102
|
+
function :save_settings, nil, []
|
103
|
+
function :discard_settings, nil, []
|
104
|
+
function :unregister, [:Medium], [:CleanupMode]
|
105
|
+
function :delete, :Progress, [[:Medium]]
|
106
|
+
function :export, :VirtualSystemDescription, [:Appliance, WSTRING]
|
107
|
+
function :find_snapshot, :Snapshot, [WSTRING]
|
108
|
+
function :create_shared_folder, nil, [WSTRING, WSTRING, T_BOOL, T_BOOL]
|
109
|
+
function :remove_shared_folder, nil, [WSTRING]
|
110
|
+
function :can_show_console_window, T_BOOL, []
|
111
|
+
function :show_console_window, T_UINT64, []
|
112
|
+
function :get_guest_property, nil, [WSTRING, [:out, WSTRING], [:out, T_UINT64], [:out, WSTRING]]
|
113
|
+
function :get_guest_property_value, WSTRING, [WSTRING]
|
114
|
+
function :get_guest_property_timestamp, T_UINT64, [WSTRING]
|
115
|
+
function :set_guest_property, nil, [WSTRING, WSTRING, WSTRING]
|
116
|
+
function :set_guest_propetty_value, nil, [WSTRING, WSTRING]
|
117
|
+
function :enumerate_guest_properties, nil, [WSTRING, [:out, [WSTRING]], [:out, [WSTRING]], [:out, [T_UINT64]], [:out, [WSTRING]]]
|
118
|
+
function :query_saved_guest_size, nil, [T_UINT64, [:out, T_UINT64], [:out, T_UINT64]]
|
119
|
+
function :query_saved_thumbnail_size, nil, [T_UINT32, [:out, T_UINT32], [:out, T_UINT32], [:out, T_UINT32]]
|
120
|
+
function :read_saved_thumbnail_to_array, [T_UINT8], [T_UINT32, T_BOOL, [:out, T_UINT32], [:out, T_UINT32]]
|
121
|
+
function :query_saved_screenshot_png_size, nil, [T_UINT32, [:out, T_UINT32], [:out, T_UINT32], [:out, T_UINT32]]
|
122
|
+
function :read_saved_png_screenshot_to_array, [T_UINT8], [T_UINT32, [:out, T_UINT32], [:out, T_UINT32]]
|
123
|
+
function :hot_plug_cpu, nil, [T_UINT32]
|
124
|
+
function :hot_unplug_cpu, nil, [T_UINT32]
|
125
|
+
function :get_cpu_status, T_BOOL, [T_UINT32]
|
126
|
+
function :query_log_filename, WSTRING, [T_UINT32]
|
127
|
+
function :read_log, [T_UINT8], [T_UINT32, T_UINT64, T_UINT64]
|
128
|
+
end
|
129
|
+
end
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module VirtualBox
|
2
|
+
module COM
|
3
|
+
module Interface
|
4
|
+
module Version_4_0_X
|
5
|
+
class MachineState < AbstractEnum
|
6
|
+
map [:null, :powered_off, :saved, :teleported, :aborted, :running, :paused, :stuck,
|
7
|
+
:teleporting, :live_snapshotting, :starting, :stopping, :saving, :restoring,
|
8
|
+
:teleporting_paused_vm, :teleporting_in, :restoring_snapshot, :deleting_snapshot,
|
9
|
+
:setting_up]
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
module VirtualBox
|
2
|
+
module COM
|
3
|
+
module Interface
|
4
|
+
module Version_4_0_X
|
5
|
+
class Medium < AbstractInterface
|
6
|
+
IID = "aa8167ba-df72-4738-b740-9b84377ba9f1"
|
7
|
+
|
8
|
+
property :id, WSTRING, :readonly => true
|
9
|
+
property :description, WSTRING
|
10
|
+
property :state, :MediumState, :readonly => true
|
11
|
+
property :variant, T_UINT64, :readonly => true
|
12
|
+
property :location, WSTRING
|
13
|
+
property :name, WSTRING, :readonly => true
|
14
|
+
property :device_type, :DeviceType, :readonly => true
|
15
|
+
property :host_drive, T_BOOL, :readonly => true
|
16
|
+
property :size, T_UINT64, :readonly => true
|
17
|
+
property :format, WSTRING, :readonly => true
|
18
|
+
property :medium_format, :MediumFormat, :readonly => true
|
19
|
+
property :type, :MediumType
|
20
|
+
property :parent, :Medium, :readonly => true
|
21
|
+
property :children, [:Medium], :readonly => true
|
22
|
+
property :base, :Medium, :readonly => true
|
23
|
+
property :read_only, T_BOOL, :readonly => true
|
24
|
+
property :logical_size, T_UINT64, :readonly => true
|
25
|
+
property :auto_reset, T_BOOL
|
26
|
+
property :last_access_error, WSTRING, :readonly => true
|
27
|
+
property :machine_ids, [WSTRING], :readonly => true
|
28
|
+
|
29
|
+
function :set_ids, nil, [T_BOOL, WSTRING, T_BOOL, WSTRING]
|
30
|
+
function :refresh_state, :MediumState, []
|
31
|
+
function :get_snapshot_ids, [WSTRING], [WSTRING]
|
32
|
+
function :lock_read, :MediumState, []
|
33
|
+
function :unlock_read, :MediumState, []
|
34
|
+
function :lock_write, :MediumState, []
|
35
|
+
function :unlock_write, :MediumState, []
|
36
|
+
function :close, nil, []
|
37
|
+
function :get_property, WSTRING, [WSTRING]
|
38
|
+
function :set_property, nil, [WSTRING, WSTRING]
|
39
|
+
function :get_properties, [WSTRING], [WSTRING, [:out, [WSTRING]]]
|
40
|
+
function :set_properties, nil, [[WSTRING], [WSTRING]]
|
41
|
+
function :create_base_storage, :Progress, [T_UINT64, :MediumVariant]
|
42
|
+
function :delete_storage, :Progress, []
|
43
|
+
function :create_diff_storage, :Progress, [:Medium, :MediumVariant]
|
44
|
+
function :merge_to, :Progress, [:Medium]
|
45
|
+
function :clone_to, :Progress, [:Medium, :MediumVariant, :Medium]
|
46
|
+
function :compact, :Progress, []
|
47
|
+
function :resize, :Progress, [T_UINT64]
|
48
|
+
function :reset, :Progress, []
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module VirtualBox
|
2
|
+
module COM
|
3
|
+
module Interface
|
4
|
+
module Version_4_0_X
|
5
|
+
class MediumAttachment < AbstractInterface
|
6
|
+
IID = "e58eb3eb-8627-428b-bdf8-34487c848de5"
|
7
|
+
|
8
|
+
property :medium, :Medium, :readonly => true
|
9
|
+
property :controller, WSTRING, :readonly => true
|
10
|
+
property :port, T_INT32, :readonly => true
|
11
|
+
property :device, T_INT32, :readonly => true
|
12
|
+
property :type, :DeviceType, :readonly => true
|
13
|
+
property :passthrough, T_BOOL, :readonly => true
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module VirtualBox
|
2
|
+
module COM
|
3
|
+
module Interface
|
4
|
+
module Version_4_0_X
|
5
|
+
class MediumFormat < AbstractInterface
|
6
|
+
IID = "89f52554-d469-4799-9fad-1705e86a08b1"
|
7
|
+
|
8
|
+
property :id, WSTRING, :readonly => true
|
9
|
+
property :name, WSTRING, :readonly => true
|
10
|
+
property :file_extensions, [WSTRING], :readonly => true
|
11
|
+
property :capabilities, T_UINT32, :readonly => true
|
12
|
+
|
13
|
+
function :describe_properties, nil, [[:out, [WSTRING]], [:out, [WSTRING]], [:out, [:DataType]], [:out, [T_UINT32]], [:out, [WSTRING]]]
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module VirtualBox
|
2
|
+
module COM
|
3
|
+
module Interface
|
4
|
+
module Version_4_0_X
|
5
|
+
class NATEngine < AbstractInterface
|
6
|
+
IID = "4b286616-eb03-11de-b0fb-1701eca42246"
|
7
|
+
|
8
|
+
property :network, WSTRING
|
9
|
+
property :host_ip, WSTRING
|
10
|
+
property :tftp_prefix, WSTRING
|
11
|
+
property :tftp_boot_file, WSTRING
|
12
|
+
property :tftp_next_server, WSTRING
|
13
|
+
property :alias_mode, T_UINT32
|
14
|
+
property :dns_pass_domain, T_BOOL
|
15
|
+
property :dns_proxy, T_BOOL
|
16
|
+
property :dns_use_host_resolver, T_BOOL
|
17
|
+
property :redirects, [WSTRING], :readonly => true
|
18
|
+
|
19
|
+
function :set_network_settings, nil, [T_UINT32, T_UINT32, T_UINT32, T_UINT32, T_UINT32]
|
20
|
+
function :get_network_settings, nil, [[:out, T_UINT32], [:out, T_UINT32], [:out, T_UINT32], [:out, T_UINT32], [:out, T_UINT32]]
|
21
|
+
function :add_redirect, nil, [WSTRING, :NATProtocol, WSTRING, T_UINT16, WSTRING, T_UINT16]
|
22
|
+
function :remove_redirect, nil, [WSTRING]
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
module VirtualBox
|
2
|
+
module COM
|
3
|
+
module Interface
|
4
|
+
module Version_4_0_X
|
5
|
+
class NetworkAdapter < AbstractInterface
|
6
|
+
IID = "65607a27-2b73-4d43-b4cc-0ba2c817fbde"
|
7
|
+
|
8
|
+
property :adapter_type, :NetworkAdapterType
|
9
|
+
property :slot, T_UINT32, :readonly => true
|
10
|
+
property :enabled, T_BOOL
|
11
|
+
property :mac_address, WSTRING
|
12
|
+
property :attachment_type, :NetworkAttachmentType, :readonly => true
|
13
|
+
property :host_interface, WSTRING
|
14
|
+
property :internal_network, WSTRING
|
15
|
+
property :nat_network, WSTRING
|
16
|
+
property :vde_network, WSTRING
|
17
|
+
property :cable_connected, T_BOOL
|
18
|
+
property :line_speed, T_UINT32
|
19
|
+
property :trace_enabled, T_BOOL
|
20
|
+
property :trace_file, WSTRING
|
21
|
+
property :nat_driver, :NATEngine, :readonly => true
|
22
|
+
property :boot_priority, T_UINT32
|
23
|
+
property :bandwidth_limit, T_UINT32
|
24
|
+
|
25
|
+
function :attach_to_nat, nil, []
|
26
|
+
function :attach_to_bridged_interface, nil, []
|
27
|
+
function :attach_to_internal_network, nil, []
|
28
|
+
function :attach_to_host_only_interface, nil, []
|
29
|
+
function :attach_to_vde, nil, []
|
30
|
+
function :detach, nil, []
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|