Module: LifeBoat

Defined in:
lib/lifeboat.rb

Defined Under Namespace

Modules: ActiveRecord, Queues, ResqueCallbacks

Class Method Summary collapse

Class Method Details

.read_queue(name) ⇒ Object



50
51
52
53
54
# File 'lib/lifeboat.rb', line 50

def self.read_queue(name)
  #TODO EXTRAT OUT THE @CUE INTO HIGHER LEVEL
  @cue = RightAws::SqsGen2.new(Credentials.key, Credentials.secret)
  return @cue.queue(name).receive_messages
end