Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (11 sloc) 242 Bytes
#publishes any argument passed on the system queue
require 'rubygems'
require 'mq'
command = $*
AMQP.start do
p "publishing #{command}"
MQ.fanout('system').publish(command, :priority => 9)
EM.add_timer(1) do
EM.stop
end
end