2014-03-14 17:51:00 +00:00
|
|
|
module VagrantPlugins
|
|
|
|
module GuestWindows
|
|
|
|
class Config < Vagrant.plugin("2", :config)
|
|
|
|
attr_accessor :set_work_network
|
|
|
|
|
|
|
|
def initialize
|
2014-05-01 15:00:41 +00:00
|
|
|
@set_work_network = UNSET_VALUE
|
2014-03-14 17:51:00 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def validate(machine)
|
|
|
|
errors = []
|
|
|
|
|
2014-04-22 18:03:37 +00:00
|
|
|
errors << "windows.set_work_network cannot be nil." if @set_work_network.nil?
|
2014-03-14 17:51:00 +00:00
|
|
|
|
|
|
|
{ "Windows Guest" => errors }
|
|
|
|
end
|
|
|
|
|
|
|
|
def finalize!
|
|
|
|
@set_work_network = false if @set_work_network == UNSET_VALUE
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|