Class: VagrantPlugins::VSphereDDNS::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



9
10
11
12
# File 'lib/vagrant-vsphere-ddns/config.rb', line 9

def initialize
  @host = UNSET_VALUE
  @ssh_timeout = UNSET_VALUE
end

Instance Attribute Details

#hostObject

Returns the value of attribute host.



6
7
8
# File 'lib/vagrant-vsphere-ddns/config.rb', line 6

def host
  @host
end

#ssh_timeoutObject

Returns the value of attribute ssh_timeout.



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

def ssh_timeout
  @ssh_timeout
end

Instance Method Details

#finalize!Object



14
15
16
17
# File 'lib/vagrant-vsphere-ddns/config.rb', line 14

def finalize!
  @host = nil if @host == UNSET_VALUE
  @ssh_timeout = 120 if @ssh_timeout == UNSET_VALUE
end

#validate(machine) ⇒ Object



19
20
21
22
# File 'lib/vagrant-vsphere-ddns/config.rb', line 19

def validate(machine)
  errors = _detected_errors
  { 'vagrant-vsphere-ddns' => errors }
end