lib/propono/components/aws_client.rb in propono-2.0.0.rc1 vs lib/propono/components/aws_client.rb in propono-2.0.0.rc2
- old
+ new
@@ -1,7 +1,5 @@
-#require 'aws/sns'
-#require 'aws/sqs'
require 'aws-sdk-sns'
require 'aws-sdk-sqs'
module Propono
class AwsClient
@@ -17,10 +15,10 @@
)
end
def send_to_sqs(queue, message)
sqs_client.send_message(
- queue_url: queue,
+ queue_url: queue.url,
message_body: message
)
end
def create_topic(name)