1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/linode/requests/compute/domain_delete.rb
Athir Nuaimi 0ffd1404d5 All Linode DNS functions are now supported. Still needs some testing though
Added support for all the DNS resource functions.
As with Slicehost, no mocks or test cases yet.  Also, example code still needs some updating
2010-12-11 11:32:41 -05:00

35 lines
736 B
Ruby

module Fog
module Linode
class Compute
class Real
# Delete the given domain from the list Linode hosts
#
# ==== Parameters
# * domain_id<~Integer>: id of domain to delete
#
# ==== Returns
# * response<~Excon::Response>:
# * body<~Hash>:
# * DATA<~Hash>:
# TODO: docs
def domain_delete(domain_id)
request(
:expects => 200,
:method => 'GET',
:query => { :api_action => 'domain.delete', :domainId => domain_id }
)
end
end
class Mock
def domain_delete(domain_id)
Fog::Mock.not_implemented
end
end
end
end
end