lib/kitchen/driver/vagrant.rb
# Truncates the length of `:vm_hostname` to 12 characters for
# Windows-based operating systems.
#
# @api private
Truncates the length of `:vm_hostname` to 12 characters for
Windows-based operating systems.
Truncates the length of ` : vm_hostname ` to 12 characters for Windows - based operating systems .
def finalize_vm_hostname!
        string = config[:vm_hostname]
        if windows_os? && string.is_a?(String) && string.size >= 12
          config[:vm_hostname] = "#{string[0...10]}-#{string[-1]}"
        end
      end
def finalize_vm_hostname! string = config [ :vm_hostname ] if windows_os? && string . is_a? ( String ) && string . size >= 12 config [ :vm_hostname ] = "#{string[0...10]}-#{string[-1]}" end end
Truncates the length of `:vm_hostname` to 12 characters for
Windows-based operating systems.
Truncates the length of ` : vm_hostname ` to 12 characters for Windows - based operating systems .
api
None