We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04dee9b commit 5581f1cCopy full SHA for 5581f1c
lib/vagrant-hostmanager/provisioner.rb
@@ -1,19 +1,20 @@
1
+require 'vagrant-hostmanager/hosts_file/updater'
2
+
3
module VagrantPlugins
4
module HostManager
5
class Provisioner < Vagrant.plugin('2', :provisioner)
- include HostsFile
6
7
def initialize(machine, config)
8
super(machine, config)
- @global_env = machine.env
9
- @provider = machine.provider_name
10
- @config = Util.get_config(@global_env)
+ global_env = machine.env
+ @config = Util.get_config(global_env)
11
+ @updater = HostsFile::Updater.new(global_env, machine.provider_name)
12
end
13
14
def provision
- update_guest(@machine)
15
+ @updater.update_guest(@machine)
16
if @config.hostmanager.manage_host?
- update_host
17
+ @updater.update_host
18
19
20
0 commit comments