Class: VagrantDNS::Config
- Inherits:
-
Vagrant::Config::Base
- Object
- Vagrant::Config::Base
- VagrantDNS::Config
- Defined in:
- lib/vagrant-dns/config.rb
Class Attribute Summary collapse
-
.auto_run ⇒ Object
Returns the value of attribute auto_run.
-
.ipv4only ⇒ Object
Returns the value of attribute ipv4only.
-
.listen ⇒ Object
Returns the value of attribute listen.
-
.logger ⇒ Object
Returns the value of attribute logger.
Instance Attribute Summary collapse
-
#ipv4only ⇒ Object
Returns the value of attribute ipv4only.
-
#patterns ⇒ Object
Returns the value of attribute patterns.
-
#records ⇒ Object
Returns the value of attribute records.
-
#tlds ⇒ Object
Returns the value of attribute tlds.
Instance Method Summary collapse
- #pattern=(pattern) ⇒ Object
- #tld=(tld) ⇒ Object
-
#to_hash ⇒ Object
explicit hash, to get symbols in hash keys.
Class Attribute Details
.auto_run ⇒ Object
Returns the value of attribute auto_run.
6 7 8 |
# File 'lib/vagrant-dns/config.rb', line 6 def auto_run @auto_run end |
.ipv4only ⇒ Object
Returns the value of attribute ipv4only.
6 7 8 |
# File 'lib/vagrant-dns/config.rb', line 6 def ipv4only @ipv4only end |
.listen ⇒ Object
Returns the value of attribute listen.
6 7 8 |
# File 'lib/vagrant-dns/config.rb', line 6 def listen @listen end |
.logger ⇒ Object
Returns the value of attribute logger.
6 7 8 |
# File 'lib/vagrant-dns/config.rb', line 6 def logger @logger end |
Instance Attribute Details
#ipv4only ⇒ Object
Returns the value of attribute ipv4only.
22 23 24 |
# File 'lib/vagrant-dns/config.rb', line 22 def ipv4only @ipv4only end |
#patterns ⇒ Object
Returns the value of attribute patterns.
22 23 24 |
# File 'lib/vagrant-dns/config.rb', line 22 def patterns @patterns end |
#records ⇒ Object
Returns the value of attribute records.
22 23 24 |
# File 'lib/vagrant-dns/config.rb', line 22 def records @records end |
#tlds ⇒ Object
Returns the value of attribute tlds.
22 23 24 |
# File 'lib/vagrant-dns/config.rb', line 22 def tlds @tlds end |
Instance Method Details
#pattern=(pattern) ⇒ Object
24 25 26 |
# File 'lib/vagrant-dns/config.rb', line 24 def pattern=(pattern) self.patterns = pattern end |
#tld=(tld) ⇒ Object
28 29 30 |
# File 'lib/vagrant-dns/config.rb', line 28 def tld=(tld) @tlds = Array(tld) end |
#to_hash ⇒ Object
explicit hash, to get symbols in hash keys
37 38 39 40 41 42 43 44 |
# File 'lib/vagrant-dns/config.rb', line 37 def to_hash { :patterns => (patterns ? Array(patterns) : patterns), :records => records, :tlds => tlds, :ipv4only => ipv4only } end |