diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2005-10-23 02:22:28 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2005-10-23 02:22:28 +0000 |
| commit | e8912d51f1818bc59015ba687fbbb8a33fe91ecf (patch) | |
| tree | 9ebc61afe499dc096042a3efb1551bf16be5d88f /lib/puppet/util.rb | |
| parent | 1b74e8e493abe1951f1e535e752521326a63c6d3 (diff) | |
| download | puppet-e8912d51f1818bc59015ba687fbbb8a33fe91ecf.tar.gz puppet-e8912d51f1818bc59015ba687fbbb8a33fe91ecf.tar.xz puppet-e8912d51f1818bc59015ba687fbbb8a33fe91ecf.zip | |
files and directories are now created as the correct user and group if they are set
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@727 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/util.rb')
| -rw-r--r-- | lib/puppet/util.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/puppet/util.rb b/lib/puppet/util.rb index 6dd408cc5..da52791cb 100644 --- a/lib/puppet/util.rb +++ b/lib/puppet/util.rb @@ -2,9 +2,8 @@ module Puppet module Util - # Execute a block as a given user, and optionally as a group - def self.asuser(user, group = nil) - # FIXME This needs to allow user, group, or both to be optional. + # Execute a block as a given user or group + def self.asuser(user = nil, group = nil) require 'etc' uid = nil |
