lookup puppet environment in custom fact
I'm writing a custom fact and am trying to lookup the puppet environment. My first thought was to access the environment fact:
but realized "environment" is not actually a fact, but rather it's a puppet config variable. How can I grab the puppet environment in ruby/facter?