Sha256: d07910a09e46f0eaf5535546c6411a31b81ee521e1c0b9c156d7b5e25294d434
Contents?: true
Size: 655 Bytes
Versions: 3
Compression:
Stored size: 655 Bytes
Contents
module Fog module OracleCloud class Database class Real def list_servers(db_name) response = request( :expects => 200, :method => 'GET', :path => "/paas/service/dbcs/api/v1.1/instances/#{@identity_domain}/#{db_name}/servers" ) response end end class Mock def list_servers(db_name) response = Excon::Response.new servers = self.data[:servers][db_name] response.body = { "servers" => servers } response end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems