puppetlabs/puppet — pull request #2377 by domcleal (2014-02-21 20:24:41+00:00)
Title: (PUP-1722) 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.