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,23 @@
|
|
1
|
+
module VirtualBox
|
2
|
+
module COM
|
3
|
+
module Interface
|
4
|
+
module Version_3_1_X
|
5
|
+
class StorageController < AbstractInterface
|
6
|
+
IID = "6bf8335b-d14a-44a5-9b45-ddc49ce7d5b2"
|
7
|
+
|
8
|
+
property :name, WSTRING, :readonly => true
|
9
|
+
property :max_devices_per_port_count, T_UINT32, :readonly => true
|
10
|
+
property :min_port_count, T_UINT32, :readonly => true
|
11
|
+
property :max_port_count, T_UINT32, :readonly => true
|
12
|
+
property :instance, T_UINT32
|
13
|
+
property :port_count, T_UINT32
|
14
|
+
property :bus, :StorageBus, :readonly => true
|
15
|
+
property :controller_type, :StorageControllerType
|
16
|
+
|
17
|
+
function :get_ide_emulation_port, T_INT32, [T_INT32]
|
18
|
+
function :set_ide_emulation_port, nil, [T_INT32, T_INT32]
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
module VirtualBox
|
2
|
+
module COM
|
3
|
+
module Interface
|
4
|
+
module Version_3_1_X
|
5
|
+
class SystemProperties < AbstractInterface
|
6
|
+
IID = "8030645c-8fef-4320-bb7b-c829f00069dc"
|
7
|
+
|
8
|
+
property :min_guest_ram, T_UINT32, :readonly => true
|
9
|
+
property :max_guest_ram, T_UINT32, :readonly => true
|
10
|
+
property :min_guest_vram, T_UINT32, :readonly => true
|
11
|
+
property :max_guest_vram, T_UINT32, :readonly => true
|
12
|
+
property :min_guest_cpu_count, T_UINT32, :readonly => true
|
13
|
+
property :max_guest_cpu_count, T_UINT32, :readonly => true
|
14
|
+
property :max_vdi_size, T_UINT64, :readonly => true
|
15
|
+
property :network_adapter_count, T_UINT32, :readonly => true
|
16
|
+
property :serial_port_count, T_UINT32, :readonly => true
|
17
|
+
property :parallel_port_count, T_UINT32, :readonly => true
|
18
|
+
property :max_boot_position, T_UINT32, :readonly => true
|
19
|
+
property :default_machine_folder, WSTRING
|
20
|
+
property :default_hard_disk_folder, WSTRING
|
21
|
+
property :medium_formats, [:MediumFormat], :readonly => true
|
22
|
+
property :default_hard_disk_format, WSTRING
|
23
|
+
property :remote_display_auth_library, WSTRING
|
24
|
+
property :web_service_auth_library, WSTRING
|
25
|
+
property :log_history_count, T_UINT32
|
26
|
+
property :default_audio_driver, :AudioDriverType, :readonly => true
|
27
|
+
|
28
|
+
function :get_max_devices_per_port_for_storage_bus, T_UINT32, [:StorageBus]
|
29
|
+
function :get_min_port_count_for_storage_bus, T_UINT32, [:StorageBus]
|
30
|
+
function :get_max_port_count_for_storage_bus, T_UINT32, [:StorageBus]
|
31
|
+
function :get_max_instances_of_storage_bus, T_UINT32, [:StorageBus]
|
32
|
+
function :get_device_types_for_storage_bus, [:DeviceType], [:StorageBus]
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module VirtualBox
|
2
|
+
module COM
|
3
|
+
module Interface
|
4
|
+
module Version_3_1_X
|
5
|
+
class USBController < AbstractInterface
|
6
|
+
IID = "238540fa-4b73-435a-a38e-4e1d9eab5c17"
|
7
|
+
|
8
|
+
property :enabled, T_BOOL
|
9
|
+
property :enabled_ehci, T_BOOL
|
10
|
+
property :usb_standard, T_UINT16, :readonly => true
|
11
|
+
property :device_filters, [:USBDeviceFilter], :readonly => true
|
12
|
+
|
13
|
+
function :create_device_filter, :USBDeviceFilter, [WSTRING]
|
14
|
+
function :insert_device_filter, nil, [T_UINT32, :USBDeviceFilter]
|
15
|
+
function :remove_device_filter, :USBDeviceFilter, [T_UINT32]
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module VirtualBox
|
2
|
+
module COM
|
3
|
+
module Interface
|
4
|
+
module Version_3_1_X
|
5
|
+
class USBDevice < AbstractInterface
|
6
|
+
IID = "f8967b0b-4483-400f-92b5-8b675d98a85b"
|
7
|
+
|
8
|
+
property :id, WSTRING, :readonly => true
|
9
|
+
property :vendor_id, T_UINT16, :readonly => true
|
10
|
+
property :product_id, T_UINT16, :readonly => true
|
11
|
+
property :revision, T_UINT16, :readonly => true
|
12
|
+
property :manfacturer, WSTRING, :readonly => true
|
13
|
+
property :product, WSTRING, :readonly => true
|
14
|
+
property :serial_number, WSTRING, :readonly => true
|
15
|
+
property :address, WSTRING, :readonly => true
|
16
|
+
property :port, T_UINT16, :readonly => true
|
17
|
+
property :version, T_UINT16, :readonly => true
|
18
|
+
property :port_version, T_UINT16, :readonly => true
|
19
|
+
property :remote, T_BOOL, :readonly => true
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module VirtualBox
|
2
|
+
module COM
|
3
|
+
module Interface
|
4
|
+
module Version_3_1_X
|
5
|
+
class USBDeviceFilter < AbstractInterface
|
6
|
+
IID = "d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
|
7
|
+
|
8
|
+
property :name, WSTRING
|
9
|
+
property :active, T_BOOL
|
10
|
+
property :vendor_id, WSTRING
|
11
|
+
property :product_id, WSTRING
|
12
|
+
property :revision, WSTRING
|
13
|
+
property :manufacturer, WSTRING
|
14
|
+
property :product, WSTRING
|
15
|
+
property :serial_number, WSTRING
|
16
|
+
property :port, WSTRING
|
17
|
+
property :remote, WSTRING
|
18
|
+
property :masked_interfaces, T_UINT32
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module VirtualBox
|
2
|
+
module COM
|
3
|
+
module Interface
|
4
|
+
module Version_3_1_X
|
5
|
+
class VirtualBoxErrorInfo < AbstractInterface
|
6
|
+
IID = "4b86d186-407e-4f9e-8be8-e50061be8725"
|
7
|
+
|
8
|
+
property :result_code, T_UINT32, :readonly => true
|
9
|
+
property :interface_i_d, WSTRING, :readonly => true
|
10
|
+
property :component, WSTRING, :readonly => true
|
11
|
+
property :text, WSTRING, :readonly => true
|
12
|
+
property :next, :VirtualBoxErrorInfo, :readonly => true
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module VirtualBox
|
2
|
+
module COM
|
3
|
+
module Interface
|
4
|
+
module Version_3_1_X
|
5
|
+
class VirtualSystemDescription < AbstractInterface
|
6
|
+
IID = "d7525e6c-531a-4c51-8e04-41235083a3d8"
|
7
|
+
|
8
|
+
property :count, T_UINT32, :readonly => true
|
9
|
+
|
10
|
+
function :get_description, nil, [[:out, [:VirtualSystemDescriptionType]], [:out, [WSTRING]], [:out, [WSTRING]], [:out, [WSTRING]], [:out, [WSTRING]]]
|
11
|
+
function :get_description_by_type, nil, [:VirtualSystemDescriptionType, [:out, [:VirtualSystemDescriptionType]], [:out, [WSTRING]], [:out, [WSTRING]], [:out, [WSTRING]], [:out, [WSTRING]]]
|
12
|
+
function :get_values_by_type, [WSTRING], [:VirtualSystemDescriptionType, :VirtualSystemDescriptionValueType]
|
13
|
+
function :set_final_values, nil, [[T_BOOL], [WSTRING], [WSTRING]]
|
14
|
+
function :add_description, nil, [:VirtualSystemDescriptionType, WSTRING, WSTRING]
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module VirtualBox
|
2
|
+
module COM
|
3
|
+
module Interface
|
4
|
+
module Version_3_1_X
|
5
|
+
class VirtualSystemDescriptionType < AbstractEnum
|
6
|
+
map [:null, :ignore, :os, :name, :product, :vendor, :version, :product_url, :vendor_url,
|
7
|
+
:description, :license, :misc, :cpu, :memory, :hard_disk_controller_ide,
|
8
|
+
:hard_disk_controller_sata, :hard_disk_controller_scsi, :hard_disk_image,
|
9
|
+
:floppy, :cdrom, :network_adapter, :usb_controller, :sound_card]
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,67 @@
|
|
1
|
+
module VirtualBox
|
2
|
+
module COM
|
3
|
+
module Interface
|
4
|
+
module Version_3_1_X
|
5
|
+
class VirtualBox < AbstractInterface
|
6
|
+
IID_STR = "2158464a-f706-414b-a8c4-fb589dfc6b62"
|
7
|
+
|
8
|
+
property :version, WSTRING, :readonly => true
|
9
|
+
property :revision, T_ULONG, :readonly => true
|
10
|
+
property :package_type, WSTRING, :readonly => true
|
11
|
+
property :home_folder, WSTRING, :readonly => true
|
12
|
+
property :settings_file_path, WSTRING, :readonly => true
|
13
|
+
property :host, :Host, :readonly => true
|
14
|
+
property :system_properties, :SystemProperties, :readonly => true
|
15
|
+
property :machines, [:Machine], :readonly => true
|
16
|
+
property :hard_disks, [:Medium], :readonly => true
|
17
|
+
property :dvd_images, [:Medium], :readonly => true
|
18
|
+
property :floppy_images, [:Medium], :readonly => true
|
19
|
+
property :progress_operations, [:Progress], :readonly => true
|
20
|
+
property :guest_os_types, [:GuestOSType], :readonly => true
|
21
|
+
property :shared_folders, [:SharedFolder], :readonly => true
|
22
|
+
property :performance_collector, :PerformanceCollector, :readonly => true
|
23
|
+
property :dhcp_servers, [:DHCPServer], :readonly => true
|
24
|
+
|
25
|
+
function :create_machine, :Machine, [WSTRING, WSTRING, WSTRING, WSTRING]
|
26
|
+
function :create_legacy_machine, :Machine, [WSTRING, WSTRING, WSTRING, WSTRING]
|
27
|
+
function :open_machine, :Machine, [WSTRING]
|
28
|
+
function :register_machine, :Machine, [:Machine]
|
29
|
+
function :get_machine, :Machine, [WSTRING]
|
30
|
+
function :find_machine, :Machine, [WSTRING]
|
31
|
+
function :unregister_machine, :Machine, [WSTRING]
|
32
|
+
function :create_appliance, :Appliance, []
|
33
|
+
function :create_hard_disk, :Medium, [WSTRING, WSTRING]
|
34
|
+
function :open_hard_disk, :Medium, [WSTRING, :AccessMode, T_BOOL, WSTRING, T_BOOL, WSTRING]
|
35
|
+
function :get_hard_disk, :Medium, [WSTRING]
|
36
|
+
function :find_hard_disk, :Medium, [WSTRING]
|
37
|
+
function :open_dvd_image, :Medium, [WSTRING, WSTRING]
|
38
|
+
function :get_dvd_image, :Medium, [WSTRING]
|
39
|
+
function :find_dvd_image, :Medium, [WSTRING]
|
40
|
+
function :open_floppy_image, :Medium, [WSTRING, WSTRING]
|
41
|
+
function :get_floppy_image, :Medium, [WSTRING]
|
42
|
+
function :find_floppy_image, :Medium, [WSTRING]
|
43
|
+
function :get_guest_os_type, :GuestOSType, [WSTRING]
|
44
|
+
function :create_shared_folder, nil, [WSTRING, WSTRING, T_BOOL]
|
45
|
+
function :remove_shared_folder, nil, [WSTRING]
|
46
|
+
function :get_extra_data_keys, [WSTRING], []
|
47
|
+
function :get_extra_data, WSTRING, [WSTRING]
|
48
|
+
function :set_extra_data, nil, [WSTRING, WSTRING]
|
49
|
+
function :open_session, nil, [:Session, WSTRING]
|
50
|
+
function :open_remote_session, :Progress, [:Session, WSTRING, WSTRING, WSTRING]
|
51
|
+
function :open_existing_session, nil, [:Session, WSTRING]
|
52
|
+
|
53
|
+
# TODO: The following two are wrong, they don't take a
|
54
|
+
# string as input
|
55
|
+
function :register_callback, nil, [WSTRING]
|
56
|
+
function :unregister_callback, nil, [WSTRING]
|
57
|
+
|
58
|
+
function :wait_for_property_change, nil, [WSTRING, T_UINT32, [:out, WSTRING], [:out, WSTRING]]
|
59
|
+
function :create_dhcp_server, :DHCPServer, [WSTRING]
|
60
|
+
function :find_dhcp_server_by_network_name, :DHCPServer, [WSTRING]
|
61
|
+
function :remove_dhcp_server, nil, [:DHCPServer]
|
62
|
+
function :check_firmware_present, T_BOOL, [:FirmwareType, WSTRING, [:out, WSTRING], [:out, WSTRING]]
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module VirtualBox
|
2
|
+
module COM
|
3
|
+
module Interface
|
4
|
+
module Version_3_1_X
|
5
|
+
class VRDPServer < AbstractInterface
|
6
|
+
IID = "72e671bc-1712-4052-ad6b-e45e76d9d3e4"
|
7
|
+
|
8
|
+
property :enabled, T_BOOL
|
9
|
+
property :ports, WSTRING
|
10
|
+
property :net_address, WSTRING
|
11
|
+
property :auth_type, :VRDPAuthType
|
12
|
+
property :auth_timeout, T_UINT32
|
13
|
+
property :allow_multi_connection, T_BOOL
|
14
|
+
property :reuse_single_connection, T_BOOL
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module VirtualBox
|
2
|
+
module COM
|
3
|
+
module Interface
|
4
|
+
module Version_3_2_X
|
5
|
+
class Appliance < AbstractInterface
|
6
|
+
IID = "e3ba9ab9-ac2c-4266-8bd2-91c4bf721ceb"
|
7
|
+
|
8
|
+
property :path, WSTRING, :readonly => true
|
9
|
+
property :disks, [WSTRING], :readonly => true
|
10
|
+
property :virtual_system_descriptions, [:VirtualSystemDescription], :readonly => true
|
11
|
+
|
12
|
+
function :read, :Progress, [WSTRING]
|
13
|
+
function :interpret, nil, []
|
14
|
+
function :import_machines, :Progress, []
|
15
|
+
function :create_vfs_explorer, :VFSExplorer, [WSTRING]
|
16
|
+
function :write, :Progress, [WSTRING, WSTRING]
|
17
|
+
function :get_warnings, [WSTRING], []
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module VirtualBox
|
2
|
+
module COM
|
3
|
+
module Interface
|
4
|
+
module Version_3_2_X
|
5
|
+
class AudioAdapter < AbstractInterface
|
6
|
+
IID = "921873db-5f3f-4b69-91f9-7be9e535a2cb"
|
7
|
+
|
8
|
+
property :enabled, T_BOOL
|
9
|
+
property :audio_controller, :AudioControllerType
|
10
|
+
property :audio_driver, :AudioDriverType
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|