Sha256: 0b0435d2def40fad6d2aada04c4e3e4d9b98d21cb2d9a0f8028cd2600c8e55c8

Contents?: true

Size: 678 Bytes

Versions: 8

Compression:

Stored size: 678 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 list_servers
          request(
            :expects  => 200,
            :method   => 'GET',
            :path     => 'servers.json'
          )
        end

      end
    end
  end

else

  module Fog
    module Rackspace
      class Servers

        def list_servers
        end

      end
    end
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fog-0.0.29 lib/fog/rackspace/requests/servers/list_servers.rb
fog-0.0.28 lib/fog/rackspace/requests/servers/list_servers.rb
fog-0.0.27 lib/fog/rackspace/requests/servers/list_servers.rb
fog-0.0.26 lib/fog/rackspace/requests/servers/list_servers.rb
fog-0.0.25 lib/fog/rackspace/requests/servers/list_servers.rb
fog-0.0.24 lib/fog/rackspace/requests/servers/list_servers.rb
fog-0.0.23 lib/fog/rackspace/requests/servers/list_servers.rb
fog-0.0.22 lib/fog/rackspace/requests/servers/list_servers.rb