Module: VirtualBox::VM::Identity

Included in:
VirtualBox::VM
Defined in:
lib/virtual_box/vm/identity.rb

Overview

Mix-in for the VM class covering identity management.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#config_fileObject

Returns the value of attribute config_file.



22
23
24
# File 'lib/virtual_box/vm/identity.rb', line 22

def config_file
  @config_file
end

#nameObject

:nodoc: documented as attribute



17
18
19
# File 'lib/virtual_box/vm/identity.rb', line 17

def name
  @name
end

#uuidObject

:nodoc: documented as attribute



20
21
22
# File 'lib/virtual_box/vm/identity.rb', line 20

def uuid
  @uuid
end

Instance Method Details

#reset_identityObject

Resets the VM’s identity (name, UUID, configuration file).



25
26
27
28
29
# File 'lib/virtual_box/vm/identity.rb', line 25

def reset_identity
  @name = nil
  @uuid = nil
  @config_file = nil
end