customink-webops/hostsfile — pull request #2 by xsawyerx (2012-08-26 16:24:04+00:00)
Title: Provide searching and creation by hostname

I wanted to use `:create_if_missing` but I saw it only searches by IP. This is actually counter-intuitive, because providing multiple IPs for a given hostname doesn't make sense, but providing multiple hostnames for a lot of IPs makes sense.

So, I:
1. separated `:create_if_missing` to `:create_if_missing_ip`
2. added `:create_if_missing_hostname`
3. added methods for finding by hostname

Hope it helps.

P.S.:
Sorry for pushing this into **master** branch. It should go into a separate clean branch, but I was too lazy and saw that the repo isn't heavy with development so it won't be a mess, I hope.