providers/hyperv: remove unused config
This commit is contained in:
parent
d1bdfe492b
commit
39bf9db651
|
@ -10,15 +10,8 @@ module VagrantPlugins
|
|||
# @return [Integer]
|
||||
attr_accessor :ip_address_timeout
|
||||
|
||||
attr_reader :host_share
|
||||
|
||||
def initialize
|
||||
@ip_address_timeout = UNSET_VALUE
|
||||
@host_share = HostShare::Config.new
|
||||
end
|
||||
|
||||
def host_config(&block)
|
||||
block.call(@host_share)
|
||||
end
|
||||
|
||||
def finalize!
|
||||
|
@ -27,15 +20,10 @@ module VagrantPlugins
|
|||
end
|
||||
end
|
||||
|
||||
|
||||
def validate(machine)
|
||||
errors = _detected_errors
|
||||
=begin
|
||||
unless host_share.valid_config?
|
||||
errors << host_share.errors.flatten.join(" ")
|
||||
end
|
||||
=end
|
||||
{ "HyperV" => errors }
|
||||
|
||||
{ "Hyper-V" => errors }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,33 +0,0 @@
|
|||
#-------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Open Technologies, Inc.
|
||||
# All Rights Reserved. Licensed under the MIT License.
|
||||
#--------------------------------------------------------------------------
|
||||
module VagrantPlugins
|
||||
module HyperV
|
||||
module HostShare
|
||||
class Config < Vagrant.plugin("2", :config)
|
||||
attr_accessor :username, :password
|
||||
|
||||
def errors
|
||||
@errors
|
||||
end
|
||||
|
||||
def validate
|
||||
@errors = []
|
||||
if username.nil?
|
||||
@errors << "Please configure a Windows user account to share folders"
|
||||
end
|
||||
if password.nil?
|
||||
@errors << "Please configure a Windows user account password to share folders"
|
||||
end
|
||||
end
|
||||
|
||||
def valid_config?
|
||||
validate
|
||||
errors.empty?
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue