Class: VagrantTun::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



7
8
9
10
11
12
# File 'lib/vagrant-tun/config.rb', line 7

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.



5
6
7
# File 'lib/vagrant-tun/config.rb', line 5

def enabled
  @enabled
end

Instance Method Details

#finalize!Object



14
15
16
# File 'lib/vagrant-tun/config.rb', line 14

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