1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/fogdocker/models/compute/images.rb

25 lines
476 B
Ruby
Raw Normal View History

2014-02-15 18:06:49 -05:00
require 'fog/core/collection'
require 'fog/fogdocker/models/compute/image'
module Fog
module Compute
class Fogdocker
class Images < Fog::Collection
model Fog::Compute::Fogdocker::Image
def all(filters = {})
load service.image_all(filters)
end
def get(id)
new service.image_get(id)
end
def image_search(query = {})
service.image_search(query)
end
2014-02-15 18:06:49 -05:00
end
end
end
end