puppetlabs/puppet — pull request #3298 by KevinCorcoran (2014-11-11 00:37:22+00:00)
Title: (PUP-3511) refactor Application.run for reuse

Extract a small chunk of code from Puppet::Application.run into its own
method so that it can be reused. This code is currently duplicated in
Puppet Server; the introduction of this new `reset_environment_context`
method enables the replacement of the duplicated code in Puppet Server
with a call to this new method.