lib/fog/azurerm/models/storage/directories.rb in fog-azure-rm-0.3.5 vs lib/fog/azurerm/models/storage/directories.rb in fog-azure-rm-0.3.6
- old
+ new
@@ -54,12 +54,17 @@
data[:blobs].each do |blob|
blobs << parse_storage_object(blob)
end
directory.files.load(blobs)
directory
- rescue => error
+ rescue Exception => error
return nil if error.message == 'NotFound'
raise error
+ end
+
+ def delete_temporary_container(storage_account_name, access_key, container_name)
+ storage_data = Fog::Storage::AzureRM.new(azure_storage_account_name: storage_account_name, azure_storage_access_key: access_key)
+ storage_data.delete_container(container_name)
end
def check_container_exists(name)
service.check_container_exists(name)
end