Sha256: 721d12111ae0a04764f235e3a50a3c61e50edfbe94f538c80569784fd5236e7a
Contents?: true
Size: 832 Bytes
Versions: 1
Compression:
Stored size: 832 Bytes
Contents
module Fog module Resources class AzureRM # This class provides the actual implementation for service calls. class Real def delete_resource_group(name) msg = "Deleting Resource Group: #{name}." Fog::Logger.debug msg begin @rmc.resource_groups.delete(name) rescue MsRestAzure::AzureOperationError => e raise_azure_exception(e, msg) end Fog::Logger.debug "Resource Group #{name} deleted successfully." true end end # This class provides the mock implementation for unit tests. class Mock def delete_resource_group(name) Fog::Logger.debug "Resource Group #{name} deleted successfully." true end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-azure-rm-0.1.1 | lib/fog/azurerm/requests/resources/delete_resource_group.rb |