Class: VagrantHypconfigmgmt::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



10
11
12
13
14
15
# File 'lib/vagrant-hypconfigmgmt/config.rb', line 10

def initialize
  super
  # UNSET_VALUE so that Vagrant can properly automatically merge multiple configurations.
  # https://www.vagrantup.com/docs/plugins/configuration.html
  @enabled = UNSET_VALUE
end

Instance Attribute Details

#enabledObject

Returns the value of attribute enabled.



8
9
10
# File 'lib/vagrant-hypconfigmgmt/config.rb', line 8

def enabled
  @enabled
end

Instance Method Details

#finalize!Object



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

def finalize!
  @enabled = (@enabled != UNSET_VALUE) && (@enabled != false)
end