From 39bf9db6512208713302393d4b6cfc43e764c518 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 26 Feb 2014 23:13:09 -0800 Subject: [PATCH] providers/hyperv: remove unused config --- plugins/providers/hyperv/config.rb | 16 ++------- plugins/providers/hyperv/host_share/config.rb | 33 ------------------- 2 files changed, 2 insertions(+), 47 deletions(-) delete mode 100644 plugins/providers/hyperv/host_share/config.rb diff --git a/plugins/providers/hyperv/config.rb b/plugins/providers/hyperv/config.rb index 3a512a945..ef382a45c 100644 --- a/plugins/providers/hyperv/config.rb +++ b/plugins/providers/hyperv/config.rb @@ -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 diff --git a/plugins/providers/hyperv/host_share/config.rb b/plugins/providers/hyperv/host_share/config.rb deleted file mode 100644 index 93a4e9cda..000000000 --- a/plugins/providers/hyperv/host_share/config.rb +++ /dev/null @@ -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