Class: VagrantPlugins::VSphereDDNS::Config
- Inherits:
-
Object
- Object
- VagrantPlugins::VSphereDDNS::Config
- Defined in:
- lib/vagrant-vsphere-ddns/config.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#ssh_timeout ⇒ Object
Returns the value of attribute ssh_timeout.
Instance Method Summary collapse
- #finalize! ⇒ Object
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #validate(machine) ⇒ Object
Constructor Details
#initialize ⇒ Config
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
#host ⇒ Object
Returns the value of attribute host.
6 7 8 |
# File 'lib/vagrant-vsphere-ddns/config.rb', line 6 def host @host end |
#ssh_timeout ⇒ Object
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 |