puppetlabs/puppet — pull request #2382 by domcleal (2014-02-22 11:26:07+00:00)
Title: (PUP-1735) Reimplement deprecated Puppet::Node::Environment.current

Puppet::Node::Environment.current is used in some external code, so
reimplement it, linking to the context lookup for the current environment
and issue a deprecation warning.