puppetlabs/puppet — pull request #2098 by ferventcoder (2013-11-20 23:54:59+00:00)
Title: (#23236) Deprecate Puppet::Util::SUIDManager.run_and_capture

This deprecates run_and_capture from SUIDManager for
Puppet::Util::Execution.execute(). Run and capture is returning $CHILDSTATUS
where execute returns an exit status as part of output. This means that run and
capture could have potential issues when being used, especially with Windows
which is known to have issues due to the truncation of exit codes greater than
256.

This returns the previous function and specs associated with it and adds a spec
for the deprecation warning.