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
-
#initialize(vm, tmp_path) ⇒ Configurator
constructor
A new instance of Configurator.
- #run! ⇒ Object
Constructor Details
#initialize(vm, tmp_path) ⇒ Configurator
Returns a new instance of Configurator.
8 9 10 11 |
# File 'lib/vagrant-dns/configurator.rb', line 8 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.
6 7 8 |
# File 'lib/vagrant-dns/configurator.rb', line 6 def tmp_path @tmp_path end |
#vm ⇒ Object
Returns the value of attribute vm.
6 7 8 |
# File 'lib/vagrant-dns/configurator.rb', line 6 def vm @vm end |
Instance Method Details
#run! ⇒ Object
13 14 15 16 17 |
# File 'lib/vagrant-dns/configurator.rb', line 13 def run! regenerate_resolvers! ensure_deamon_env! register_patterns! end |