Sha256: 9bfd84fc42ba0b686430bb01fb501b3afc6c1b94b37e20b5a57a344de577f05d
Contents?: true
Size: 903 Bytes
Versions: 2
Compression:
Stored size: 903 Bytes
Contents
module Fog module Storage class AzureRM # This class provides the actual implementation for service calls. class Real def set_blob_metadata(container_name, name, metadata) msg = "Setting Blob #{name} metadata in a container #{container_name}." Fog::Logger.debug msg begin @blob_client.set_blob_metadata(container_name, name, metadata) rescue Azure::Core::Http::HTTPError => ex raise_azure_exception(ex, msg) end Fog::Logger.debug "Setting metadata of blob #{name} successfully." true end end # This class provides the mock implementation for unit tests. class Mock def set_blob_metadata(*) Fog::Logger.debug "Set Blob metadata in a container successfully." true end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fog-azure-rm-0.0.6 | lib/fog/azurerm/requests/storage/set_blob_metadata.rb |
fog-azure-rm-0.0.5 | lib/fog/azurerm/requests/storage/set_blob_metadata.rb |