mitchellh/vagrant — pull request #1280 by kbrock (2012-12-29 04:35:32+00:00)
Title: Multivm hostname

Hi,

When in a multi vm environment, all vms have the same name in virtualbox. This makes it tricky to know which machine is which.

This patch uses the vm's host_name if it is available.

A) This is based upon the 1.0 branch, since that is what I use. Please point me to the 1.1 (master) vs 1.0 (stable) branching strategy FAQ and I can rebase.

B) If you have an example of an action tested / and how much you want to mock out, please let me know. (I saw some good legacy tests that used the environment)

C) Also, I noticed that Environment#root_path is documented to return a String, but the existing code assumes a Pathname is coming out.This threw a wrench into my testing, so please advise and I can fix this as well.

Thanks for the great tool,
Keenan