sintaxi (owner)

Revisions

gist: 226735 Download_button fork
public
Public Clone URL: git://gist.github.com/226735.git
Embed All Files: show embed
queue.rb #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
###############
# Wrong
###############
 
# starling specific
Starling.new('127.0.0.1:22122').set('my_queue', 12345)
 
 
###############
# Right
###############
 
# create agnostic object
BRQ = Starling.new('127.0.0.1:22122')
 
# add to queue
BRQ.set('my_queue', 12345)