Sha256: 3a82dcceb251e0129b3d26ef4d2d27e9432e86d417f57ac8a1bea093c8389f13
Contents?: true
Size: 617 Bytes
Versions: 36
Compression:
Stored size: 617 Bytes
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 SUMMARY = { 'id' => Integer, 'name' => String } end end end
Version data entries
36 entries across 36 versions & 2 rubygems