Sha256: d69f167e0aeb5c6728b33fe71569f1b5852352a43f7e330a1e3f0d46075e9443
Contents?: true
Size: 1.02 KB
Versions: 3
Compression:
Stored size: 1.02 KB
Contents
module Fog module Storage class AzureRM # This class provides the actual implementation for service calls. class Real def get_container_metadata(name, options = {}) msg = "Getting Container #{name} metadata." Fog::Logger.debug msg begin container = @blob_client.get_container_metadata(name, options) rescue Azure::Core::Http::HTTPError => ex raise_azure_exception(ex, msg) end Fog::Logger.debug "Getting metadata of container #{name} successfully." container.metadata end end # This class provides the mock implementation for unit tests. class Mock def get_container_metadata(*) { 'container-name' => 'testcontainer1', 'created-by' => 'User', 'source-machine' => 'Test-machine', 'category' => 'guidance', 'doctype' => 'textDocuments' } end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems