Sha256: 8f95d1c270f855078762ac443e5e7e724a95daed27a7e6a30c55d596d618fb02

Contents?: true

Size: 535 Bytes

Versions: 16

Compression:

Stored size: 535 Bytes

Contents

module Propono

  def self.aws_options
    AwsConfig.new(Propono.config).aws_options
  end
  
  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
        {
          :aws_access_key_id => @config.access_key,
          :aws_secret_access_key => @config.secret_key,
          :region => @config.queue_region
        }
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
propono-1.7.0 lib/propono/components/aws_config.rb
propono-1.6.0 lib/propono/components/aws_config.rb
propono-1.5.0 lib/propono/components/aws_config.rb
propono-1.4.0 lib/propono/components/aws_config.rb
propono-1.3.0 lib/propono/components/aws_config.rb
propono-1.2.0 lib/propono/components/aws_config.rb
propono-1.1.3 lib/propono/components/aws_config.rb
propono-1.1.2 lib/propono/components/aws_config.rb
propono-1.1.1 lib/propono/components/aws_config.rb
propono-1.1.0 lib/propono/components/aws_config.rb
propono-1.0.0 lib/propono/components/aws_config.rb
propono-1.0.0.rc3 lib/propono/components/aws_config.rb
propono-1.0.0.rc2 lib/propono/components/aws_config.rb
propono-1.0.0.rc1 lib/propono/components/aws_config.rb
propono-0.11.1 lib/propono/components/aws_config.rb
propono-0.11.0 lib/propono/components/aws_config.rb