puppetlabs/razor-server — pull request #22 by alexkonradi (2013-08-20 18:27:06+00:00)
Title: Fix torquebox messaging race condition

Razor::Messaging::Sequel is loaded in a new Torquebox environment to process messages, so it naturally needs to load the entire Razor environment as well. Calling `require '../../razor' at the top of the file, though, caused the files in lib/razor/data to be loaded before the lib/razor/messaging/sequel.rb had finished being loading. This didn't show up until trying to run `rake console` from the command-line, at which point initialization would fail.