lib/propono/components/aws_config.rb in propono-2.2.1 vs lib/propono/components/aws_config.rb in propono-3.0.0

- old
+ new

@@ -3,21 +3,15 @@ def initialize(config) @config = config end - def aws_options - if @config.use_iam_profile - { - :use_iam_profile => true, - :region => @config.queue_region - } - else - { - :access_key_id => @config.access_key, - :secret_access_key => @config.secret_key, - :region => @config.queue_region - } - end + def sqs_options + @config.aws_options.merge(@config.sqs_options) end + + def sns_options + @config.aws_options.merge(@config.sns_options) + end + end end