fixed to
<pre>
@environment ||= Puppet.lookup(:current_environment)
</pre>
which in the event we were wrong, and the :curent environment is not set on some call path it will raise an error.