Sha256: 92e45143b3553009981664d69654f5d7acf8b761f950246c6e2e54ec2a0c6c4c

Contents?: true

Size: 575 Bytes

Versions: 5

Compression:

Stored size: 575 Bytes

Contents

module Fog
  module Storage
    class OracleCloud
      class Real
      	def list_containers
          response = request(
            :expects  => 200,
            :method   => 'GET',
            :path     => "/v1/Storage-#{@identity_domain}?format=json"
          )
          response
        end
      end

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

          containers = self.data[:containers].values

          response.body = containers
          response
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fog-oraclecloud-0.1.12 lib/fog/oraclecloud/requests/storage/list_containers.rb
fog-oraclecloud-0.1.11 lib/fog/oraclecloud/requests/storage/list_containers.rb
fog-oraclecloud-0.1.10 lib/fog/oraclecloud/requests/storage/list_containers.rb
fog-oraclecloud-0.1.9 lib/fog/oraclecloud/requests/storage/list_containers.rb
fog-oraclecloud-0.1.8 lib/fog/oraclecloud/requests/storage/list_containers.rb