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

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