mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
34 lines
631 B
Ruby
34 lines
631 B
Ruby
|
module Fog
|
||
|
module NewServers
|
||
|
class Real
|
||
|
|
||
|
# List images
|
||
|
#
|
||
|
# ==== Returns
|
||
|
# * response<~Excon::Response>:
|
||
|
# * body<~Array>:
|
||
|
# * 'id'<~String> - Id of the image
|
||
|
# * 'name'<~String> - Name of the image
|
||
|
# * 'size'<~String> - Size of the image
|
||
|
#
|
||
|
def list_images
|
||
|
request(
|
||
|
:expects => 200,
|
||
|
:method => 'GET',
|
||
|
:parser => Fog::ToHashDocument.new,
|
||
|
:path => 'api/listImages'
|
||
|
)
|
||
|
end
|
||
|
|
||
|
end
|
||
|
|
||
|
class Mock
|
||
|
|
||
|
def list_images
|
||
|
Fog::Mock.not_implemented
|
||
|
end
|
||
|
|
||
|
end
|
||
|
end
|
||
|
end
|