Sha256: 2e64e187ea01da0a63f210a7b6c8a2f58e0eec069133fa5dda8da9d55e373ebd
Contents?: true
Size: 770 Bytes
Versions: 1
Compression:
Stored size: 770 Bytes
Contents
module Fog module Storage class AzureRM # This class provides the actual implemention for service calls. class Real def delete_container(name, options = {}) Fog::Logger.debug "Deleting container: #{name}." begin @blob_client.delete_container(name, options) Fog::Logger.debug "Container #{name} deleted successfully." true rescue Azure::Core::Http::HTTPError => ex raise "Exception in deleting the container #{name}: #{ex.inspect}" end end end # This class provides the mock implementation for unit tests. class Mock def delete_container(*) true end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-azure-rm-0.0.4 | lib/fog/azurerm/requests/storage/delete_container.rb |