Class: VagrantPlugins::ProviderKvm::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-kvm/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



19
20
21
# File 'lib/vagrant-kvm/config.rb', line 19

def initialize
  @name             = UNSET_VALUE
end

Instance Attribute Details

#customizationsArray (readonly)

An array of customizations to make on the VM prior to booting it.

Returns:

  • (Array)


7
8
9
# File 'lib/vagrant-kvm/config.rb', line 7

def customizations
  @customizations
end

#nameString

This should be set to the name of the VM

Returns:

  • (String)


12
13
14
# File 'lib/vagrant-kvm/config.rb', line 12

def name
  @name
end

#network_adaptersHash (readonly)

The defined network adapters.

Returns:

  • (Hash)


17
18
19
# File 'lib/vagrant-kvm/config.rb', line 17

def network_adapters
  @network_adapters
end

Instance Method Details

#finalize!Object

This is the hook that is called to finalize the object before it is put into use.



25
26
27
28
# File 'lib/vagrant-kvm/config.rb', line 25

def finalize!
  # The default name is just nothing, and we default it
  @name = nil if @name == UNSET_VALUE
end