Class: VBox::Appliance
- Inherits:
-
Base
- Object
- Base
- VBox::Appliance
show all
- Defined in:
- lib/virtualbox/classes/appliance.rb
Instance Attribute Summary
Attributes inherited from Base
#ref
Instance Method Summary
collapse
Methods inherited from Base
#_this, #delete!, #ensure_hash, #initialize, #vbox_class
Constructor Details
This class inherits a constructor from VBox::Base
Instance Method Details
#create_vfs_explorer(args = {}) ⇒ Object
27
28
29
30
31
|
# File 'lib/virtualbox/classes/appliance.rb', line 27
def create_vfs_explorer(args={})
ensure_hash args
vfs_explorer = VBox::WebService.send_request(:i_appliance_create_vfs_explorer, _this.merge(args))
VBox::VFSExplorer.new(vfs_explorer)
end
|
#disks ⇒ Object
10
11
12
|
# File 'lib/virtualbox/classes/appliance.rb', line 10
def disks
VBox::WebService.send_request(:i_appliance_get_disks, _this.merge)
end
|
#interpret ⇒ Object
33
34
35
|
# File 'lib/virtualbox/classes/appliance.rb', line 33
def interpret
VBox::WebService.send_request(:i_appliance_interpret, _this)
end
|
#machines ⇒ Object
21
22
23
|
# File 'lib/virtualbox/classes/appliance.rb', line 21
def machines
VBox::WebService.send_request(:i_appliance_get_machines, _this.merge)
end
|
#path ⇒ Object
6
7
8
|
# File 'lib/virtualbox/classes/appliance.rb', line 6
def path
VBox::WebService.send_request(:i_appliance_get_path, _this)
end
|
#read(args = {}) ⇒ Object
37
38
39
40
41
|
# File 'lib/virtualbox/classes/appliance.rb', line 37
def read(args={})
ensure_hash args
progress = VBox::WebService.send_request(:i_appliance_read, _this.merge(args))
VBox::Progress.new(progress)
end
|
#virtual_system_descriptions ⇒ Object
14
15
16
17
18
19
|
# File 'lib/virtualbox/classes/appliance.rb', line 14
def virtual_system_descriptions
virtual_system_descriptions = VBox::WebService.send_request(:i_appliance_get_virtual_system_descriptions, _this)
virtual_system_descriptions.map do |virtual_system_description|
VBox::VirtualSystemDescription.new(virtual_system_description)
end
end
|
#write(args = {}) ⇒ Object
43
44
45
46
47
|
# File 'lib/virtualbox/classes/appliance.rb', line 43
def write(args={})
ensure_hash args
progress = VBox::WebService.send_request(:i_appliance_write, _this.merge(args))
VBox::Progress.new(progress)
end
|