Can't you simply use `Utils::SprocketsEnvironment.env`? You will find it here: https://github.com/crowbar/barclamp-crowbar/blob/release/roxy/master/crowbar_framework/lib/utils/sprockets_environment.rb