bjeanes / ghost

Create, list, delete, and modify /etc/hosts entries with ease...
MIT License
732 stars 44 forks source link

only change /etc/hosts between control tokens on linux #21

Closed sbeam closed 12 years ago

sbeam commented 12 years ago

Here is a re-done version of the recently closed pull request for this functionality, based on the the latest clean HEAD. Also tidied up a few things and added more explicit tests around the tokens themselves.

Note, this will have an unexpected effect on someone who is already using ghost, since it will start ignoring their previously entered entries. They'd have to re-add things, or add the #ghost start and # ghost end comments to the hosts file. Probably worth mentioning in the docs.