mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
23 lines
475 B
Ruby
23 lines
475 B
Ruby
|
module Fog
|
||
|
module Vcloud
|
||
|
class Compute
|
||
|
|
||
|
class Real
|
||
|
basic_request :delete_node, 200, 'DELETE', {}, ""
|
||
|
end
|
||
|
|
||
|
class Mock
|
||
|
|
||
|
def delete_node(node_uri)
|
||
|
if node = mock_data.public_ip_internet_service_node_from_href(ensure_unparsed(node_uri))
|
||
|
node._parent.items.delete(node)
|
||
|
mock_it 200, '', {}
|
||
|
else
|
||
|
mock_error 200, "401 Unauthorized"
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|