Class: VagrantDNS::Configurator

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-dns/configurator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_pathObject

Returns the value of attribute tmp_path.



6
7
8
# File 'lib/vagrant-dns/configurator.rb', line 6

def tmp_path
  @tmp_path
end

#vmObject

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