providers/hyperv: remove unused config

This commit is contained in:
Mitchell Hashimoto 2014-02-26 23:13:09 -08:00
parent d1bdfe492b
commit 39bf9db651
2 changed files with 2 additions and 47 deletions

View File

@ -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

View File

@ -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