Sha256: 3b2ea4b6dd8efadc7eb31cc8e10e838345c3960affd2bbe409ceed52ddc126b2
Contents?: true
Size: 791 Bytes
Versions: 46
Compression:
Stored size: 791 Bytes
Contents
module Fog module Sql class AzureRM # Real class for Sql Server Request class Real def delete_sql_server(resource_group, name) msg = "Deleting SQL Server: #{name}." Fog::Logger.debug msg begin @sql_mgmt_client.servers.delete(resource_group, name) rescue MsRestAzure::AzureOperationError => e raise_azure_exception(e, msg) end Fog::Logger.debug "SQL Server: #{name} deleted successfully." true end end # Mock class for Sql Server Request class Mock def delete_sql_server(*) Fog::Logger.debug 'SQL Server {name} from Resource group {resource_group} deleted successfully.' true end end end end end
Version data entries
46 entries across 46 versions & 4 rubygems