mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
![Athir Nuaimi](/assets/img/avatar_default.png)
added support for domain.create method. continuing work to support rest of DNS zone methods added a sample in examples directory. Right now includes code for slicehost. will add linode once API fully supported
35 lines
748 B
Ruby
35 lines
748 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 linode_delete(linode_id, options={})
|
|
Fog::Mock.not_implemented
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|
|
end
|