Sha256: aba5dae927a4be2b3be577f44b0e67f659d4ceec9250ab24e1376c79524f5af0

Contents?: true

Size: 676 Bytes

Versions: 7

Compression:

Stored size: 676 Bytes

Contents

unless Fog.mocking?

  module Fog
    module Rackspace
      class Servers

        # List all servers (IDs and names only)
        #
        # ==== Returns
        # * response<~Fog::AWS::Response>:
        #   * body<~Hash>:
        #   * 'servers'<~Array>:
        #     * 'id'<~Integer> - Id of server
        #     * 'name<~String> - Name of server
        def get_servers
          request(
            :expects  => 200,
            :method   => 'GET',
            :path     => 'servers.json'
          )
        end

      end
    end
  end

else

  module Fog
    module Rackspace
      class Servers

        def get_servers
        end

      end
    end
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fog-0.0.21 lib/fog/rackspace/requests/servers/get_servers.rb
fog-0.0.20 lib/fog/rackspace/requests/servers/get_servers.rb
fog-0.0.19 lib/fog/rackspace/requests/servers/get_servers.rb
fog-0.0.18 lib/fog/rackspace/requests/servers/get_servers.rb
fog-0.0.17 lib/fog/rackspace/requests/servers/get_servers.rb
fog-0.0.16 lib/fog/rackspace/requests/servers/get_servers.rb
fog-0.0.15 lib/fog/rackspace/requests/servers/get_servers.rb