Sha256: 252b80dea8081e867f0adf9772e4bc7fc470c65cbfa1e6e39b9b5e19f85c31fc
Contents?: true
Size: 932 Bytes
Versions: 6
Compression:
Stored size: 932 Bytes
Contents
module Fog module AzureRM class Storage # This class provides the actual implementation for service calls. class Real def commit_blob_blocks(container_name, blob_name, blocks, options = {}) options[:request_id] = SecureRandom.uuid msg = "commit_blob_blocks: Complete uploading #{blob_name} to the container #{container_name}. options: #{options}" Fog::Logger.debug msg begin @blob_client.commit_blob_blocks(container_name, blob_name, blocks, options) rescue Azure::Core::Http::HTTPError => ex raise_azure_exception(ex, msg) end Fog::Logger.debug "Block blob #{blob_name} is uploaded successfully." true end end # This class provides the mock implementation for unit tests. class Mock def commit_blob_blocks(*) true end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems