Sha256: 18628f31d69481fb7598dc0ecd6e19c114bd55485137f0134bae6f7e08d17d9a
Contents?: true
Size: 856 Bytes
Versions: 1
Compression:
Stored size: 856 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 :compute Fog::AWS::Compute.new(credentials) when :eu_storage Fog::AWS::Storage.new(credentials.merge!(:host => 's3-external-3.amazonaws.com')) when :sdb Fog::AWS::SimpleDB.new(credentials) when :storage Fog::AWS::Storage.new(credentials) end end @@connections[service] end end module Compute module Formats BASIC = { 'requestId' => String, 'return' => ::Fog::Boolean } end end end unless defined?(GENTOO_AMI) GENTOO_AMI = 'ami-5ee70037' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-0.3.0 | tests/aws/helper.rb |