remove redundant config argument from Updater initializer

This commit is contained in:
Paulo Bittencourt 2014-06-01 15:39:40 -04:00
parent 22af89a8de
commit 8456e91fbd
1 changed files with 4 additions and 4 deletions

View File

@ -5,18 +5,18 @@ module VagrantPlugins
module HostsFile module HostsFile
def update_guest(machine) def update_guest(machine)
Updater.new(@global_env, @config, @provider).update_guest(machine) Updater.new(@global_env, @provider).update_guest(machine)
end end
def update_host def update_host
Updater.new(@global_env, @config, @provider).update_host Updater.new(@global_env, @provider).update_host
end end
class Updater class Updater
def initialize(global_env, config, provider) def initialize(global_env, provider)
@global_env = global_env @global_env = global_env
@config = config @config = Util.get_config(@global_env)
@provider = provider @provider = provider
end end