HomePhorge

(#8410) Factor out a base class for exec providers
18c322ad262bUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#8410) Factor out a base class for exec providers

Rather than the shell provider inheriting from the posix provider, they
both now inherit from a common Puppet::Provider::Exec class. This new
base class and inheritance structure will allow the forthcoming windows
provider to also inherit from that class, rather than from the
unsuitable posix provider.

Also, now that Puppet::Util.execute supports commands as strings in
addition to arrays, the command to execute is passed to
Puppet::Util::SUIDManager.run_and_capture as a string, rather than a
string wrapped in an array. This ensures we will never improperly quote
a command with arguments provided as a single string.

Details

Provenance
Nick Lewis <nick@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUcb53870a8546: (#8410) Cleanup and fix Windows support in Puppet::Util.execute
Branches
Unknown
Tags
Unknown

Event Timeline

Nick Lewis <nick@puppetlabs.com> committed rPU18c322ad262b: (#8410) Factor out a base class for exec providers (authored by Nick Lewis <nick@puppetlabs.com>).Aug 24 2011, 7:56 PM