# File lib/fog/hp/models/storage/shared_directories.rb, line 12 def all nil end
# File lib/fog/hp/models/storage/shared_directories.rb, line 31 def get(url) data = service.get_shared_container(url) shared_directory = new(:url => url) for key, value in data.headers if ['X-Container-Bytes-Used', 'X-Container-Object-Count'].include?(key) shared_directory.merge_attributes(key => value) end end # set the files for the directory shared_directory.files.instance_variable_set(:@loaded, true) data.body.each do |file| shared_directory.files << shared_directory.files.new(file) end shared_directory # throws exception Fog::HP::Errors::Forbidden if insufficient access rescue Fog::Storage::HP::NotFound nil end
# File lib/fog/hp/models/storage/shared_directories.rb, line 16 def head(url) data = service.head_shared_container(url) shared_directory = new(:url => url) for key, value in data.headers if ['X-Container-Bytes-Used', 'X-Container-Object-Count'].include?(key) shared_directory.merge_attributes(key => value) end end shared_directory # throws exception Fog::HP::Errors::Forbidden if insufficient access rescue Fog::Storage::HP::NotFound nil end
Generated with the Darkfish Rdoc Generator 2.