rifle 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rifle/rifle_resque.rb +4 -1
- data/lib/rifle/version.rb +1 -1
- metadata +1 -1
data/lib/rifle/rifle_resque.rb
CHANGED
@@ -5,13 +5,16 @@ require_relative 'settings'
|
|
5
5
|
# This simple resque job pings the search server with a payload.
|
6
6
|
|
7
7
|
class RifleResque
|
8
|
-
@queue = Rifle.settings.resque_queue
|
9
8
|
|
10
9
|
def initialize(urn, payload)
|
11
10
|
@urn = urn
|
12
11
|
@payload = payload
|
13
12
|
end
|
14
13
|
|
14
|
+
def self.queue
|
15
|
+
Rifle.settings.resque_queue
|
16
|
+
end
|
17
|
+
|
15
18
|
def store
|
16
19
|
RestClient.post("#{Rifle.settings.server}/store/#{@urn}", @payload)
|
17
20
|
end
|
data/lib/rifle/version.rb
CHANGED