customink-webops / hostsfile

Easily manage your hosts file with Chef
Apache License 2.0
155 stars 82 forks source link

Add support for more than 9 host entries per IP on Windows, fixes issue #74 #99

Open gnjack opened 6 years ago

gnjack commented 6 years ago

Add support for more than 9 host entries per IP on Windows, fixes issue #74

Changes to libraries/entry.rb taken from open PR #76 and updated to resolve merge conflicts.

Integration tests not used from #76 as there are no windows platforms configured in test kitchen so the additional assertions will never be run. Added unit tests to spec/unit/entry_spec.rb instead. Manually tested with a windows kitchen suite, but not sure if this is possible to actually get working with dokken and travis.

This is a similar PR to #76 and #80 but updated to resolve merge conflicts and including additional tests.