require 'evrone/common/amqp' require 'evrone/ci/message' module Evrone module CI class Router class BuildsConsumer include Evrone::Common::AMQP::Consumer include Helper::Logger exchange 'ci.builds' queue 'ci.worker.builds' ack true model Message::PerformBuild def perform(message) logger.tagged self.class.consumer_id do build = Build.new message Router.new(build).perform end ack! end end end end end