gildas/puppet-homebrew — pull request #10 by dominics (2014-09-25 05:55:17+00:00)
Title: Fixes a problem with Puppet 3.0+ where the HOME environmental variable is unset. Version 2.

We're already attempting to run using the same user that owns the brew executable. We should also ensure that if we add `HOME` to the environment (which is necessary, as `~` is used by some brew packages), then we use the `HOME` of the user we're about to execute as.