Sha256: c7ff5bde68ff2d1de2028801b62730af7cbf757e62caad94912caff48b8773f9

Contents?: true

Size: 670 Bytes

Versions: 1

Compression:

Stored size: 670 Bytes

Contents

module Fog
  module OracleCloud
    class Java
      class Real
      	def list_servers(service_name)
          response = request(
            :expects  => 200,
            :method   => 'GET',
            :path     => "/paas/service/jcs/api/v1.1/instances/#{@identity_domain}/#{service_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.values
          }

          response
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fog-oraclecloud-0.1.12 lib/fog/oraclecloud/requests/java/list_servers.rb