Class: VagrantPlugins::ProviderKvm::Config
- Inherits:
-
Object
- Object
- VagrantPlugins::ProviderKvm::Config
- Defined in:
- lib/vagrant-kvm/config.rb
Instance Attribute Summary collapse
-
#customizations ⇒ Array
readonly
An array of customizations to make on the VM prior to booting it.
-
#name ⇒ String
This should be set to the name of the VM.
-
#network_adapters ⇒ Hash
readonly
The defined network adapters.
Instance Method Summary collapse
-
#finalize! ⇒ Object
This is the hook that is called to finalize the object before it is put into use.
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
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
#customizations ⇒ Array (readonly)
An array of customizations to make on the VM prior to booting it.
7 8 9 |
# File 'lib/vagrant-kvm/config.rb', line 7 def customizations @customizations end |
#name ⇒ String
This should be set to the name of the VM
12 13 14 |
# File 'lib/vagrant-kvm/config.rb', line 12 def name @name end |
#network_adapters ⇒ Hash (readonly)
The defined network adapters.
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 |