Class: VBox::Appliance
- Inherits:
-
Base
- Object
- Base
- VBox::Appliance
show all
- Defined in:
- lib/virtualbox/classes/appliance.rb
Instance Attribute Summary collapse
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 Attribute Details
#ref ⇒ Object
Returns the value of attribute ref.
4
5
6
|
# File 'lib/virtualbox/classes/appliance.rb', line 4
def ref
@ref
end
|
Instance Method Details
#create_vfs_explorer(args = {}) ⇒ Object
29
30
31
32
33
|
# File 'lib/virtualbox/classes/appliance.rb', line 29
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
12
13
14
|
# File 'lib/virtualbox/classes/appliance.rb', line 12
def disks
VBox::WebService.send_request(:i_appliance_get_disks, _this.merge)
end
|
#interpret ⇒ Object
35
36
37
|
# File 'lib/virtualbox/classes/appliance.rb', line 35
def interpret
VBox::WebService.send_request(:i_appliance_interpret, _this)
end
|
#machines ⇒ Object
23
24
25
|
# File 'lib/virtualbox/classes/appliance.rb', line 23
def machines
VBox::WebService.send_request(:i_appliance_get_machines, _this.merge)
end
|
#path ⇒ Object
8
9
10
|
# File 'lib/virtualbox/classes/appliance.rb', line 8
def path
VBox::WebService.send_request(:i_appliance_get_path, _this)
end
|
#read(args = {}) ⇒ Object
39
40
41
42
43
|
# File 'lib/virtualbox/classes/appliance.rb', line 39
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
16
17
18
19
20
21
|
# File 'lib/virtualbox/classes/appliance.rb', line 16
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
45
46
47
48
49
|
# File 'lib/virtualbox/classes/appliance.rb', line 45
def write(args={})
ensure_hash(args)
progress = VBox::WebService.send_request(:i_appliance_write, _this.merge(args))
VBox::Progress.new(progress)
end
|