Sha256: a98d242843b430cbd14eba16e36b33f6ed11f1701d60b52cd0a40517683c6ffb

Contents?: true

Size: 323 Bytes

Versions: 11

Compression:

Stored size: 323 Bytes

Contents

require 'fog'

module Propono
  module Sqs
    private

    def sqs
      @sqs ||= Fog::AWS::SQS.new(
        :aws_access_key_id => config.access_key,
        :aws_secret_access_key => config.secret_key,
        :region => config.queue_region
      )
    end

    def config
      Configuration.instance
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
propono-0.5.6 lib/propono/components/sqs.rb
propono-0.5.5 lib/propono/components/sqs.rb
propono-0.5.4 lib/propono/components/sqs.rb
propono-0.5.3 lib/propono/components/sqs.rb
propono-0.5.2 lib/propono/components/sqs.rb
propono-0.5.1 lib/propono/components/sqs.rb
propono-0.5.0 lib/propono/components/sqs.rb
propono-0.4.0 lib/propono/components/sqs.rb
propono-0.3.0 lib/propono/components/sqs.rb
propono-0.2.0 lib/propono/components/sqs.rb
propono-0.1.0 lib/propono/sqs.rb