Sha256: 254d982b2d8e0c68f992e8b75b369c63f5c40bbcd63e66d537855f1a0052e780
Contents?: true
Size: 823 Bytes
Versions: 46
Compression:
Stored size: 823 Bytes
Contents
module Fog module KeyVault class AzureRM # Real class for KeyVault Request class Real def delete_vault(resource_group, vault_name) msg = "Deleting Vault: #{vault_name}." Fog::Logger.debug msg begin @key_vault_client.vaults.delete(resource_group, vault_name) rescue MsRestAzure::AzureOperationError => e raise_azure_exception(e, msg) end Fog::Logger.debug "Vault: #{vault_name} deleted successfully." true end end # Mock class for KeyVault Request class Mock def delete_vault(resource_group, vault_name) Fog::Logger.debug "Vault #{vault_name} from Resource group #{resource_group} deleted successfully." true end end end end end
Version data entries
46 entries across 46 versions & 4 rubygems