Sha256: 05c92c2c3681505bc55601f5366bcb88a8b453784a309eaaa652def4f6045857

Contents?: true

Size: 600 Bytes

Versions: 11

Compression:

Stored size: 600 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

11 entries across 11 versions & 1 rubygems

Version Path
fog-oraclecloud-0.1.12 lib/fog/oraclecloud/requests/compute/list_instances.rb
fog-oraclecloud-0.1.11 lib/fog/oraclecloud/requests/compute/list_instances.rb
fog-oraclecloud-0.1.10 lib/fog/oraclecloud/requests/compute/list_instances.rb
fog-oraclecloud-0.1.9 lib/fog/oraclecloud/requests/compute/list_instances.rb
fog-oraclecloud-0.1.8 lib/fog/oraclecloud/requests/compute/list_instances.rb
fog-oraclecloud-0.1.7 lib/fog/oraclecloud/requests/compute/list_instances.rb
fog-oraclecloud-0.1.6 lib/fog/oraclecloud/requests/compute/list_instances.rb
fog-oraclecloud-0.1.5 lib/fog/oraclecloud/requests/compute/list_instances.rb
fog-oraclecloud-0.1.4 lib/fog/oraclecloud/requests/compute/list_instances.rb
fog-oraclecloud-0.1.3 lib/fog/oraclecloud/requests/compute/list_instances.rb
fog-oraclecloud-0.1.2 lib/fog/oraclecloud/requests/compute/list_instances.rb