Sha256: ca5f581e6b36daa4143a2b76b3dd1096b7317f61e56e3faa77ead1b8318152fb

Contents?: true

Size: 530 Bytes

Versions: 12

Compression:

Stored size: 530 Bytes

Contents

module Fog
  module Storage
    class OracleCloud
      class Containers < Fog::Collection

      	model Fog::Storage::OracleCloud::Container

      	def all
          containers = service.list_containers().body
          load(containers)
        end

        def get(name)
          data = service.get_container(name).headers
          # The storage cloud service doesn't actually return the name. Add it back in
          data['name'] = name
          new(data)
        end

      end
    end

  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
fog-oraclecloud-0.1.12 lib/fog/oraclecloud/models/storage/containers.rb
fog-oraclecloud-0.1.11 lib/fog/oraclecloud/models/storage/containers.rb
fog-oraclecloud-0.1.10 lib/fog/oraclecloud/models/storage/containers.rb
fog-oraclecloud-0.1.9 lib/fog/oraclecloud/models/storage/containers.rb
fog-oraclecloud-0.1.8 lib/fog/oraclecloud/models/storage/containers.rb
fog-oraclecloud-0.1.7 lib/fog/oraclecloud/models/storage/containers.rb
fog-oraclecloud-0.1.6 lib/fog/oraclecloud/models/storage/containers.rb
fog-oraclecloud-0.1.5 lib/fog/oraclecloud/models/storage/containers.rb
fog-oraclecloud-0.1.4 lib/fog/oraclecloud/models/storage/containers.rb
fog-oraclecloud-0.1.3 lib/fog/oraclecloud/models/storage/containers.rb
fog-oraclecloud-0.1.2 lib/fog/oraclecloud/models/storage/containers.rb
fog-oraclecloud-0.1.1 lib/fog/oraclecloud/models/storage/containers.rb