cawcaw 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/cawcaw/command/rabbitmq/queue_count.rb +3 -4
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
@@ -71,10 +71,9 @@ graph_info #{params[:graph_info]}
|
|
71
71
|
# start a communication session with the amqp server
|
72
72
|
bunny.start
|
73
73
|
|
74
|
-
queue_names
|
75
|
-
|
76
|
-
|
77
|
-
message_count = queue.status[:message_count]
|
74
|
+
queue_message_counts = bunny.queue_message_counts(queue_names, :durable=>durable)
|
75
|
+
|
76
|
+
queue_message_counts.each_pair do |queue_name, message_count|
|
78
77
|
label = queue_name.gsub(/[^a-zA-Z0-9]/, "_").downcase
|
79
78
|
output_stream.puts "#{label}.value #{message_count}"
|
80
79
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cawcaw
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bunnish
|
@@ -195,7 +195,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
195
195
|
version: '0'
|
196
196
|
segments:
|
197
197
|
- 0
|
198
|
-
hash:
|
198
|
+
hash: 1321405576812598434
|
199
199
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
200
200
|
none: false
|
201
201
|
requirements:
|