smdahlen/vagrant-hostmanager — pull request #49 by Tpbrown (2013-11-11 22:16:07+00:00)
Title: Support Cygwin and MinGW on Windows.  Fixes #24

Use ENV['SystemRoot'] to determine if we're running on Windows (vs ENV[['OS']).
Also ensure we use ENV['WINDIR'] to correctly locate the hosts file.

You'll still need the hosts file to have permissions allowing modifications, or run Vagrant as an administrator.