Class: VagrantPlugins::ProviderOpenStack::Driver::Meta

Inherits:
Base
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/vagrant-openstack/driver/meta.rb

Defined Under Namespace

Classes: VMNotFound

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#clear_forwarded_ports, #clear_shared_folders, #create_dhcp_server, #create_host_only_network, #delete, #delete_unused_host_only_networks, #discard_saved_state, #enable_adapters, #execute, #execute_command, #export, #forward_ports, #halt, #import, #raw, #read_bridged_interfaces, #read_forwarded_ports, #read_guest_additions_version, #read_host_only_interfaces, #read_mac_address, #read_machine_folder, #read_network_interfaces, #read_state, #read_used_ports, #read_vms, #set_mac_address, #share_folders, #ssh_port, #start, #suspend, #verify!, #verify_image, #vm_exists?

Constructor Details

#initialize(uuid = nil) ⇒ Meta

Returns a new instance of Meta.



24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/vagrant-openstack/driver/meta.rb', line 24

def initialize(uuid=nil)
  # Setup the base
  super()

  @logger = Log4r::Logger.new("vagrant::provider::virtualbox::meta")
  @uuid = uuid


  driver_klass = Folsom
  @logger.info("Using VirtualBox driver: #{driver_klass}")
  @driver = driver_klass.new(@uuid)

end

Instance Attribute Details

#uuidObject (readonly)

The UUID of the virtual machine we represent



19
20
21
# File 'lib/vagrant-openstack/driver/meta.rb', line 19

def uuid
  @uuid
end

#versionObject (readonly)

The version of virtualbox that is running.



22
23
24
# File 'lib/vagrant-openstack/driver/meta.rb', line 22

def version
  @version
end