Class: VagrantPlugins::VMM::Config
- Inherits:
-
Object
- Object
- VagrantPlugins::VMM::Config
- Defined in:
- lib/vagrant-vmm/config.rb
Instance Attribute Summary collapse
- #ad_server ⇒ String
- #ad_source_path ⇒ String
- #ad_target_path ⇒ String
-
#ip_address_timeout ⇒ Integer
The timeout to wait for an IP address when booting the machine, in seconds.
- #proxy_server_address ⇒ String
- #vm_address ⇒ String
- #vm_host_group_name ⇒ String
- #vm_template_name ⇒ String
- #vmm_server_address ⇒ String
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.
30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/vagrant-vmm/config.rb', line 30 def initialize @ip_address_timeout = UNSET_VALUE @proxy_server_address = nil @vmm_server_address = UNSET_VALUE @vm_template_name = UNSET_VALUE @vm_host_group_name = UNSET_VALUE @vm_address = nil @ad_server = nil @ad_source_path = nil @ad_target_path = nil end |
Instance Attribute Details
#ad_server ⇒ String
22 23 24 |
# File 'lib/vagrant-vmm/config.rb', line 22 def ad_server @ad_server end |
#ad_source_path ⇒ String
24 25 26 |
# File 'lib/vagrant-vmm/config.rb', line 24 def ad_source_path @ad_source_path end |
#ad_target_path ⇒ String
26 27 28 |
# File 'lib/vagrant-vmm/config.rb', line 26 def ad_target_path @ad_target_path end |
#ip_address_timeout ⇒ Integer
The timeout to wait for an IP address when booting the machine, in seconds.
10 11 12 |
# File 'lib/vagrant-vmm/config.rb', line 10 def ip_address_timeout @ip_address_timeout end |
#proxy_server_address ⇒ String
12 13 14 |
# File 'lib/vagrant-vmm/config.rb', line 12 def proxy_server_address @proxy_server_address end |
#vm_address ⇒ String
20 21 22 |
# File 'lib/vagrant-vmm/config.rb', line 20 def vm_address @vm_address end |
#vm_host_group_name ⇒ String
18 19 20 |
# File 'lib/vagrant-vmm/config.rb', line 18 def vm_host_group_name @vm_host_group_name end |
#vm_template_name ⇒ String
16 17 18 |
# File 'lib/vagrant-vmm/config.rb', line 16 def vm_template_name @vm_template_name end |
#vmm_server_address ⇒ String
14 15 16 |
# File 'lib/vagrant-vmm/config.rb', line 14 def vmm_server_address @vmm_server_address end |
Instance Method Details
#finalize! ⇒ Object
42 43 44 45 46 |
# File 'lib/vagrant-vmm/config.rb', line 42 def finalize! if @ip_address_timeout == UNSET_VALUE @ip_address_timeout = 60 end end |
#validate(machine) ⇒ Object
48 49 50 51 52 |
# File 'lib/vagrant-vmm/config.rb', line 48 def validate(machine) errors = _detected_errors { "VMM" => errors } end |