/usr/lib/ruby/1.9.1/qrack/queue.rb is in libbunny-ruby1.9.1 0.6.2-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | module Qrack
# Queue ancestor class
class Queue
attr_reader :name, :client
attr_accessor :delivery_tag, :subscription
=begin rdoc
=== DESCRIPTION:
Returns consumer count from Queue#status.
=end
def consumer_count
s = status
s[:consumer_count]
end
=begin rdoc
=== DESCRIPTION:
Returns message count from Queue#status.
=end
def message_count
s = status
s[:message_count]
end
=begin rdoc
=== DESCRIPTION:
Publishes a message to the queue via the default nameless '' direct exchange.
==== RETURNS:
nil
=end
def publish(data, opts = {})
exchange.publish(data, opts)
end
end
end
|