Sha256: 7c634734e812d1317ee90208e2d7e8808ce3b72f07aabe5e6976c6c5448a0cba
Contents?: true
Size: 1.2 KB
Versions: 4
Compression:
Stored size: 1.2 KB
Contents
module Rackspace def self.[](service) @@connections ||= Hash.new do |hash, key| credentials = Fog.credentials.reject do |k, v| ![:rackspace_api_key, :rackspace_username].include?(k) end hash[key] = case key when :files Fog::Rackspace::Files.new(credentials) when :servers Fog::Rackspace::Servers.new(credentials) end end @@connections[service] end module Files module Formats end end module Servers module Formats FLAVOR = { 'disk' => Integer, 'id' => Integer, 'name' => String, 'ram' => Integer } IMAGE = { 'id' => Integer, 'name' => String, 'serverId' => Integer, 'status' => String, 'updated' => String } SERVER = { 'addresses' => { 'private' => [String], 'public' => [String] }, 'flavorId' => Integer, 'hostId' => String, 'id' => Integer, 'imageId' => Integer, 'metadata' => {}, 'name' => String, 'progress' => Integer, 'status' => String } end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
fog-0.0.71 | tests/rackspace/helper.rb |
fog-0.0.70 | tests/rackspace/helper.rb |
fog-0.0.69 | tests/rackspace/helper.rb |
fog-0.0.68 | tests/rackspace/helper.rb |