Class: VagrantDNS::Configurator
- Inherits:
-
Object
- Object
- VagrantDNS::Configurator
- Defined in:
- lib/vagrant-dns/configurator.rb
Instance Attribute Summary collapse
-
#tmp_path ⇒ Object
Returns the value of attribute tmp_path.
-
#vm ⇒ Object
Returns the value of attribute vm.
Instance Method Summary collapse
- #down! ⇒ Object
-
#initialize(vm, tmp_path) ⇒ Configurator
constructor
A new instance of Configurator.
- #up! ⇒ Object
Constructor Details
#initialize(vm, tmp_path) ⇒ Configurator
Returns a new instance of Configurator.
7 8 9 10 |
# File 'lib/vagrant-dns/configurator.rb', line 7 def initialize(vm, tmp_path) @vm = vm @tmp_path = tmp_path end |
Instance Attribute Details
#tmp_path ⇒ Object
Returns the value of attribute tmp_path.
5 6 7 |
# File 'lib/vagrant-dns/configurator.rb', line 5 def tmp_path @tmp_path end |
#vm ⇒ Object
Returns the value of attribute vm.
5 6 7 |
# File 'lib/vagrant-dns/configurator.rb', line 5 def vm @vm end |
Instance Method Details
#down! ⇒ Object
19 20 21 |
# File 'lib/vagrant-dns/configurator.rb', line 19 def down! unregister_patterns! end |
#up! ⇒ Object
12 13 14 15 16 17 |
# File 'lib/vagrant-dns/configurator.rb', line 12 def up! return unless validate_tlds regenerate_resolvers! ensure_deamon_env! register_patterns! end |