boxen/puppet-osx — pull request #27 by nricheton (2013-08-02 10:51:11+00:00)
Title: osx_login_item : added user parameter

Hi,

The current code can add login items to the current user only. When puppet runs with its own user, it is not possible to add a login_item to a specific user.

This commit adds sudo -u before the command if the user parameter is specified.

--
Nicolas