bjeanes/ghost — pull request #16 by lsdr (2012-01-10 12:25:20+00:00)
Title: Ghost import can now fetch files over the wire

I did a small change in bin/ghost so it can fetch and import files over http connections.

At work, we want to share the host setups between a few developers and I thought that adding this to ghost would be better than just writting a wrap-up script that fetches the file and then uses ghost to register hostnames.

I simply split the `File.foreach` inside bin/ghost to open and the iter over the file. Using open-uri gem, `#open` becomes smart enough to handle files and fetches.

Hope this is useful.