Sha256: faf8c0cefea8e1bb8e07077db95615b96b7af77828fcdcac9b4abad366fa4004
Contents?: true
Size: 813 Bytes
Versions: 3
Compression:
Stored size: 813 Bytes
Contents
require "vagrant" module VagrantWindows module Config class Windows < Vagrant.plugin("2", :config) attr_accessor :halt_timeout attr_accessor :halt_check_interval def initialize @halt_timeout = UNSET_VALUE @halt_check_interval = UNSET_VALUE end def validate(machine) errors = [] errors << "windows.halt_timeout cannot be nil." if machine.config.windows.halt_timeout.nil? errors << "windows.halt_check_interval cannot be nil." if machine.config.windows.halt_check_interval.nil? { "Windows Guest" => errors } end def finalize! @halt_timeout = 30 if @halt_timeout == UNSET_VALUE @halt_check_interval = 1 if @halt_check_interval == UNSET_VALUE end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vagrant-windows-1.0.3 | lib/vagrant-windows/config/windows.rb |
vagrant-windows-1.0.1 | lib/vagrant-windows/config/windows.rb |
vagrant-windows-1.0.0 | lib/vagrant-windows/config/windows.rb |