mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
0035231954
Signed-off-by: Nelvin Driz <nelvindriz@live.com>
25 lines
449 B
Ruby
25 lines
449 B
Ruby
module Fog
|
|
module Image
|
|
class OpenStack
|
|
class Real
|
|
|
|
def delete_image(image_id)
|
|
request(
|
|
:expects => 200,
|
|
:method => 'DELETE',
|
|
:path => "images/#{image_id}"
|
|
)
|
|
end
|
|
|
|
end
|
|
|
|
class Mock
|
|
def delete_image(image_id)
|
|
response = Excon::Response.new
|
|
response.status = 200
|
|
response
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|