mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
3c69e06f07
all DNS functions are now working and tested. any functions that have optional parameters can now accept these comments cleaned up note, no mocks or test cases. will speak to geemus to learn more about how these work.
31 lines
625 B
Ruby
31 lines
625 B
Ruby
module Fog
|
|
module Slicehost
|
|
class Compute
|
|
class Real
|
|
|
|
# Delete a given slice
|
|
# ==== Parameters
|
|
# * slice_id<~Integer> - Id of slice to delete
|
|
#
|
|
# ==== Returns
|
|
# * response<~Excon::Response>: - HTTP status code is the return value
|
|
def delete_slice(slice_id)
|
|
request(
|
|
:expects => 200,
|
|
:method => 'DELETE',
|
|
:path => "slices/#{slice_id}.xml"
|
|
)
|
|
end
|
|
|
|
end
|
|
|
|
class Mock
|
|
|
|
def delete_slice(slice_id)
|
|
Fog::Mock.not_implemented
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|
|
end
|