Sha256: 4b3339289de3e6f63f66507630b618f52f7171da117cf7d761c1ce1b50ad8a10
Contents?: true
Size: 664 Bytes
Versions: 13
Compression:
Stored size: 664 Bytes
Contents
module Fog module Compute class OpenNebula class Real def image_pool(filter = { }) images = ::OpenNebula::ImagePool.new(client) if filter[:mine].nil? images.info! else images.info_mine! end # if filter[:mine].nil? if not filter[:id].nil? images.each do |i| if filter[:id] == i.id return [ i ] # return an array with only one element - found image end end end images end #def image_pool end #class Real end #class OpenNebula end #module Compute end #module Fog
Version data entries
13 entries across 11 versions & 3 rubygems