HomePhorge

Add platform-specific metadata collectors
f05fc83405f6Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Add platform-specific metadata collectors

Puppet::File_Serving::MetaData was not able to retrieve owner, group
or mode on Windows, because the underlying Ruby File.stat
implementation always returns 0 for uid and gid, and returns either
644 or 444 (the latter for read-only).

This commit wraps File::Stat in platform-specific objects that
delegate to the appropriate object and method. By default, owner,
group, mode, ftype delegate to methods on the normal File::Stat
object. On Windows, we delegate owner, group, and mode to the get/set
class methods of Puppet::Util::Windows::Security.

Details

Provenance
Josh Cooper <josh@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUdb0b4fbb35e5: Make string_to_sid_ptr block optional
Branches
Unknown
Tags
Unknown

Event Timeline

Josh Cooper <josh@puppetlabs.com> committed rPUf05fc83405f6: Add platform-specific metadata collectors (authored by Josh Cooper <josh@puppetlabs.com>).Sep 27 2011, 7:46 PM