Sha256: f0b2821f98ccf19a373ee186c9c5e9fb76942113dd863cfe1835f273b7a9195a

Contents?: true

Size: 823 Bytes

Versions: 37

Compression:

Stored size: 823 Bytes

Contents

module AWS

  class << self
    def [](service)
      @@connections ||= Hash.new do |hash, key|
        credentials = Fog.credentials.reject do |k, v|
          ![:aws_access_key_id, :aws_secret_access_key].include?(k)
        end
        hash[key] = case key
        when :ec2
          Fog::AWS::EC2.new(credentials)
        when :eu_s3
          Fog::AWS::S3.new(credentials.merge!(:host => 's3-external-3.amazonaws.com'))
        when :sdb
          Fog::AWS::SimpleDB.new(credentials)
        when :s3
          Fog::AWS::S3.new(credentials)
        end
      end
      @@connections[service]
    end
  end

  module EC2

    module Formats

      BASIC = {
        'requestId' => String,
        'return'    => ::Fog::Boolean
      }

    end

  end

end

unless defined?(GENTOO_AMI)
  GENTOO_AMI = 'ami-5ee70037'
end

Version data entries

37 entries across 37 versions & 2 rubygems

Version Path
fog-0.2.30 tests/aws/helper.rb
fog-0.2.28 tests/aws/helper.rb
fog-0.2.27 tests/aws/helper.rb
fog-0.2.26 tests/aws/helper.rb
fog-0.2.25 tests/aws/helper.rb
fog-0.2.24 tests/aws/helper.rb
tecnh-fog-0.2.23.vpc tests/aws/helper.rb
fog-0.2.23 tests/aws/helper.rb
fog-0.2.22 tests/aws/helper.rb
fog-0.2.21 tests/aws/helper.rb
fog-0.2.20 tests/aws/helper.rb
fog-0.2.19 tests/aws/helper.rb
fog-0.2.18 tests/aws/helper.rb
fog-0.2.17 tests/aws/helper.rb
fog-0.2.16 tests/aws/helper.rb
fog-0.2.15 tests/aws/helper.rb
fog-0.2.14 tests/aws/helper.rb
fog-0.2.13 tests/aws/helper.rb
fog-0.2.12 tests/aws/helper.rb
fog-0.2.11 tests/aws/helper.rb