publisher_renote_dac 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/publisher_renote_dac/version.rb +1 -1
- data/lib/tasks/publisher_renote_dac_tasks.rake +3 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c4f747be65d4b58339a5ebfe51d6316924e8abfa458eae8f9c6934fc49a7290
|
4
|
+
data.tar.gz: 9aa40ece9df79179928951eb2b0147cf8179dbfc0c9b749b03102fab82bc6bf4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aebbc1ef0715e52497d3ca5ff081bf39501b50a89eaa55700823cb804d96a95e64f43c876b2a76617917a29d0dca5a5c037de67090ddafb8a928c27fff76e0f9
|
7
|
+
data.tar.gz: 57d425cf338120642b47ee84d8b9d73ca89b06bb4bf0d65399560b1e23fc2e662dd675f3982cf431a2b59deb1faeda326b4a81a8015f6e9221f41c8cce5db21e
|
@@ -9,13 +9,10 @@ namespace :publisher_renote_dac do
|
|
9
9
|
conn.start
|
10
10
|
|
11
11
|
ch = conn.create_channel
|
12
|
-
# get or create exchange
|
13
|
-
x = ch.fanout('publisher_renote_dac.email')
|
14
|
-
# get or create queue (note the durable setting)
|
15
|
-
queue = ch.queue('consumer_renote_dac.email', durable: true)
|
16
|
-
# bind queue to exchange
|
17
|
-
queue.bind('publisher_renote_dac.email')
|
18
12
|
|
13
|
+
# connect one exchange to multiple queues
|
14
|
+
x = ch.fanout('publisher_renote_dac.email')
|
15
|
+
ch.queue('consumer_renote_dac.email', durable: true).bind('publisher_renote_dac.email')
|
19
16
|
conn.close
|
20
17
|
end
|
21
18
|
end
|