Sha256: cdd7608c5a4a8c3b09fabeefa1389d175156088a5e04c571952fc95847448c5a

Contents?: true

Size: 322 Bytes

Versions: 12

Compression:

Stored size: 322 Bytes

Contents

require 'fog'

module Propono
  module Sns
    private

    def sns
      @sns ||= Fog::AWS::SNS.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

12 entries across 12 versions & 1 rubygems

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