Sha256: 55e936a9644871eba2fe17f9454d6ebbe745b2aaa4c0f8ec5bfaf94ef7f9312f

Contents?: true

Size: 619 Bytes

Versions: 2

Compression:

Stored size: 619 Bytes

Contents

module Fog
  module Compute
    class OracleCloud
      class Real
      	def list_image_lists
          response = request(
            :expects  => 200,
            :method   => 'GET',
            :path     => "/imagelist/Compute-#{@identity_domain}/#{@username}/"
          )
          response
        end
      end

      class Mock
        def list_image_lists
          response = Excon::Response.new

          images = self.data[:image_lists].values

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fog-oraclecloud-0.1.12 lib/fog/oraclecloud/requests/compute/list_image_lists.rb
fog-oraclecloud-0.1.11 lib/fog/oraclecloud/requests/compute/list_image_lists.rb