Sha256: 1d611e90a65f38b0bf166d9145f231a9fd4608d3871598dab63947b701d6df6e

Contents?: true

Size: 572 Bytes

Versions: 5

Compression:

Stored size: 572 Bytes

Contents

module Fog
  module Compute
    class OracleCloud
      class Real
      	def list_instances
          response = request(
            :expects => 200,
            :method  => 'GET',
            :path    => "/instance/Compute-#{@identity_domain}/"
          )
          response
        end
      end
      class Mock
        def list_instances
          response = Excon::Response.new

          instances = self.data[:instances].values

          response.body = {
            'result' => instances
          }
          response
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fog-oraclecloud-0.1.17 lib/fog/oraclecloud/requests/compute/list_instances.rb
fog-oraclecloud-0.1.16 lib/fog/oraclecloud/requests/compute/list_instances.rb
fog-oraclecloud-0.1.15 lib/fog/oraclecloud/requests/compute/list_instances.rb
fog-oraclecloud-0.1.14 lib/fog/oraclecloud/requests/compute/list_instances.rb
fog-oraclecloud-0.1.13 lib/fog/oraclecloud/requests/compute/list_instances.rb