2010-12-12 09:51:52 -05:00
|
|
|
module Fog
|
2010-12-12 18:02:02 -05:00
|
|
|
module Zerigo
|
2010-12-12 09:51:52 -05:00
|
|
|
class Compute
|
|
|
|
class Real
|
|
|
|
|
2010-12-12 21:18:21 -05:00
|
|
|
# Delete a host record
|
|
|
|
#
|
2010-12-12 09:51:52 -05:00
|
|
|
# ==== Parameters
|
2010-12-12 21:18:21 -05:00
|
|
|
# * host_id<~Integer> - Id of host record to delete
|
2010-12-12 09:51:52 -05:00
|
|
|
#
|
|
|
|
# ==== Returns
|
|
|
|
# * response<~Excon::Response>: - HTTP status code will be result
|
2010-12-12 18:02:02 -05:00
|
|
|
def delete_host(host_id)
|
2010-12-12 09:51:52 -05:00
|
|
|
request(
|
|
|
|
:expects => 200,
|
|
|
|
:method => 'DELETE',
|
2010-12-12 18:02:02 -05:00
|
|
|
:path => "/api/1.1/hosts/#{host_id}.xml"
|
2010-12-12 09:51:52 -05:00
|
|
|
)
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
class Mock
|
|
|
|
|
2010-12-12 18:02:02 -05:00
|
|
|
def delete_host(host_id)
|
2010-12-12 09:51:52 -05:00
|
|
|
Fog::Mock.not_implemented
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|