Sha256: 9566a18183f534b4b1f2a3cbfc675d8ea2c3438aeab8f19646bed570589f2c33
Contents?: true
Size: 634 Bytes
Versions: 38
Compression:
Stored size: 634 Bytes
Contents
require 'fog/core/collection' require 'fog/ninefold/models/compute/image' module Fog module Compute class Ninefold class Images < Fog::Collection model Fog::Compute::Ninefold::Image def all(offering = 'executable') data = connection.list_templates(:templatefilter => offering) load(data) end def get(identifier, offering = 'executable') data = connection.list_templates(:templatefilter => offering, :id => identifier) if data.empty? nil else new(data[0]) end end end end end end
Version data entries
38 entries across 38 versions & 13 rubygems