开发者

Sqs vs SqsGen2 using RightScale right_aws GEM

开发者 https://www.devze.com 2022-12-24 02:02 出处:网络
I\'m trying to use the right_aws (1.10.0) GEM with Rails, and I\'ve reduced my problem to a 3-line irb session. The following works

I'm trying to use the right_aws (1.10.0) GEM with Rails, and I've reduced my problem to a 3-line irb session. The following works

require 'rubygems'
require 'right_aws'
sqs = RightAws::Sqs.new("xxxxxxxxxxxxxxx", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")

while this fails

require 'rubygems'
require 'right_aws'
sqs = RightAws::SqsGen2.new("xxxxxxxxxxxxxxx", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")

with NameError: uninitialized constant RightAws::SqsGen2. I see the class definition in the GEM source, the documenta开发者_如何转开发tion is old but seems accurate, but I can't figure out what I'm doing wrong.

And while you're at it, is there any reason if I'm building something new, I'd want to use the older interface?


What version of Rails are you using? Maybe try to check latest versions of aws gem(2.4.4)?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号