Sha256: 086708392ae2c4df3f91f3d2c4200435f1b954651c49b696857bd781c7a8e75b
Contents?: true
Size: 886 Bytes
Versions: 3
Compression:
Stored size: 886 Bytes
Contents
module Fog module Storage class AzureRM # This class provides the actual implemention for service calls. class Real def delete_blob(container_name, blob_name, options = {}) Fog::Logger.debug "Deleting blob: #{blob_name} in container #{container_name}." begin @blob_client.delete_blob(container_name, blob_name, options) Fog::Logger.debug "Blob #{blob_name} deleted successfully." true rescue Azure::Core::Http::HTTPError => ex raise "Exception in deleting the blob #{blob_name}: #{ex.inspect}" end end end # This class provides the mock implementation for unit tests. class Mock def delete_blob(*) Fog::Logger.debug 'Blob deleted successfully.' true end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems