bernd/fpm-cookery — pull request #75 by unakatsuo (2014-03-27 18:02:05+00:00)
Title: Add fpm_hook recipe directive.

This feature allows recipe to change fpm object's attribute directly.

The classes under lib/fpm/cookery/package/* set several fixed fpm attributes. But some attributes are missing accessor method to change the value from the recipe. The fpm_hook exposes the internal object to the recipe and let user to modify it.

Example:

```
class Recipe < FPM::Cookery::Recipe
platform :redhat do
fpm_hook do |fpm|
fpm.attributes[:rpm_user] = 'httpd'
end
end

platform :debian do
fpm_hook do |fpm|
fpm.attributes[:deb_user] = 'apache'
end
end
end
```