Class: VBox::Appliance

Inherits:
Base
  • Object
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

Methods



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

#disksObject



10
11
12
# File 'lib/virtualbox/classes/appliance.rb', line 10

def disks
  VBox::WebService.send_request(:i_appliance_get_disks, _this.merge)
end

#interpretObject



33
34
35
# File 'lib/virtualbox/classes/appliance.rb', line 33

def interpret
  VBox::WebService.send_request(:i_appliance_interpret, _this)
end

#machinesObject



21
22
23
# File 'lib/virtualbox/classes/appliance.rb', line 21

def machines
  VBox::WebService.send_request(:i_appliance_get_machines, _this.merge)
end

#pathObject

Attributes



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_descriptionsObject



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