puppetlabs/puppet-server — pull request #224 by KevinCorcoran (2014-10-15 01:51:17+00:00)
Title: (SERVER-61) improvements to the ExecutionStub

* The execution stub now returns an instance of
Puppet::Util::Execution::ProcessOutput, as per the contract of
Puppet::Util::Execution.execute.

* Add basic spec/unit tests

* In java, close the reader used to read the process's STDOUT.

* In ruby, close the file handles passed-in for STDIN, STDOUT, and
STDERR; we're not using these (this is implemented in java instead),
but Puppet::Util::Execution.execute does not close them when an
execution stub is installed.