mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
17 lines
318 B
Ruby
17 lines
318 B
Ruby
|
require 'fog/core/collection'
|
||
|
require 'fog/openstack/models/image/image'
|
||
|
|
||
|
module Fog
|
||
|
module Image
|
||
|
class OpenStack
|
||
|
class Images < Fog::Collection
|
||
|
model Fog::Image::OpenStack::Image
|
||
|
|
||
|
def all
|
||
|
load(connection.list_public_images.body['images'])
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|