1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

implement get_images api call

This commit is contained in:
Kevin Olbrich 2013-12-16 19:11:36 +00:00
parent 3b2a7ca5ee
commit 21ba080d8e

View file

@ -0,0 +1,25 @@
module Fog
module Compute
class Joyent
class Mock
def list_images
res = Excon::Response.new
res.status = 200
res.body = self.data[:datasets].values
res
end
end
class Real
def list_images
request(
:method => "GET",
:path => "/#{@joyent_username}/images",
:expects => 200
)
end
end
end
end
end