Sha256: 73c65e9e461f8ae1177d4effbb7f5f9d4db811ff3b8d1102fbc308d612da22fb
Contents?: true
Size: 764 Bytes
Versions: 7
Compression:
Stored size: 764 Bytes
Contents
module Fog module Storage class GoogleJSON class Directories < Fog::Collection model Fog::Storage::GoogleJSON::Directory def all data = service.list_buckets.body["items"] || [] load(data) end def get(key, options = {}) remap_attributes(options, :delimiter => "delimiter", :marker => "marker", :max_keys => "max-keys", :prefix => "prefix") data = service.get_bucket(key, options).body new(:key => data["name"]) rescue Fog::Errors::NotFound nil end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems