jeremyboles-graffic 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/graffic.rb +2 -2
- metadata +1 -1
data/lib/graffic.rb
CHANGED
@@ -46,7 +46,7 @@ class Graffic < ActiveRecord::Base
|
|
46
46
|
end
|
47
47
|
|
48
48
|
# Handle the first message in toe process queue
|
49
|
-
def handle_top_in_process_queue
|
49
|
+
def handle_top_in_process_queue
|
50
50
|
if message = process_queue.receive
|
51
51
|
data = YAML.load(message.to_s)
|
52
52
|
begin
|
@@ -62,7 +62,7 @@ class Graffic < ActiveRecord::Base
|
|
62
62
|
|
63
63
|
# Handles the first message in the upload queue
|
64
64
|
# TODO: Figure out a better way to handle messages when records aren't there
|
65
|
-
def handle_top_in_upload_queue
|
65
|
+
def handle_top_in_upload_queue
|
66
66
|
if message = upload_queue.receive
|
67
67
|
data = YAML.load(message.to_s)
|
68
68
|
return if data[:hostname] != `hostname`.strip
|