Sha256: dbc66bc02f76937ca7306e8c1b9940238d6ea12894e16035bde646a99be53fcc
Contents?: true
Size: 927 Bytes
Versions: 2
Compression:
Stored size: 927 Bytes
Contents
module Fog module Resources class AzureRM # This class provides the actual implemention for service calls. class Real def delete_resource_group(name) begin Fog::Logger.debug "Deleting Resource Group: #{name}." promise = @rmc.resource_groups.delete(name) promise.value! Fog::Logger.debug "Resource Group #{name} deleted successfully." true rescue MsRestAzure::AzureOperationError => e msg = "Exception deleting Resource Group #{name}. #{e.body['error']['message']}" raise msg end 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fog-azure-rm-0.0.4 | lib/fog/azurerm/requests/resources/delete_resource_group.rb |
fog-azure-rm-0.0.3 | lib/fog/azurerm/requests/resources/delete_resource_group.rb |