class DLDInternet::DOctl::API::Compute::Domain::Delete
Public Instance Methods
DeleteDomain(domain)
click to toggle source
noinspection RubyUnnecessaryReturnValue
# File lib/dldinternet/doctl/api/compute/domain/delete.rb, line 11 def DeleteDomain(domain) client.domains.delete(name: domain) rescue ::DropletKit::Error => e if matches = e.message.match(%r{^([0-9]{3}):\s+(\{.*\})\s*$}) json = JSON.parse(matches[2]) @logger.fatal json['message'] else @logger.fatal e.message end exit 1 end