Sha256: 71d87176f2acca7bf8ba556cb3f4b61502d6bb8c041daff63e6e2b7d49b06109

Contents?: true

Size: 445 Bytes

Versions: 7

Compression:

Stored size: 445 Bytes

Contents

module Propono
  class AwsConfig

    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
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
propono-2.2.1 lib/propono/components/aws_config.rb
propono-2.2.0 lib/propono/components/aws_config.rb
propono-2.1.0 lib/propono/components/aws_config.rb
propono-2.0.0 lib/propono/components/aws_config.rb
propono-2.0.0.rc3 lib/propono/components/aws_config.rb
propono-2.0.0.rc2 lib/propono/components/aws_config.rb
propono-2.0.0.rc1 lib/propono/components/aws_config.rb