File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
lib/vagrant-hostmanager/action Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 1
- require 'vagrant-hostmanager/hosts_file'
1
+ require 'vagrant-hostmanager/hosts_file/updater '
2
2
require 'vagrant-hostmanager/util'
3
3
4
4
module VagrantPlugins
5
5
module HostManager
6
6
module Action
7
7
class UpdateGuest
8
- include HostsFile
9
8
10
9
def initialize ( app , env )
11
10
@app = app
12
11
@machine = env [ :machine ]
13
- @global_env = @machine . env
14
- @provider = env [ :provider ]
15
- @config = Util . get_config ( @global_env )
12
+ @updater = HostsFile ::Updater . new ( @machine . env , env [ :provider ] )
16
13
@logger = Log4r ::Logger . new ( 'vagrant::hostmanager::update_guest' )
17
14
end
18
15
19
16
def call ( env )
20
17
env [ :ui ] . info I18n . t ( 'vagrant_hostmanager.action.update_guest' , {
21
18
:name => @machine . name
22
19
} )
23
- update_guest ( @machine )
20
+ @updater . update_guest ( @machine )
24
21
25
22
@app . call ( env )
26
23
end
You can’t perform that action at this time.
0 commit comments